duallin 2.0.0.0
|
Functions | |
void | duallin_cfg_setup (duallin_cfg_t *cfg) |
Config Object Initialization function. | |
DUALLIN_RETVAL | duallin_init (duallin_t *ctx, duallin_cfg_t *cfg) |
Initialization function. | |
void | duallin_generic_write (duallin_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int16_t | duallin_generic_read (duallin_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | duallin_bus1_status (duallin_t *ctx, uint8_t state) |
Sets state of RST pin. | |
void | duallin_bus2_status (duallin_t *ctx, uint8_t state) |
Sets state of CS pin. | |
void | duallin_send_command (duallin_t *ctx, char *command) |
Send command. | |
void duallin_bus1_status | ( | duallin_t * | ctx, |
uint8_t | state ) |
Sets state of RST pin.
duallin | Click object. |
state | Set pin on low and high ( DUALLIN_PIN_STATE_HIGH or DUALLIN_PIN_STATE_LOW ) |
void duallin_bus2_status | ( | duallin_t * | ctx, |
uint8_t | state ) |
Sets state of CS pin.
duallin | Click object. |
state | Set pin on low and high ( DUALLIN_PIN_STATE_HIGH or DUALLIN_PIN_STATE_LOW ) |
void duallin_cfg_setup | ( | duallin_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
int16_t duallin_generic_read | ( | duallin_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
duallin | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void duallin_generic_write | ( | duallin_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
duallin | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
DUALLIN_RETVAL duallin_init | ( | duallin_t * | ctx, |
duallin_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.
void duallin_send_command | ( | duallin_t * | ctx, |
char * | command ) |
Send command.
duallin | Click object. |
command | Data to be send. |