![]() |
Cordio Stack and Cordio Profiles
r2p3-02rel0
|
Macros | |
| #define | URICFG_UUID_BYTES(id) |
| UriBeacon configuration service-related UUIDs. More... | |
| #define | URICFG_SERVICE_UUID 0xFED8 |
| UriBeacon service UUID for advertising data. | |
Typedefs | |
| typedef void(* | uriCfgAttWriteCback_t) (uint16_t handle, uint16_t valueLen, const uint8_t *pValue) |
| Attribute write callback. More... | |
| typedef void(* | uriCfgLockChangeCback_t) (uint8_t lockState, const uint8_t *pLock) |
| Lock change callback. More... | |
Functions | |
| void | UriCfgStart (const uint8_t *pUriData, uint8_t uriDataLen, uint8_t uriFlags, int8_t *pAdvTxPwrLevels, uint8_t txPwrMode, uint16_t beaconPeriod) |
| Start UriBeacon configuration service. More... | |
| void | UriCfgStop (void) |
| Stop UriBeacon configuration service. More... | |
| void | UriCfgAttWriteCbackRegister (uriCfgAttWriteCback_t cback) |
| Register callback for written UriBeacon attributes. More... | |
| void | UriCfgMakeLockable (uint8_t lockState, uint8_t *pLock, uriCfgLockChangeCback_t cback) |
| Make UriBeacon lockable. More... | |
| void | UriCfgSetUriDataResetValue (const uint8_t *pUriData) |
| Set reset value of URI data. More... | |
URI Config Attributes Sizes | |
| #define | URICFG_MAXSIZE_URIDATA_ATT 18 |
| Size of URI data attribute. | |
| #define | URICFG_SIZE_TXPWRLEVELS_ATT 4 |
| Size of transmit power levels attribute. | |
| #define | URICFG_SIZE_LOCK_ATT 16 |
| Size of lock attribute. | |
Beacon period Attribute Values | |
| #define | URICFG_ATT_BEACONPERIOD_MIN 20 |
| Minimum period. | |
| #define | URICFG_ATT_BEACONPERIOD_MAX 10240 |
| Maximum period. | |
| #define | URICFG_ATT_BEACONPERIOD_DISABLE 0 |
| Value to disable beacon. | |
Default (Reset) Values of Attributes | |
| #define | URICFG_ATT_URIFLAGS_DEFAULT 0x00 |
| Default URI flags. | |
| #define | URICFG_ATT_TXPWRMODE_DEFAULT URICFG_ATT_TXPWRMODE_LOW |
| Default TX power mode. | |
| #define | URICFG_ATT_BEACONPERIOD_DEFAULT 1000 |
| Default beacon period in milliseconds (1 second) | |
| #define | URICFG_ATT_LOCK_DEFAULT_BYTES |
| Default lock bytes. More... | |
| #define URICFG_UUID_BYTES | ( | id | ) |
UriBeacon configuration service-related UUIDs.
Definition at line 35 of file uricfg_defs.h.
| #define URICFG_ATT_LOCK_DEFAULT_BYTES |
Default lock bytes.
Definition at line 90 of file uricfg_defs.h.
Attribute write callback.
| handle | Attribute handle. |
| valueLen | Length of value data. |
| pValue | Pointer to value data. |
Definition at line 50 of file uricfg_api.h.
Lock change callback.
| lockState | New lock state. |
| lock | Lock value. |
Definition at line 62 of file uricfg_api.h.
| void UriCfgStart | ( | const uint8_t * | pUriData, |
| uint8_t | uriDataLen, | ||
| uint8_t | uriFlags, | ||
| int8_t * | pAdvTxPwrLevels, | ||
| uint8_t | txPwrMode, | ||
| uint16_t | beaconPeriod | ||
| ) |
Start UriBeacon configuration service.
| pUriData | Initial URI data value |
| uriDataLen | Length of URI data value |
| uriFlags | Initial URI flags value |
| pAdvTxPwrLevels | Initial advertised tx power levels value |
| txPwrMode | Initial tx power mode value |
| beaconPeriod | Initial beacon period value |
| void UriCfgStop | ( | void | ) |
Stop UriBeacon configuration service.
| void UriCfgAttWriteCbackRegister | ( | uriCfgAttWriteCback_t | cback | ) |
Register callback for written UriBeacon attributes.
| cback | Callback to invoke when an attribute changes. |
| void UriCfgMakeLockable | ( | uint8_t | lockState, |
| uint8_t * | pLock, | ||
| uriCfgLockChangeCback_t | cback | ||
| ) |
Make UriBeacon lockable.
| lockState | Initial lock state value. |
| pLock | Initial lock value. |
| cback | Callback to invoke when lock changes. |
| void UriCfgSetUriDataResetValue | ( | const uint8_t * | pUriData | ) |
Set reset value of URI data.
| pUriData | Reset value of URI data. |