Microchip® Advanced Software Framework

altbeacon.h File Reference

AltBeacon Application Declarations.

Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.

Macros

#define ALT_BEACON_16BYTE_UUID   ("\x00\x00\x00\x00\x00\x00\x10\x00\x80\x00\x00\x80\x5f\x9b\x34\xfb")
 
#define ALT_BEACON_16BYTE_UUID_LENGTH   (0x10)
 
#define ALT_BEACON_2BYTE_LEN   (0x02)
 
#define ALT_BEACON_ABSOLUTE_INTERVAL_ADV   (1)
 
#define ALT_BEACON_ADV_LENGTH   (0x1b)
 
#define ALT_BEACON_ADV_TIMEOUT   (0)
 
#define ALT_BEACON_ADV_TYPE_LENGTH   (0x01)
 
#define ALT_BEACON_CODE   ("\xbe\xac")
 
#define ALT_BEACON_CODE_LENGTH   (0x02)
 
#define ALT_BEACON_MAJOR_NUM   ("\x00\x01")
 
#define ALT_BEACON_MINOR_NUM   ("\x00\x01")
 
#define ALT_BEACON_SCAN_RESPONSE_LENGTH   (0x00)
 
#define DBG_LOG
 
#define MANUFACTURER_ID   ("\x13\x00")
 
#define MANUFACTURER_ID_LENGTH   (0x02)
 
#define MANUFACTURER_SPECIFIC_TYPE   (0xff)
 
#define MFG_RSVD   (0x00)
 
#define REF_RSSI   (0xd3)
 

Functions

static void altbeacon_init (void)
 Initialize the AltBeacon advertisement data and start advertisement. More...
 
static void ble_init (void)
 Initialize the ble module. More...
 
static void ble_set_address (at_ble_addr_t *addr)
 Set BLE address. More...
 

#define ALT_BEACON_16BYTE_UUID   ("\x00\x00\x00\x00\x00\x00\x10\x00\x80\x00\x00\x80\x5f\x9b\x34\xfb")

Referenced by altbeacon_init().

#define ALT_BEACON_16BYTE_UUID_LENGTH   (0x10)

Referenced by altbeacon_init().

#define ALT_BEACON_2BYTE_LEN   (0x02)

Referenced by altbeacon_init().

#define ALT_BEACON_ABSOLUTE_INTERVAL_ADV   (1)

Referenced by altbeacon_init().

#define ALT_BEACON_ADV_LENGTH   (0x1b)

Referenced by altbeacon_init().

#define ALT_BEACON_ADV_TIMEOUT   (0)

Referenced by altbeacon_init().

#define ALT_BEACON_ADV_TYPE_LENGTH   (0x01)

Referenced by altbeacon_init().

#define ALT_BEACON_CODE   ("\xbe\xac")

Referenced by altbeacon_init().

#define ALT_BEACON_CODE_LENGTH   (0x02)

Referenced by altbeacon_init().

#define ALT_BEACON_MAJOR_NUM   ("\x00\x01")

Referenced by altbeacon_init().

#define ALT_BEACON_MINOR_NUM   ("\x00\x01")

Referenced by altbeacon_init().

#define ALT_BEACON_SCAN_RESPONSE_LENGTH   (0x00)

Referenced by altbeacon_init().

#define DBG_LOG
Value:
printf("\r\n");\
printf
#define MANUFACTURER_ID   ("\x13\x00")

Referenced by altbeacon_init().

#define MANUFACTURER_ID_LENGTH   (0x02)

Referenced by altbeacon_init().

#define MANUFACTURER_SPECIFIC_TYPE   (0xff)

Referenced by altbeacon_init().

#define MFG_RSVD   (0x00)

Referenced by altbeacon_init().

#define REF_RSSI   (0xd3)

Referenced by altbeacon_init().

static void altbeacon_init ( void  )
static

Initialize the AltBeacon advertisement data and start advertisement.

static void ble_init ( void  )
static

Initialize the ble module.

static void ble_set_address ( at_ble_addr_t addr)
static

Set BLE address.

Parameters
[in]at_ble_addr_tIf address is NULL then it will use BD public address.