Mbed OS Reference
|
Passkey stored as a string of digits. More...
#include <BLETypes.h>
Public Member Functions | |
PasskeyAscii () | |
Default to all zeroes. More... | |
PasskeyAscii (const uint8_t *passkey) | |
Initialize a data from a string. More... | |
PasskeyAscii (passkey_num_t passkey) | |
Initialize a data from a number. More... | |
operator passkey_num_t () | |
Cast to number. More... | |
uint8_t * | value () |
Return the pointer to the buffer holding the string. More... | |
Static Public Member Functions | |
static uint32_t | to_num (const uint8_t *ascii) |
Convert ASCII string of digits into a number. More... | |
Passkey stored as a string of digits.
Definition at line 244 of file common/BLETypes.h.
PasskeyAscii | ( | ) |
Default to all zeroes.
Definition at line 252 of file common/BLETypes.h.
PasskeyAscii | ( | const uint8_t * | passkey | ) |
Initialize a data from a string.
[in] | passkey | value of the data. |
Definition at line 261 of file common/BLETypes.h.
PasskeyAscii | ( | passkey_num_t | passkey | ) |
Initialize a data from a number.
[in] | passkey | value of the data. |
Definition at line 274 of file common/BLETypes.h.
operator passkey_num_t | ( | ) |
Cast to number.
Definition at line 289 of file common/BLETypes.h.
|
static |
Convert ASCII string of digits into a number.
[in] | ascii | ASCII string of 6 digits stored as ASCII characters |
Definition at line 298 of file common/BLETypes.h.
uint8_t * value | ( | ) |
Return the pointer to the buffer holding the string.
Definition at line 309 of file common/BLETypes.h.