Microchip® Advanced Software Framework

ble_transparent.c File Reference
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "malloc.h"
#include "ble_transparent.h"
#include "btstack.h"

Functions

void app_process_incomming_packet (void)
 
static uint16_t att_read_callback (hci_con_handle_t con_handle, uint16_t att_handle, uint16_t offset, uint8_t *buffer, uint16_t buffer_size)
 
static int att_write_callback (hci_con_handle_t con_handle, uint16_t att_handle, uint16_t transaction_mode, uint16_t offset, uint8_t *buffer, uint16_t buffer_size)
 
int btstack_main (void)
 This function is called after initialization of HCI transport. More...
 
static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size)
 
void process_data (void)
 
static void push_into_receive_buffer (uint8_t len, uint8_t *buf)
 
void tss_app_initialize (void)
 
void tss_app_setup (void)
 
static uint16_t tss_server_return_credit (uint8_t credit)
 
void tss_start_advertising (void)
 

Variables

const uint8_t adv_data_len = sizeof(tss_adv_data)
 
static App_List appList
 
static
btstack_packet_callback_registration_t 
hci_event_callback_registration
 
static Handle_List localHandleList
 
static Packet_Buffer PacketIn [MAX_PACKET_BUFFER_LIST]
 
uint8_t payload_data [5]
 
static tss_state_t state = TSS_IDLE
 
const uint8_t tss_adv_data []
 

void app_process_incomming_packet ( void  )

References process_data().

Referenced by push_into_receive_buffer().

static uint16_t att_read_callback ( hci_con_handle_t  con_handle,
uint16_t  att_handle,
uint16_t  offset,
uint8_t *  buffer,
uint16_t  buffer_size 
)
static

References UNUSED.

Referenced by tss_app_setup().

int btstack_main ( void  )

This function is called after initialization of HCI transport.

References hci_power_control(), HCI_POWER_ON, and le_counter_setup().

static void push_into_receive_buffer ( uint8_t  len,
uint8_t *  buf 
)
static

const uint8_t adv_data_len = sizeof(tss_adv_data)
App_List appList
static
btstack_packet_callback_registration_t hci_event_callback_registration
static
Handle_List localHandleList
static
uint8_t payload_data[5]
tss_state_t state = TSS_IDLE
static
const uint8_t tss_adv_data[]
Initial value:
= {
0x0f, BLUETOOTH_DATA_TYPE_COMPLETE_LOCAL_NAME, 'L', 'E', '-', 'T', 'R', 'A', 'N', 'S', 'P', 'A', 'R', 'E', 'N', 'T',
}
#define BLUETOOTH_DATA_TYPE_COMPLETE_LOCAL_NAME
Definition: bluetooth_data_types.h:17
#define BLUETOOTH_DATA_TYPE_FLAGS
bluetooth_data_types.h generated from Bluetooth SIG website for BTstack https://www.bluetooth.com/specifications/assigned-numbers/generic-access-profile
Definition: bluetooth_data_types.h:9
#define BLUETOOTH_DATA_TYPE_INCOMPLETE_LIST_OF_16_BIT_SERVICE_CLASS_UUIDS
Definition: bluetooth_data_types.h:10

Referenced by tss_start_advertising().