TOP Contributors

  1. MIKROE (2662 codes)
  2. Alcides Ramos (357 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (137023 times)
  2. FAT32 Library (70145 times)
  3. Network Ethernet Library (56030 times)
  4. USB Device Library (46353 times)
  5. Network WiFi Library (41968 times)
  6. FT800 Library (41297 times)
  7. GSM click (29065 times)
  8. mikroSDK (26502 times)
  9. PID Library (26452 times)
  10. microSD click (25428 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

Barcode click

Rating:

5

Author: MIKROE

Last Updated: 2018-03-30

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Miscellaneous

Downloaded: 3821 times

Not followed.

License: MIT license  

Barcode click is a very fast and agile barcode scanner on a click board, which is compliant with a wide range of different 1D and 2D barcode protocols.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Barcode click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Barcode click" changes.

Do you want to report abuse regarding "Barcode click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Barcode click

Barcode click

Native view of the Barcode Click board.

View full image
Barcode click

Barcode click

Front and back view of the Barcode Click board.

View full image

Library description

Initializes and defines UART and GPIO drivers. It also defines driver functions for UART bus communication which enable barcode scanning and barcode scanner restart. Check the documentation for more details.

Key functions:

uint8_t barcode_readyData() - The function checks whether the RX buffer received new data.

uint8_t barcode_readData() - The function reads and returns one byte which is received in the RX buffer.

void barcode_enableScaning(const uint8_t state) - The function enables or disables barcode scanning, depending on the parameter value.

void barcode_enableReset(const uint8_t state) - The function enables or disables barcode scanner reset, depending on the parameter value.

Examples description

  • System Initialization - Initializes peripherals, UART interrupt and pins.
  • Application Initialization - Initializes click driver.
  • Application Task - The click enables barcode scanning in 2 seconds intervals and then disables scanning also in 2 seconds interval. When the barcode is scanned, UART interrupt will be enabled and the barcode will be stored in the temp buffer.
void applicationTask()
{
    barcode_enableScaning(_BARCODE_LOGIC_ON);
    Delay_ms(2000);
    barcode_enableScaning(_BARCODE_LOGIC_OFF);
    Delay_ms(2000);
}
//UART Interrupt addition function is used for enabling receiving every transived byte.
void RX_ISR() iv IVT_INT_USART3 ics ICS_AUTO
{
   if( RXNE_USART3_SR_bit )
   {
       temp[i++] = USART3_DR;
   }
}

 

Additional notes and information

Depending on the development board you are using, you may need USB UART click,  USB UART 2 click or  RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.

ALSO FROM THIS AUTHOR

CXPI click

0

CXPI Click is a compact add-on board that contains a transceiver that supports the next-generation automotive communication protocol. This board features the BD41000AFJ-C, a transceiver for the CXPI (Clock Extension Peripheral Interface) communication from Rohm Semiconductor.

[Learn More]

Accel 21 click

0

Accel 21 Click is a compact add-on board that contains an acceleration sensor. This board features the MIS2DH, a high-performance three-axis accelerometer from STMicroelectronics. The MIS2DH allows selectable full-scale acceleration measurements in ranges of ±2g, ±4g, ±8g, or ±16g in three axes with a configurable host interface that supports both SPI and I2C serial communication. It also supports high-resolution and low-power operating modes, allowing maximum flexibility to meet various use case needs.

[Learn More]

Accel 28 click

0

Accel 28 Click is a compact add-on board that contains an acceleration sensor. This board features the LIS2HH12TR, an ultra-low-power high-performance three-axis accelerometer from STMicroelectronics. It allows selectable full-scale acceleration measurements in ranges of ±2g, ±4g, and ±8g in three axes with a configurable host interface that supports both SPI and I2C serial communication.

[Learn More]