uarti2cspi 2.0.0.0
|
Functions | |
void | uarti2cspi_cfg_setup (uarti2cspi_cfg_t *cfg) |
Config Object Initialization function. | |
UARTI2CSPI_RETVAL | uarti2cspi_init (uarti2cspi_t *ctx, uarti2cspi_cfg_t *cfg) |
Initialization function. | |
void | uarti2cspi_generic_write (uarti2cspi_t *ctx, uint8_t reg, uint8_t data_buf) |
Generic write function. | |
void | uarti2cspi_generic_read (uarti2cspi_t *ctx, uint8_t reg, uint8_t *data_buf) |
Generic read function. | |
void | uarti2cspi_set_reset (uarti2cspi_t *ctx, uint8_t state) |
Set RST pin state function. | |
void | uarti2cspi_advanced_init (uarti2cspi_t *ctx, uint32_t baud_rate, uint8_t data_bits, uint8_t parity_mode, uint8_t stop_bits) |
Advanced initialization function. | |
void | uarti2cspi_interrupt_enable (uarti2cspi_t *ctx, uint8_t vector) |
Interrupt enable function. | |
void | uarti2cspi_uart_write_text (uarti2cspi_t *ctx, uint8_t *w_text) |
Uart write text function. | |
void | uarti2cspi_uart_write (uarti2cspi_t *ctx, uint8_t w_byte) |
Uart write function. | |
uint8_t | uarti2cspi_uart_data_ready (uarti2cspi_t *ctx) |
Uart data ready function. | |
uint8_t | uarti2cspi_uart_read (uarti2cspi_t *ctx) |
Uart read function. | |
void uarti2cspi_advanced_init | ( | uarti2cspi_t * | ctx, |
uint32_t | baud_rate, | ||
uint8_t | data_bits, | ||
uint8_t | parity_mode, | ||
uint8_t | stop_bits ) |
Advanced initialization function.
ctx | Click object. |
baud_rate | Baud rate. |
data_bits | Data bits. |
parity_mode | Parity mode. |
stop_bits | Stop bits. |
@description This function configures the click module.
void uarti2cspi_cfg_setup | ( | uarti2cspi_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void uarti2cspi_generic_read | ( | uarti2cspi_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
@description This function reads data from the desired register.
void uarti2cspi_generic_write | ( | uarti2cspi_t * | ctx, |
uint8_t | reg, | ||
uint8_t | data_buf ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
@description This function writes data to the desired register.
UARTI2CSPI_RETVAL uarti2cspi_init | ( | uarti2cspi_t * | ctx, |
uarti2cspi_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 uarti2cspi_interrupt_enable | ( | uarti2cspi_t * | ctx, |
uint8_t | vector ) |
Interrupt enable function.
ctx | Click object. |
vector | IER vector. |
@description This function enables/disables interrupts on the click module by writing the specified configuration vector to the Interrupt Enable Register.
void uarti2cspi_set_reset | ( | uarti2cspi_t * | ctx, |
uint8_t | state ) |
Set RST pin state function.
ctx | Click object. |
state | The state of RST pin. |
@description This function sets the RST pin state.
uint8_t uarti2cspi_uart_data_ready | ( | uarti2cspi_t * | ctx | ) |
Uart data ready function.
ctx | Click object. |
0
- DATA NOT READY, 1
- DATA READY.uint8_t uarti2cspi_uart_read | ( | uarti2cspi_t * | ctx | ) |
Uart read function.
ctx | Click object. |
@description This function reads one byte from the click module.
void uarti2cspi_uart_write | ( | uarti2cspi_t * | ctx, |
uint8_t | w_byte ) |
Uart write function.
ctx | Click object. |
w_byte | Data byte. |
@description This function sends the specified byte using UART.
void uarti2cspi_uart_write_text | ( | uarti2cspi_t * | ctx, |
uint8_t * | w_text ) |
Uart write text function.
ctx | Click object. |
w_text | Data message pointer. |
@description This function sends the specified string using UART.