barcode2 2.0.0.0
|
Functions | |
void | barcode2_cfg_setup (barcode2_cfg_t *cfg) |
Config Object Initialization function. | |
BARCODE2_RETVAL | barcode2_init (barcode2_t *ctx, barcode2_cfg_t *cfg) |
Initialization function. | |
void | barcode2_generic_write (barcode2_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | barcode2_generic_read (barcode2_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | barcode2_enable_scaning (barcode2_t *ctx, uint8_t en_state) |
Enable scaning function. | |
void | barcode2_enable_reset (barcode2_t *ctx, uint8_t en_state) |
Enable reset function. | |
void barcode2_cfg_setup | ( | barcode2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void barcode2_enable_reset | ( | barcode2_t * | ctx, |
uint8_t | en_state ) |
Enable reset function.
ctx | Click object. |
en_state | - 0x00 ( LOW ) : Enable. - 0x01 ( HIGH ) : Disable. |
@description The function enables or disables barcode scaner reset depending on state parametar value.
void barcode2_enable_scaning | ( | barcode2_t * | ctx, |
uint8_t | en_state ) |
Enable scaning function.
ctx | Click object. |
en_state | - 0x00 ( LOW ) : Enable. - 0x01 ( HIGH ) : Disable. |
@description The function enables or disables barcode scaning depending on state parametar value.
int32_t barcode2_generic_read | ( | barcode2_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
ctx | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
@description This function read maximum length of data.
void barcode2_generic_write | ( | barcode2_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
ctx | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
@description This function write desired number of bytes.
BARCODE2_RETVAL barcode2_init | ( | barcode2_t * | ctx, |
barcode2_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.