rs4852
2.0.0.0
|
Functions | |
void | rs4852_cfg_setup (rs4852_cfg_t *cfg) |
Config Object Initialization function. More... | |
RS4852_RETVAL | rs4852_init (rs4852_t *ctx, rs4852_cfg_t *cfg) |
Initialization function. More... | |
void | rs4852_default_cfg (rs4852_t *ctx) |
Click Default Configuration function. More... | |
void | rs4852_generic_multi_write (rs4852_t *ctx, rs4852_data_t *data_buf, uart_length_t len) |
Generic multi write function. More... | |
void | rs4852_generic_multi_read (rs4852_t *ctx, rs4852_data_t *data_buf, uart_length_t len) |
Generic multi read function. More... | |
rs4852_data_t | rs4852_generic_single_read (rs4852_t *ctx) |
Generic single read function. More... | |
void | rs4852_generic_single_write (rs4852_t *ctx, rs4852_data_t tx_data) |
Generic single write function. More... | |
void | rs4852_power_mode (rs4852_t *ctx, uint8_t pin, uint8_t state) |
Power mode controle pins. More... | |
void rs4852_cfg_setup | ( | rs4852_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void rs4852_default_cfg | ( | rs4852_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Rs4852 click.
void rs4852_generic_multi_read | ( | rs4852_t * | ctx, |
rs4852_data_t * | data_buf, | ||
uart_length_t | len | ||
) |
Generic multi read function.
ctx | Click object. |
data_buf | Output data buffer. |
len | Number of the bytes in data buffer. |
@description This function reads data.
void rs4852_generic_multi_write | ( | rs4852_t * | ctx, |
rs4852_data_t * | data_buf, | ||
uart_length_t | len | ||
) |
Generic multi write function.
ctx | Click object. |
data_buf | Input data buffer |
len | Number of the bytes in the data buffer |
@description This function writes data.
rs4852_data_t rs4852_generic_single_read | ( | rs4852_t * | ctx | ) |
Generic single read function.
ctx | Click object. |
@description This function read one byte data.
void rs4852_generic_single_write | ( | rs4852_t * | ctx, |
rs4852_data_t | tx_data | ||
) |
Generic single write function.
ctx | Click object. |
tx_data | Input data |
@description This function write one byte data.
RS4852_RETVAL rs4852_init | ( | rs4852_t * | ctx, |
rs4852_cfg_t * | cfg | ||
) |
Initialization function.
rs4852 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void rs4852_power_mode | ( | rs4852_t * | ctx, |
uint8_t | pin, | ||
uint8_t | state | ||
) |
Power mode controle pins.
ctx | Click object. |
pin | rx pin contorl -> RE pin or tx pin control -> OE pin |
state | Pin disable or enable |
@description This function allows OE and RE pins to be controlled. To send data, RX pin control must be disabled, TX pin control is enabled.