Mbed OS Reference
Loading...
Searching...
No Matches
address_t Struct Reference

MAC address data type. More...

#include <BLETypes.h>

Inheritance diagram for address_t:
byte_array_t< 6 >

Public Member Functions

 address_t ()
 Create an invalid mac address, equal to 00:00:00:00:00:00. More...
 
 address_t (const uint8_t *input_value)
 Initialize a data from an array of bytes. More...
 
uint8_t & operator[] (size_t i)
 Subscript operator to access data content. More...
 
uint8_t operator[] (size_t i) const
 Subscript operator to access data content. More...
 
const uint8_t * data () const
 Return the pointer to the buffer holding data. More...
 
uint8_t * data ()
 Return the pointer to the buffer holding data. More...
 

Static Public Member Functions

static size_t size ()
 Size in byte of a data. More...
 

Static Public Attributes

static const size_t size_
 Size of the array; accessible at compile time. More...
 

Detailed Description

MAC address data type.

Definition at line 484 of file common/BLETypes.h.

Constructor & Destructor Documentation

◆ address_t() [1/2]

address_t ( )

Create an invalid mac address, equal to 00:00:00:00:00:00.

Definition at line 488 of file common/BLETypes.h.

◆ address_t() [2/2]

address_t ( const uint8_t *  input_value)

Initialize a data from an array of bytes.

Parameters
[in]input_valuevalue of the data.

Definition at line 497 of file common/BLETypes.h.

Member Function Documentation

◆ operator[]() [1/2]

uint8_t & operator[] ( size_t  i)
inherited

Subscript operator to access data content.

Definition at line 393 of file common/BLETypes.h.

◆ operator[]() [2/2]

uint8_t operator[] ( size_t  i) const
inherited

Subscript operator to access data content.

Definition at line 400 of file common/BLETypes.h.

◆ data() [1/2]

const uint8_t * data ( ) const
inherited

Return the pointer to the buffer holding data.

Definition at line 407 of file common/BLETypes.h.

◆ data() [2/2]

uint8_t * data ( )
inherited

Return the pointer to the buffer holding data.

Definition at line 414 of file common/BLETypes.h.

◆ size()

static size_t size ( )
staticinherited

Size in byte of a data.

Definition at line 421 of file common/BLETypes.h.

Field Documentation

◆ size_

const size_t size_
staticinherited

Size of the array; accessible at compile time.

Definition at line 348 of file common/BLETypes.h.