rs485isolator2 2.0.0.0
|
This file contains API for RS485 Isolator 2 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 | rs485isolator2_t |
Click ctx object definition. More... | |
struct | rs485isolator2_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | RS485ISOLATOR2_MAP_MIKROBUS(cfg, mikrobus) |
#define | RS485ISOLATOR2_RETVAL uint8_t |
#define | RS485ISOLATOR2_OK 0x00 |
#define | RS485ISOLATOR2_INIT_ERROR 0xFF |
#define | DRV_RX_BUFFER_SIZE 500 |
#define | RS485ISOLATOR2_ENABLE_RE 0x00 |
#define | RS485ISOLATOR2_DISABLE_RE 0x01 |
#define | RS485ISOLATOR2_ENABLE_DE 0x01 |
#define | RS485ISOLATOR2_DISABLE_DE 0x00 |
#define | RS485ISOLATOR2_ENABLE_INR 0x01 |
#define | RS485ISOLATOR2_DISABLE_INR 0x00 |
#define | RS485ISOLATOR2_ENABLE_IND 0x01 |
#define | RS485ISOLATOR2_DISABLE_IND 0x00 |
Typedefs | |
typedef uint8_t | rs485isolator2_error_t |
Error type. | |
Functions | |
void | rs485isolator2_cfg_setup (rs485isolator2_cfg_t *cfg) |
Config Object Initialization function. | |
RS485ISOLATOR2_RETVAL | rs485isolator2_init (rs485isolator2_t *ctx, rs485isolator2_cfg_t *cfg) |
Initialization function. | |
void | rs485isolator2_set_de_pin (rs485isolator2_t *ctx, uint8_t state) |
Set DE ( cs ) pin state. | |
void | rs485isolator2_set_re_pin (rs485isolator2_t *ctx, uint8_t state) |
Set RE ( reset ) pin state. | |
void | rs485isolator2_set_ind_pin (rs485isolator2_t *ctx, uint8_t state) |
Get IND (int) pin state. | |
void | rs485isolator2_set_inr_pin (rs485isolator2_t *ctx, uint8_t state) |
Set INR ( pwm ) pin state. | |
void | rs485isolator2_generic_write (rs485isolator2_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | rs485isolator2_generic_read (rs485isolator2_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | rs485isolator2_send_bit_by_bit (rs485isolator2_t *ctx, char *command) |
Bit by bit write function. | |
This file contains API for RS485 Isolator 2 Click driver.