rs4852
2.0.0.0
|
This file contains API for RS485 2 Click driver. More...
#include "drv_digital_out.h"
#include "drv_uart.h"
Go to the source code of this file.
Data Structures | |
struct | rs4852_t |
Click ctx object definition. More... | |
struct | rs4852_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | RS4852_MAP_MIKROBUS(cfg, mikrobus) |
#define | RS4852_RETVAL uint8_t |
#define | RS4852_OK 0x00 |
#define | RS4852_INIT_ERROR 0xFF |
#define | RS4852_RX_DISABLE 0x01 |
#define | RS4852_RX_ENABLE 0x00 |
#define | RS4852_TX_DISABLE 0x00 |
#define | RS4852_TX_ENABLE 0x01 |
#define | RS4852_RX_PIN 0x00 |
#define | RS4852_TX_PIN 0x01 |
Typedefs | |
typedef uart_data_t | rs4852_data_t |
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... | |
This file contains API for RS485 2 Click driver.