mbusrf4 2.0.0.0
|
This file contains API for M-BUS RF 4 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 | mbusrf4_t |
Click ctx object definition. More... | |
struct | mbusrf4_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef uint8_t | mbusrf4_error_t |
Error type. | |
Functions | |
void | mbusrf4_cfg_setup (mbusrf4_cfg_t *cfg) |
Config Object Initialization function. | |
MBUSRF4_RETVAL | mbusrf4_init (mbusrf4_t *ctx, mbusrf4_cfg_t *cfg) |
Initialization function. | |
void | mbusrf4_generic_write (mbusrf4_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | mbusrf4_generic_read (mbusrf4_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
uint8_t | mbusrf4_get_state_rts (mbusrf4_t *ctx) |
Get Interrupt state of the RTS(INT) pin. | |
void | mbusrf4_set_communication_mode (mbusrf4_t *ctx, uint8_t mode) |
Set communication SPI/UART. | |
void | mbusrf4_send_command (mbusrf4_t *ctx, uint8_t command, uint8_t length, uint8_t *payload_buff) |
Send command - UART communication. | |
void | mbusrf4_transmit_data (mbusrf4_t *ctx, uint8_t *tx_buf, uint8_t tx_len) |
uint8_t | mbusrf4_get_state_ind (mbusrf4_t *ctx) |
Get Interrupt state of the IND(AN) pin. | |
This file contains API for M-BUS RF 4 Click driver.