barcode2 2.0.0.0
barcode2.h File Reference

This file contains API for Barcode 2 Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"

Go to the source code of this file.

Data Structures

struct  barcode2_t
 Click ctx object definition. More...
 
struct  barcode2_cfg_t
 Click configuration structure definition. More...
 

Macros

#define BARCODE2_MAP_MIKROBUS(cfg, mikrobus)
 
#define BARCODE2_RETVAL   uint8_t
 
#define BARCODE2_OK   0x00
 
#define BARCODE2_INIT_ERROR   0xFF
 
#define BARCODE2_DISABLE   0x01
 
#define BARCODE2_ENABLE   0x00
 
#define DRV_RX_BUFFER_SIZE   600
 
#define DRV_TX_BUFFER_SIZE   50
 

Typedefs

typedef uint8_t barcode2_error_t
 Error type.
 

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.
 

Detailed Description

This file contains API for Barcode 2 Click driver.