rs232isolator 2.0.0.0
rs232isolator.h File Reference

This file contains API for RS232 Isolator 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  rs232isolator_t
 Click ctx object definition. More...
 
struct  rs232isolator_cfg_t
 Click configuration structure definition. More...
 

Macros

#define RS232ISOLATOR_MAP_MIKROBUS(cfg, mikrobus)
 
#define RS232ISOLATOR_RETVAL   uint8_t
 
#define RS232ISOLATOR_OK   0x00
 
#define RS232ISOLATOR_INIT_ERROR   0xFF
 
#define DRV_RX_BUFFER_SIZE   500
 

Typedefs

typedef uint8_t rs232isolator_error_t
 Error type.
 

Functions

void rs232isolator_cfg_setup (rs232isolator_cfg_t *cfg)
 Config Object Initialization function.
 
RS232ISOLATOR_RETVAL rs232isolator_init (rs232isolator_t *ctx, rs232isolator_cfg_t *cfg)
 Initialization function.
 
void rs232isolator_generic_write (rs232isolator_t *ctx, char *data_buf, uint16_t len)
 Generic write function.
 
int16_t rs232isolator_generic_read (rs232isolator_t *ctx, char *data_buf, uint16_t max_len)
 Generic read function.
 
void rs232_2_set_rts (rs232isolator_t *ctx, uint8_t state)
 Function settings RTS state.
 
uint8_t rs232_2_get_cts (rs232isolator_t *ctx)
 Read CTS state.
 
void rs232isolator_send_command (rs232isolator_t *ctx, char *command)
 Function for send command.
 

Detailed Description

This file contains API for RS232 Isolator Click driver.