rs485isolator3 2.1.0.0
rs485isolator3.h File Reference

This file contains API for RS485 Isolator 3 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  rs485isolator3_t
 RS485 Isolator 3 Click context object. More...
 
struct  rs485isolator3_cfg_t
 RS485 Isolator 3 Click configuration object. More...
 

Macros

#define RS485ISOLATOR3_TX_DRV_BUFFER_SIZE   100
 RS485 Isolator 3 driver buffer size.
 
#define RS485ISOLATOR3_RX_DRV_BUFFER_SIZE   300
 
#define RS485ISOLATOR3_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  rs485isolator3_return_value_t { RS485ISOLATOR3_OK = 0 , RS485ISOLATOR3_ERROR = -1 }
 RS485 Isolator 3 Click return value data. More...
 

Functions

void rs485isolator3_cfg_setup (rs485isolator3_cfg_t *cfg)
 RS485 Isolator 3 configuration object setup function.
 
err_t rs485isolator3_init (rs485isolator3_t *ctx, rs485isolator3_cfg_t *cfg)
 RS485 Isolator 3 initialization function.
 
void rs485isolator3_default_cfg (rs485isolator3_t *ctx)
 RS485 Isolator 3 default configuration function.
 
err_t rs485isolator3_generic_write (rs485isolator3_t *ctx, char *data_in, uint16_t len)
 RS485 Isolator 3 data writing function.
 
err_t rs485isolator3_generic_read (rs485isolator3_t *ctx, char *data_out, uint16_t len)
 RS485 Isolator 3 data reading function.
 
void rs485isolator3_enable_receiver_input (rs485isolator3_t *ctx)
 RS485 Isolator 3 enable receiver input function.
 
void rs485isolator3_disable_receiver_input (rs485isolator3_t *ctx)
 RS485 Isolator 3 disable receiver input function.
 
void rs485isolator3_enable_output (rs485isolator3_t *ctx)
 RS485 Isolator 3 enable output function.
 
void rs485isolator3_disable_output (rs485isolator3_t *ctx)
 RS485 Isolator 3 disable output function.
 
void rs485isolator3_inverted_inputs (rs485isolator3_t *ctx)
 RS485 Isolator 3 invert output function.
 
void rs485isolator3_not_inverted_inputs (rs485isolator3_t *ctx)
 RS485 Isolator 3 not invert output function.
 
err_t rs485isolator3_send_bit_by_bit (rs485isolator3_t *ctx, char *command)
 RS485 Isolator 3 send data function.
 

Detailed Description

This file contains API for RS485 Isolator 3 Click Driver.

Enumeration Type Documentation

◆ rs485isolator3_return_value_t

RS485 Isolator 3 Click return value data.

Predefined enum values for driver return values.

Enumerator
RS485ISOLATOR3_OK 
RS485ISOLATOR3_ERROR