Mistake on this page?
Report an issue in GitHub or email us
Public Member Functions | Static Public Member Functions
PasskeyAscii Class 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...
 

Detailed Description

Passkey stored as a string of digits.

Definition at line 239 of file BLETypes.h.

Constructor & Destructor Documentation

Default to all zeroes.

Definition at line 247 of file BLETypes.h.

PasskeyAscii ( const uint8_t *  passkey)

Initialize a data from a string.

Parameters
[in]passkeyvalue of the data.

Definition at line 256 of file BLETypes.h.

Initialize a data from a number.

Parameters
[in]passkeyvalue of the data.

Definition at line 269 of file BLETypes.h.

Member Function Documentation

operator passkey_num_t ( )

Cast to number.

Definition at line 280 of file BLETypes.h.

static uint32_t to_num ( const uint8_t *  ascii)
static

Convert ASCII string of digits into a number.

Parameters
[in]asciiASCII string of 6 digits stored as ASCII characters
Returns
Passkey as a number.

Definition at line 289 of file BLETypes.h.

uint8_t* value ( )

Return the pointer to the buffer holding the string.

Definition at line 300 of file BLETypes.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.