b102c
2.1.0.0
|
This file contains API for B102C 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 | b102c_t |
B102C Click context object. More... | |
struct | b102c_cfg_t |
B102C Click configuration object. More... | |
Macros | |
#define | B102C_CMD_AT "AT" |
B102C control commands. More... | |
#define | B102C_CMD_RESET "AT+RESET" |
#define | B102C_CMD_LADDR "AT+LADDR" |
#define | B102C_CMD_NAME "AT+NAME" |
#define | B102C_CMD_PIN "AT+PIN" |
#define | B102C_CMD_BAUD "AT+BAUD" |
#define | B102C_CMD_ADVMOD "AT+ADVMOD" |
#define | B102C_CMD_ADVEN "AT+ADVEN" |
#define | B102C_CMD_ADVINT "AT+ADVINT" |
#define | B102C_CMD_POWER "AT+POWER" |
#define | B102C_CMD_ROLE "AT+ROLE" |
#define | B102C_CMD_INQ "AT+INQ" |
#define | B102C_CMD_SINQ "AT+SINQ" |
#define | B102C_CMD_SCANRLT "AT+SCANRLT" |
#define | B102C_CMD_CONN "AT+CONN" |
#define | B102C_CMD_SLEEP "AT+SLEEP" |
#define | B102C_CMD_PAIR "AT+PAIR" |
#define | B102C_CMD_DEFAULT "AT+DEFAULT" |
#define | B102C_CMD_XXX "AT+XXX" |
#define | B102C_CMD_ENTERDTS "AT+ENTERDTS" |
#define | B102C_CMD_GPIOCFG "AT+GPIOCFG" |
#define | B102C_CMD_RSSI "AT+RSSI" |
#define | B102C_CMD_MUUID "AT+MUUID" |
#define | B102C_RSP_OK "OK" |
B102C response. More... | |
#define | B102C_RSP_ERROR "ERR" |
#define | B102C_RSP_READY "Ready" |
#define | B102C_PIN_STATE_HIGH 0x01 |
B102C pin state settings. More... | |
#define | B102C_PIN_STATE_LOW 0x00 |
#define | B102C_TX_DRV_BUFFER_SIZE 100 |
B102C driver buffer size. More... | |
#define | B102C_RX_DRV_BUFFER_SIZE 300 |
#define | B102C_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. More... | |
Enumerations | |
enum | b102c_return_value_t { B102C_OK = 0, B102C_ERROR = -1, B102C_OVERFLOW = -2, B102C_TIMEOUT = -3 } |
B102C Click return value data. More... | |
Functions | |
void | b102c_cfg_setup (b102c_cfg_t *cfg) |
B102C configuration object setup function. More... | |
err_t | b102c_init (b102c_t *ctx, b102c_cfg_t *cfg) |
B102C initialization function. More... | |
err_t | b102c_default_cfg (b102c_t *ctx) |
B102C default configuration function. More... | |
err_t | b102c_generic_write (b102c_t *ctx, uint8_t *data_in, uint16_t len) |
B102C data writing function. More... | |
err_t | b102c_generic_read (b102c_t *ctx, uint8_t *data_out, uint16_t len) |
B102C data reading function. More... | |
void | b102c_set_rst_pin (b102c_t *ctx, uint8_t pin_state) |
B102C set RST pin state function. More... | |
void | b102c_hw_reset (b102c_t *ctx) |
B102C hardware reset function. More... | |
void | b102c_send_cmd (b102c_t *ctx, uint8_t *cmd) |
B102C send command function. More... | |
void | b102c_send_cmd_with_params (b102c_t *ctx, uint8_t *at_cmd_buf, uint8_t *param_buf) |
B102C send command function with parameter. More... | |
void | b102c_send_cmd_check (b102c_t *ctx, uint8_t *at_cmd_buf) |
B102C check the sent command. More... | |
void | b102c_send_cmd_params_check (b102c_t *ctx, uint8_t *at_cmd_buf) |
B102C check the command parameters. More... | |
This file contains API for B102C Click Driver.
enum b102c_return_value_t |