#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 Handle_List Handle_List |
The struct of handle list.
typedef struct Packet_Buffer Packet_Buffer |
The structure of PacketOut/PacketIn.
enum app_state_type |
Device State Definitions.
enum tss_state_t |
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 process_data | ( | void | ) |
References att_server_request_can_send_now_event(), BLE_GAP_ROLE_SLAVE, App_List::connHandle, App_List::role, state, and TSS_RETURN_DATA_S_TO_C.
Referenced by app_process_incomming_packet(), and packet_handler().
void push_into_transmit_buffer | ( | uint8_t | len, |
uint8_t * | buf | ||
) |
void tss_app_initialize | ( | void | ) |
void tss_app_setup | ( | void | ) |
References ATT_CHARACTERISTIC_CONTROL_POINT_CHARATERISITC_CCD_VALUE_HANDLE, ATT_CHARACTERISTIC_CONTROL_POINT_CHARATERISITC_VALUE_HANDLE, ATT_CHARACTERISTIC_RX_CHARATERISITC_VALUE_HANDLE, ATT_CHARACTERISTIC_TX_CHARATERISITC_CCD_VALUE_HANDLE, ATT_CHARACTERISTIC_TX_CHARATERISITC_VALUE_HANDLE, att_read_callback(), att_server_init(), att_server_register_packet_handler(), att_write_callback(), btstack_packet_callback_registration_t::callback, Handle_List::ctrlCCCD, hci_add_event_handler(), l2cap_init(), le_device_db_init(), packet_handler(), profile_data, sm_init(), Handle_List::transCtrl, Handle_List::transRx, Handle_List::transTx, tss_app_initialize(), and Handle_List::txCCCD.
void tss_start_advertising | ( | void | ) |
References adv_data_len, gap_advertisements_enable(), gap_advertisements_set_data(), gap_advertisements_set_params(), and tss_adv_data.
Referenced by tss_app_initialize().
const uint8_t profile_data[] |