uarti2cspi 2.0.0.0
|
This file contains API for UART I2C/SPI Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | uarti2cspi_s |
Click ctx object definition. More... | |
struct | uarti2cspi_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef uint8_t | uarti2cspi_select_t |
Communication type. | |
typedef void(* | uarti2cspi_master_write_t) (struct uarti2cspi_s *, uint8_t, uint8_t) |
typedef void(* | uarti2cspi_master_read_t) (struct uarti2cspi_s *, uint8_t, uint8_t *) |
typedef struct uarti2cspi_s | uarti2cspi_t |
Click ctx object definition. | |
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. | |
This file contains API for UART I2C/SPI Click driver.