barcode 2.0.0.0
|
Functions | |
void | barcode_cfg_setup (barcode_cfg_t *cfg) |
Config Object Initialization function. | |
BARCODE_RETVAL | barcode_init (barcode_t *ctx, barcode_cfg_t *cfg) |
Initialization function. | |
void | barcode_enable_scaning (barcode_t *ctx, uint8_t state) |
Set WKP ( wake-up ) pin state. | |
void | barcode_generic_write (barcode_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
uint16_t | barcode_generic_read (barcode_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void barcode_cfg_setup | ( | barcode_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void barcode_enable_scaning | ( | barcode_t * | ctx, |
uint8_t | state ) |
Set WKP ( wake-up ) pin state.
barcode | Click object. |
statte | Pin state ( 1 or 0 ). |
uint16_t barcode_generic_read | ( | barcode_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
barcode | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void barcode_generic_write | ( | barcode_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
barcode | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
BARCODE_RETVAL barcode_init | ( | barcode_t * | ctx, |
barcode_cfg_t * | cfg ) |
Initialization function.
barcode | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.