Microchip® Advanced Software Framework

ble_transparent.h File Reference
#include <stdint.h>

Data Structures

struct  App_List
 The structure of . More...
 
struct  Handle_List
 The struct of handle list. More...
 
struct  Packet_Buffer
 The structure of PacketOut/PacketIn. More...
 

Macros

#define ATT_CHARACTERISTIC_CONTROL_POINT_CHARATERISITC_CCD_VALUE_HANDLE   0x000F
 
#define ATT_CHARACTERISTIC_CONTROL_POINT_CHARATERISITC_VALUE_HANDLE   0x000E
 
#define ATT_CHARACTERISTIC_RX_CHARATERISITC_VALUE_HANDLE   0x000C
 
#define ATT_CHARACTERISTIC_TX_CHARATERISITC_CCD_VALUE_HANDLE   0x000A
 
#define ATT_CHARACTERISTIC_TX_CHARATERISITC_VALUE_HANDLE   0x0009
 
#define BLE_GAP_ROLE_SLAVE   0x01
 
#define CREDIT_BASED_FLOW_CONTROL_DISABLED   0
 Definition of CCCD Disable. More...
 
#define CREDIT_BASED_FLOW_CONTROL_ENABLED   1
 Definition of CCCD Enable. More...
 
#define CREDIT_CTRL_STATUS_SUCCESS   0
 Definition of Response for successful operation. More...
 
#define MAX_PACKET_BUFFER_LIST   8
 Number of PacketOut/PacketIn. More...
 
#define TR_READ_MTU_SIZE_AND_ENABLE_CREDIT_CTRL   0x14
 Definition of Op Code for Credit Based Flow Control Protocol,sending by Server. More...
 
#define TSS_RES_FAIL   0x0001
 Execution fail. More...
 
#define TSS_RES_SUCCESS   0x0000
 Execution successfully. More...
 

Typedefs

typedef struct App_List App_List
 The structure of . More...
 
typedef struct Handle_List Handle_List
 The struct of handle list. More...
 
typedef struct Packet_Buffer Packet_Buffer
 The structure of PacketOut/PacketIn. More...
 

Enumerations

enum  app_state_type {
  APP_STATE_OFF,
  APP_STATE_STANDBY,
  APP_STATE_LE_CONNECTED,
  APP_STATE_LE_OPEN,
  SPP_STATE_TOTAL
}
 Device State Definitions. More...
 
enum  tss_state_t {
  TSS_IDLE,
  TSS_RETURN_CREDIT_S_TO_C,
  TSS_RETURN_CREDIT_C_TO_S,
  TSS_RETURN_DATA_S_TO_C
}
 

Functions

void app_master_check_credit (uint8_t *payload)
 
void app_master_enable_credit_flow_control (void)
 
void app_master_initiate_credit_flow_control (void)
 
void app_process_incomming_packet (void)
 
void app_process_incomming_uart (void)
 
void le_tss_start_scanning (void)
 
void process_data (void)
 
void push_into_transmit_buffer (uint8_t len, uint8_t *buf)
 
void tss_app_initialize (void)
 
void tss_app_setup (void)
 
void tss_start_advertising (void)
 

Variables

const uint8_t profile_data []
 

#define ATT_CHARACTERISTIC_CONTROL_POINT_CHARATERISITC_CCD_VALUE_HANDLE   0x000F

Referenced by tss_app_setup().

#define ATT_CHARACTERISTIC_CONTROL_POINT_CHARATERISITC_VALUE_HANDLE   0x000E

Referenced by tss_app_setup().

#define ATT_CHARACTERISTIC_RX_CHARATERISITC_VALUE_HANDLE   0x000C

Referenced by tss_app_setup().

#define ATT_CHARACTERISTIC_TX_CHARATERISITC_CCD_VALUE_HANDLE   0x000A

Referenced by tss_app_setup().

#define ATT_CHARACTERISTIC_TX_CHARATERISITC_VALUE_HANDLE   0x0009

Referenced by tss_app_setup().

#define BLE_GAP_ROLE_SLAVE   0x01

Referenced by packet_handler(), and process_data().

#define CREDIT_BASED_FLOW_CONTROL_DISABLED   0

Definition of CCCD Disable.

Referenced by tss_app_initialize().

#define CREDIT_BASED_FLOW_CONTROL_ENABLED   1

Definition of CCCD Enable.

Referenced by att_write_callback(), and packet_handler().

#define CREDIT_CTRL_STATUS_SUCCESS   0

Definition of Response for successful operation.

Referenced by tss_server_return_credit().

#define MAX_PACKET_BUFFER_LIST   8

Number of PacketOut/PacketIn.

Referenced by att_write_callback(), packet_handler(), and push_into_receive_buffer().

#define TR_READ_MTU_SIZE_AND_ENABLE_CREDIT_CTRL   0x14

Definition of Op Code for Credit Based Flow Control Protocol,sending by Server.

Referenced by att_write_callback(), and tss_server_return_credit().

#define TSS_RES_FAIL   0x0001

Execution fail.

#define TSS_RES_SUCCESS   0x0000

Execution successfully.

Referenced by packet_handler(), and tss_server_return_credit().

typedef struct App_List App_List

The structure of .

typedef struct Handle_List Handle_List

The struct of handle list.

typedef struct Packet_Buffer Packet_Buffer

The structure of PacketOut/PacketIn.

Device State Definitions.

Enumerator
APP_STATE_OFF 

Application State: OFF.

APP_STATE_STANDBY 

Application State: Standby.

APP_STATE_LE_CONNECTED 

Application State: LE Connected.

APP_STATE_LE_OPEN 

Application State: Transparent Data Session Open.

SPP_STATE_TOTAL 

Application State: End of the State Definition.

Enumerator
TSS_IDLE 
TSS_RETURN_CREDIT_S_TO_C 
TSS_RETURN_CREDIT_C_TO_S 
TSS_RETURN_DATA_S_TO_C 

void app_master_check_credit ( uint8_t *  payload)
void app_master_enable_credit_flow_control ( void  )
void app_master_initiate_credit_flow_control ( void  )
void app_process_incomming_packet ( void  )

References process_data().

Referenced by push_into_receive_buffer().

void app_process_incomming_uart ( void  )
void le_tss_start_scanning ( void  )
void push_into_transmit_buffer ( uint8_t  len,
uint8_t *  buf 
)

const uint8_t profile_data[]