Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
address_t Struct Reference
MAC address data type. More...
#include <BLETypes.h>
Inherits byte_array_t< 6 >.
Public Member Functions | |
address_t () | |
Create an invalid mac address, equal to 00:00:00:00:00:00. | |
address_t (const uint8_t *input_value) | |
Initialize a data from an array of bytes. | |
uint8_t & | operator[] (size_t i) |
Subscript operator to access data content. | |
uint8_t | operator[] (size_t i) const |
Subscript operator to access data content. | |
const uint8_t * | data () const |
Return the pointer to the buffer holding data. | |
uint8_t * | data () |
Return the pointer to the buffer holding data. | |
Static Public Member Functions | |
static size_t | size () |
Size in byte of a data. | |
Static Public Attributes | |
static const size_t | size_ |
Size of the array; accessible at compile time. | |
Friends | |
bool | operator== (const byte_array_t &lhs, const byte_array_t &rhs) |
Equal operator between two octet types. | |
bool | operator!= (const byte_array_t &lhs, const byte_array_t &rhs) |
Non equal operator between two octet types. |
Detailed Description
MAC address data type.
Definition at line 473 of file BLETypes.h.
Constructor & Destructor Documentation
address_t | ( | ) |
Create an invalid mac address, equal to 00:00:00:00:00:00.
Definition at line 477 of file BLETypes.h.
address_t | ( | const uint8_t * | input_value ) |
Initialize a data from an array of bytes.
- Parameters:
-
[in] input_value value of the data.
Definition at line 486 of file BLETypes.h.
Member Function Documentation
const uint8_t* data | ( | ) | const [inherited] |
Return the pointer to the buffer holding data.
Definition at line 396 of file BLETypes.h.
uint8_t* data | ( | ) | [inherited] |
Return the pointer to the buffer holding data.
Definition at line 403 of file BLETypes.h.
uint8_t operator[] | ( | size_t | i ) | const [inherited] |
Subscript operator to access data content.
Definition at line 389 of file BLETypes.h.
uint8_t& operator[] | ( | size_t | i ) | [inherited] |
Subscript operator to access data content.
Definition at line 382 of file BLETypes.h.
static size_t size | ( | ) | [static, inherited] |
Size in byte of a data.
Definition at line 410 of file BLETypes.h.
Friends And Related Function Documentation
bool operator!= | ( | const byte_array_t< 6 > & | lhs, |
const byte_array_t< 6 > & | rhs | ||
) | [friend, inherited] |
Non equal operator between two octet types.
Definition at line 375 of file BLETypes.h.
bool operator== | ( | const byte_array_t< 6 > & | lhs, |
const byte_array_t< 6 > & | rhs | ||
) | [friend, inherited] |
Equal operator between two octet types.
Definition at line 368 of file BLETypes.h.
Field Documentation
const size_t size_ [static, inherited] |
Size of the array; accessible at compile time.
Definition at line 337 of file BLETypes.h.
Generated on Tue Jul 12 2022 13:55:39 by
