rn4870
2.0.0.0
|
This file contains API for RN4870 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 | rn4870_t |
Click ctx object definition. More... | |
struct | rn4870_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | RN4870_MAP_MIKROBUS(cfg, mikrobus) |
#define | RN4870_RETVAL uint8_t |
#define | RN4870_OK 0x00 |
#define | RN4870_INIT_ERROR 0xFF |
#define | DRV_RX_BUFFER_SIZE 500 |
#define | RN4870_DEVICETYPE_MASTER 0x01 |
#define | RN4870_DEVICETYPE_SLAVE 0x02 |
#define | RN4870_ID_MASTER 0x35 |
#define | RN4870_ID_SLAVE 0x32 |
#define | RN4870_MTYPE_MSG 'M' |
#define | RN4870_DTYPE_STRING 0x5331 |
Functions | |
void | rn4870_cfg_setup (rn4870_cfg_t *cfg) |
Config Object Initialization function. More... | |
RN4870_RETVAL | rn4870_init (rn4870_t *ctx, rn4870_cfg_t *cfg) |
Initialization function. More... | |
void | rn4870_default_cfg (rn4870_t *ctx) |
Click Default Configuration function. More... | |
void | rn4870_reset (rn4870_t *ctx) |
Hardware reset function. More... | |
void | rn4870_generic_write (rn4870_t *ctx, char *data_buf, uint16_t len) |
Generic write function. More... | |
int16_t | rn4870_generic_read (rn4870_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. More... | |
void | rn4870_uart_write (rn4870_t *ctx, uint8_t *tx_data) |
UART write function. More... | |
void | rn4870_initialize (rn4870_t *ctx, char *dev_addr) |
Initialization RN4870 module. More... | |
void | rn4870_connect (rn4870_t *ctx, char *dev_addr) |
Connecting to slave device. More... | |
void | rn4870_disconnect (rn4870_t *ctx) |
Disconnecting from slave device. More... | |
void | rn4870_send (rn4870_t *ctx, uint8_t msg_type, uint16_t data_type, uint8_t dev_id, uint8_t *tx_data) |
Send message function. More... | |
void | rn4870_receive (rn4870_t *ctx, char character) |
Receiving character function. More... | |
uint8_t | rn4870_read (rn4870_t *ctx, uint8_t *rx_data) |
Read received message function. More... | |
uint8_t | rn4870_get_interrupt (rn4870_t *ctx) |
Get interrupt state function. More... | |
void | rn4870_set_rst (rn4870_t *ctx) |
Set states of RST pin to high function. More... | |
void | rn4870_clear_rst (rn4870_t *ctx) |
Clear states of RST pin function. More... | |
void | rn4870_set_rts (rn4870_t *ctx) |
Set states of RTS pin function. More... | |
void | rn4870_clear_rts (rn4870_t *ctx) |
Clear states of RTS pin function. More... | |
void | rn4870_set_pwm (rn4870_t *ctx) |
Set states of PWM pin function. More... | |
void | rn4870_clear_pwm (rn4870_t *ctx) |
Clear states of PWM pin function. More... | |
This file contains API for RN4870 Click driver.