rs4856 2.0.0.0
|
Functions | |
void | rs4856_cfg_setup (rs4856_cfg_t *cfg) |
Config Object Initialization function. | |
RS4856_RETVAL | rs4856_init (rs4856_t *ctx, rs4856_cfg_t *cfg) |
Initialization function. | |
void | rs4856_generic_write (rs4856_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int16_t | rs4856_generic_read (rs4856_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | rs4856_re_pin_set (rs4856_t *ctx, uint8_t pin_state) |
Sets RE pin to high or low state. | |
void | rs4856_de_pin_set (rs4856_t *ctx, uint8_t pin_state) |
Sets DE pin to high or low state. | |
void | rs4856_send_command (rs4856_t *ctx, char *command) |
void rs4856_cfg_setup | ( | rs4856_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void rs4856_de_pin_set | ( | rs4856_t * | ctx, |
uint8_t | pin_state ) |
Sets DE pin to high or low state.
pin_state | pin state |
@description This function sets state of the de pin.
int16_t rs4856_generic_read | ( | rs4856_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
rs4856 | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void rs4856_generic_write | ( | rs4856_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
rs4856 | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
RS4856_RETVAL rs4856_init | ( | rs4856_t * | ctx, |
rs4856_cfg_t * | cfg ) |
Initialization function.
rs4856 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void rs4856_re_pin_set | ( | rs4856_t * | ctx, |
uint8_t | pin_state ) |
Sets RE pin to high or low state.
pin_state | pin state |
@description This function sets state of the re pin.
void rs4856_send_command | ( | rs4856_t * | ctx, |
char * | command ) |