uarttoi2c 2.1.0.0
|
This file contains API for UART to I2C Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"
Go to the source code of this file.
Data Structures | |
struct | uarttoi2c_t |
UART to I2C Click context object. More... | |
struct | uarttoi2c_cfg_t |
UART to I2C Click configuration object. More... | |
Enumerations | |
enum | uarttoi2c_return_value_t { UARTTOI2C_OK = 0 , UARTTOI2C_ERROR = -1 , UARTTOI2C_TIMEOUT_ERROR = -2 } |
UART to I2C Click return value data. More... | |
Functions | |
void | uarttoi2c_cfg_setup (uarttoi2c_cfg_t *cfg) |
UART to I2C configuration object setup function. | |
err_t | uarttoi2c_init (uarttoi2c_t *ctx, uarttoi2c_cfg_t *cfg) |
UART to I2C initialization function. | |
err_t | uarttoi2c_default_cfg (uarttoi2c_t *ctx) |
UART to I2C default configuration function. | |
err_t | uarttoi2c_generic_write (uarttoi2c_t *ctx, char *data_in, uint16_t len) |
UART to I2C data writing function. | |
err_t | uarttoi2c_generic_read (uarttoi2c_t *ctx, char *data_out, uint16_t len) |
UART to I2C data reading function. | |
void | uarttoi2c_set_rst_pin (uarttoi2c_t *ctx, uint8_t state) |
UART to I2C set rst pin function. | |
err_t | uarttoi2c_reset_device (uarttoi2c_t *ctx) |
UART to I2C reset device function. | |
err_t | uarttoi2c_write_register (uarttoi2c_t *ctx, uint8_t reg, uint8_t data_in) |
UART to I2C write register function. | |
err_t | uarttoi2c_read_register (uarttoi2c_t *ctx, uint8_t reg, uint8_t *data_out) |
UART to I2C read register function. | |
void | uarttoi2c_gpio_write (uarttoi2c_t *ctx, uint8_t gpio_data) |
UART to I2C gpio write function. | |
err_t | uarttoi2c_gpio_read (uarttoi2c_t *ctx, uint8_t *gpio_data) |
UART to I2C gpio read function. | |
err_t | uarttoi2c_gpio_config (uarttoi2c_t *ctx, uint8_t direction, uint8_t pin_mask) |
UART to I2C gpio config function. | |
err_t | uarttoi2c_read_version (uarttoi2c_t *ctx, uint8_t *version) |
UART to I2C read version function. | |
err_t | uarttoi2c_i2c_write (uarttoi2c_t *ctx, uint8_t slave_addr, uint8_t *data_in, uint8_t len) |
UART to I2C i2c write function. | |
err_t | uarttoi2c_i2c_read (uarttoi2c_t *ctx, uint8_t slave_addr, uint8_t *data_out, uint8_t len) |
UART to I2C i2c read function. | |
err_t | uarttoi2c_i2c_write_then_read (uarttoi2c_t *ctx, uint8_t slave_addr, uint8_t *data_in, uint8_t in_len, uint8_t *data_out, uint8_t out_len) |
UART to I2C i2c write then read function. | |
This file contains API for UART to I2C Click Driver.