rs232spi 2.0.0.0
|
Functions | |
void | rs232spi_cfg_setup (rs232spi_cfg_t *cfg) |
Config Object Initialization function. | |
RS232SPI_RETVAL | rs232spi_init (rs232spi_t *ctx, rs232spi_cfg_t *cfg) |
Initialization function. | |
void | rs232spi_default_cfg (rs232spi_t *ctx, uint32_t speed) |
Click Default Configuration function. | |
void | rs232spi_reg_write (rs232spi_t *ctx, uint16_t write_data) |
Register write function. | |
uint8_t | rs232spi_reg_read (rs232spi_t *ctx) |
Register read function. | |
uint16_t | rs232spi_transfer (rs232spi_t *ctx, uint16_t write_data) |
SPI transfer function. | |
uint16_t | rs232spi_read_cfg (rs232spi_t *ctx) |
Read configuration function. | |
void | rs232spi_flush (rs232spi_t *ctx) |
Flush function. | |
uint16_t | rs232spi_data_ready (rs232spi_t *ctx) |
Data ready function. | |
uint16_t | rs232spi_check_busy (rs232spi_t *ctx) |
Check if busy function. | |
void | rs232spi_data_write (rs232spi_t *ctx, uint8_t write_data) |
Data write function. | |
void | rs232spi_digital_write_rst (rs232spi_t *ctx, uint8_t signal) |
Digital write reset function. | |
uint8_t | rs232spi_digital_read_int (rs232spi_t *ctx) |
Digital read interrupt function. | |
void rs232spi_cfg_setup | ( | rs232spi_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint16_t rs232spi_check_busy | ( | rs232spi_t * | ctx | ) |
Check if busy function.
ctx | Click object. |
@description This function checks if the UART is busy.
uint16_t rs232spi_data_ready | ( | rs232spi_t * | ctx | ) |
Data ready function.
ctx | Click object. |
@description This function checks if the UART is ready to read.
void rs232spi_data_write | ( | rs232spi_t * | ctx, |
uint8_t | write_data ) |
Data write function.
ctx | Click object. |
@description This function writes data using the reg_write(...) function.
void rs232spi_default_cfg | ( | rs232spi_t * | ctx, |
uint32_t | speed ) |
Click Default Configuration function.
ctx | Click object. |
speed | Speed variable. |
@description This function executes default configuration for RS232 SPI click.
uint8_t rs232spi_digital_read_int | ( | rs232spi_t * | ctx | ) |
Digital read interrupt function.
ctx | Click object. |
@description This function reads the digital signal from the INT pin.
void rs232spi_digital_write_rst | ( | rs232spi_t * | ctx, |
uint8_t | signal ) |
Digital write reset function.
ctx | Click object. |
signal | Digital output signal. |
@description This function writes the specified digital signal to the RST pin.
void rs232spi_flush | ( | rs232spi_t * | ctx | ) |
Flush function.
ctx | Click object. |
@description This function flushes the read buffer.
RS232SPI_RETVAL rs232spi_init | ( | rs232spi_t * | ctx, |
rs232spi_cfg_t * | cfg ) |
Initialization function.
rs232spi | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint16_t rs232spi_read_cfg | ( | rs232spi_t * | ctx | ) |
Read configuration function.
ctx | Click object. |
@description This function reads two bytes of data from the configuration register.
uint8_t rs232spi_reg_read | ( | rs232spi_t * | ctx | ) |
Register read function.
ctx | Click object. |
@description This function reads two bytes of data using the SPI serial interface.
void rs232spi_reg_write | ( | rs232spi_t * | ctx, |
uint16_t | write_data ) |
Register write function.
ctx | Click object. |
write_data | Write data variable. |
@description This function writes two bytes of data using the SPI serial interface.
uint16_t rs232spi_transfer | ( | rs232spi_t * | ctx, |
uint16_t | write_data ) |
SPI transfer function.
ctx | Click object. |
write_data | Write data variable. |
@description This function reads and writes two bytes of data using the SPI serial interface.