rstransceiver 2.1.0.0
|
This file contains API for RS Transceiver Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_uart.h"
Go to the source code of this file.
Data Structures | |
struct | rstransceiver_t |
RS Transceiver Click context object. More... | |
struct | rstransceiver_cfg_t |
RS Transceiver Click configuration object. More... | |
Enumerations | |
enum | rstransceiver_return_value_t { RSTRANSCEIVER_OK = 0 , RSTRANSCEIVER_ERROR = -1 } |
RS Transceiver Click return value data. More... | |
Functions | |
void | rstransceiver_cfg_setup (rstransceiver_cfg_t *cfg) |
RS Transceiver configuration object setup function. | |
err_t | rstransceiver_init (rstransceiver_t *ctx, rstransceiver_cfg_t *cfg) |
RS Transceiver initialization function. | |
err_t | rstransceiver_default_cfg (rstransceiver_t *ctx) |
RS Transceiver default configuration function. | |
void | rstransceiver_device_enable (rstransceiver_t *ctx) |
RS Transceiver enables the device function. | |
void | rstransceiver_device_disable (rstransceiver_t *ctx) |
RS Transceiver disable the device function. | |
void | rstransceiver_set_slew (rstransceiver_t *ctx, uint8_t slew) |
RS Transceiver sets the slew limit function. | |
void | rstransceiver_set_rts (rstransceiver_t *ctx, uint8_t rts) |
RS Transceiver request to send function. | |
uint8_t | rstransceiver_get_cts (rstransceiver_t *ctx) |
RS Transceiver clear to send function. | |
err_t | rstransceiver_set_op_mode (rstransceiver_t *ctx, uint8_t op_mode) |
RS Transceiver sets the operating mode function. | |
err_t | rstransceiver_mode_loopback (rstransceiver_t *ctx) |
RS Transceiver sets the loopback mode function. | |
err_t | rstransceiver_mode_rs232 (rstransceiver_t *ctx, uint8_t slew) |
RS Transceiver sets the RS-232 mode function. | |
err_t | rstransceiver_mode_half_duplex (rstransceiver_t *ctx, uint8_t slew, uint8_t dir1, uint8_t term) |
RS Transceiver sets the Half-Duplex mode function. | |
err_t | rstransceiver_mode_full_duplex (rstransceiver_t *ctx, uint8_t slew, uint8_t dir1, uint8_t term) |
RS Transceiver sets the Full-Duplex mode function. | |
err_t | rstransceiver_set_dir1 (rstransceiver_t *ctx, uint8_t dir1) |
RS Transceiver sets the DIR1 pin function. | |
err_t | rstransceiver_term_enable (rstransceiver_t *ctx) |
RS Transceiver term enable function. | |
err_t | rstransceiver_term_disable (rstransceiver_t *ctx) |
RS Transceiver term disable function. | |
err_t | rstransceiver_generic_write (rstransceiver_t *ctx, char *data_in, uint16_t len) |
RS Transceiver data writing function. | |
err_t | rstransceiver_generic_read (rstransceiver_t *ctx, char *data_out, uint16_t len) |
RS Transceiver data reading function. | |
This file contains API for RS Transceiver Click Driver.