Microchip® Advanced Software Framework

pan.h File Reference
#include <stdint.h>
#include "bluetooth.h"

Functions

void pan_create_gn_sdp_service (uint8_t *service, uint32_t service_record_handle, uint16_t *network_packet_types, const char *name, const char *description, security_description_t security_desc, const char *IPv4Subnet, const char *IPv6Subnet)
 Creates SDP record for GN BNEP service in provided empty buffer. More...
 
void pan_create_nap_sdp_record (uint8_t *service, uint32_t service_record_handle, uint16_t *network_packet_types, const char *name, const char *description, security_description_t security_desc, net_access_type_t net_access_type, uint32_t max_net_access_rate, const char *IPv4Subnet, const char *IPv6Subnet)
 Creates SDP record for NAP BNEP service in provided empty buffer. More...
 
void pan_create_panu_sdp_record (uint8_t *service, uint32_t service_record_handle, uint16_t *network_packet_types, const char *name, const char *description, security_description_t security_desc)
 Creates SDP record for PANU BNEP service in provided empty buffer. More...
 

void pan_create_gn_sdp_service ( uint8_t *  service,
uint32_t  service_record_handle,
uint16_t *  network_packet_types,
const char *  name,
const char *  description,
security_description_t  security_desc,
const char *  IPv4Subnet,
const char *  IPv6Subnet 
)

Creates SDP record for GN BNEP service in provided empty buffer.

Note
Make sure the buffer is big enough.
Parameters
serviceis an empty buffer to store service record
service_record_handlefor new service
network_packet_typesarray of types terminated by a 0x0000 entry
nameif NULL, the default service name will be assigned
descriptionif NULL, the default service description will be assigned
security_desc
IPv4Subnetis optional subnet definition, e.g. "10.0.0.0/8"
IPv6Subnetis optional subnet definition given in the standard IETF format with the absolute attribute IDs
void pan_create_nap_sdp_record ( uint8_t *  service,
uint32_t  service_record_handle,
uint16_t *  network_packet_types,
const char *  name,
const char *  description,
security_description_t  security_desc,
net_access_type_t  net_access_type,
uint32_t  max_net_access_rate,
const char *  IPv4Subnet,
const char *  IPv6Subnet 
)

Creates SDP record for NAP BNEP service in provided empty buffer.

Note
Make sure the buffer is big enough.
Parameters
serviceis an empty buffer to store service record
service_record_handlefor new service
nameif NULL, the default service name will be assigned
network_packet_typesarray of types terminated by a 0x0000 entry
descriptionif NULL, the default service description will be assigned
security_desc
net_access_typetype of available network access
max_net_access_ratebased on net_access_type measured in byte/s
IPv4Subnetis optional subnet definition, e.g. "10.0.0.0/8"
IPv6Subnetis optional subnet definition given in the standard IETF format with the absolute attribute IDs
void pan_create_panu_sdp_record ( uint8_t *  service,
uint32_t  service_record_handle,
uint16_t *  network_packet_types,
const char *  name,
const char *  description,
security_description_t  security_desc 
)

Creates SDP record for PANU BNEP service in provided empty buffer.

Note
Make sure the buffer is big enough.
Parameters
serviceis an empty buffer to store service record
service_record_handlefor new service
network_packet_typesarray of types terminated by a 0x0000 entry
nameif NULL, the default service name will be assigned
descriptionif NULL, the default service description will be assigned
security_desc