rn4871 2.0.0.0
|
This file contains API for RN4871 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 | rn4871_t |
Click ctx object definition. More... | |
struct | rn4871_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | RN4871_MAP_MIKROBUS(cfg, mikrobus) |
#define | RN4871_RETVAL uint8_t |
#define | RN4871_OK 0x00 |
#define | RN4871_INIT_ERROR 0xFF |
#define | RN4871_DEVICETYPE_MASTER 0x02 |
#define | RN4871_DEVICETYPE_SLAVE 0x03 |
#define | RN4871_ID_MASTER 0x35 |
#define | RN4871_ID_SLAVE 0x32 |
#define | RN4871_MTYPE_MSG 'M' |
#define | RN4871_DTYPE_STRING 0x5331 |
#define | DRV_RX_BUFFER_SIZE 500 |
Functions | |
void | rn4871_cfg_setup (rn4871_cfg_t *cfg) |
Config Object Initialization function. | |
RN4871_RETVAL | rn4871_init (rn4871_t *ctx, rn4871_cfg_t *cfg) |
Initialization function. | |
void | rn4871_reset (rn4871_t *ctx) |
Hardware reset function. | |
void | rn4871_generic_write (rn4871_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | rn4871_generic_read (rn4871_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
uint8_t | rn4871_int_get (rn4871_t *ctx) |
Get interrupt state function. | |
void | rn4871_rst_set (rn4871_t *ctx, uint8_t pin_state) |
Set states of RST pin to desired state. | |
void | rn4871_cs_set (rn4871_t *ctx, uint8_t pin_state) |
Set states of CS pin to desired state. | |
void | rn4871_uart_write (rn4871_t *ctx, uint8_t *wr_buf) |
UART write function. | |
void | rn4871_initialize (rn4871_t *ctx, char *p_addr) |
Initialization RN4871 module. | |
void | rn4871_connect (rn4871_t *ctx, char *p_addr) |
Connecting to slave device. | |
void | rn4871_send (rn4871_t *ctx, uint8_t msg_type, uint16_t data_type, uint8_t id, uint8_t *payload) |
Send message function. | |
void | rn4871_disconnect (rn4871_t *ctx) |
Disconnecting from slave device. | |
void | rn4871_receive (rn4871_t *ctx, char tmp) |
Receiving character function. | |
uint8_t | rn4871_read (rn4871_t *ctx, uint8_t *process_buffer) |
Reading received message. | |
This file contains API for RN4871 Click driver.