ble7  2.0.0.0
Data Structures | Macros | Typedefs | Functions
ble7.h File Reference

This file contains API for BLE 7 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  ble7_t
 Click ctx object definition. More...
 
struct  ble7_cfg_t
 Click configuration structure definition. More...
 

Macros

#define BLE7_MAP_MIKROBUS(cfg, mikrobus)
 
#define BLE7_RETVAL   uint8_t
 
#define BLE7_OK   0x00
 
#define BLE7_INIT_ERROR   0xFF
 
#define BLE7_END_BUFF   0
 
#define BLE7_RSP_READY   1
 
#define BLE7_RSP_NOT_READY   0
 
#define BLE7_MODULE_POWER_ON   1
 
#define BLE7_MODULE_POWER_OFF   0
 
#define DRV_RX_BUFFER_SIZE   500
 

Typedefs

typedef void(* ble7_hdl_t) (uint8_t *)
 Handler definition. More...
 
typedef uint8_t ble7_error_t
 Error type. More...
 

Functions

void ble7_cfg_setup (ble7_cfg_t *cfg)
 Config Object Initialization function. More...
 
BLE7_RETVAL ble7_init (ble7_t *ctx, ble7_cfg_t *cfg)
 Initialization function. More...
 
void ble7_reset (ble7_t *ctx)
 Reset function. More...
 
void ble7_generic_write (ble7_t *ctx, char *data_buf, uint16_t len)
 Generic write function. More...
 
int32_t ble7_generic_read (ble7_t *ctx, char *data_buf, uint16_t max_len)
 Generic read function. More...
 
void ble7_send_command (ble7_t *ctx, char *command)
 Transmit function. More...
 
void ble7_response_handler_set (ble7_t *ctx, void(*handler)(uint8_t *))
 Handler Setting function. More...
 
void ble7_uart_isr (ble7_t *ctx, uint8_t rx_dat)
 UART ISR function. More...
 
uint8_t ble7_response_ready (ble7_t *ctx)
 Response Ready function. More...
 
uint8_t ble7_get_gp0 (ble7_t *ctx)
 GP0 Pin Getting function. More...
 
uint8_t ble7_get_rts (ble7_t *ctx)
 RTS Pin Getting function. More...
 
void ble7_set_gp1 (ble7_t *ctx, uint8_t state)
 GP1 Pin Setting function. More...
 
void ble7_set_cts (ble7_t *ctx, uint8_t state)
 CTS Pin Setting function. More...
 
void ble7_receive_command (ble7_t *ctx, char *data_buf)
 

Detailed Description

This file contains API for BLE 7 Click driver.