Mistake on this page?
Report an issue in GitHub or email us
Public Member Functions | Static Public Member Functions | Static Public Attributes
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 480 of file common/BLETypes.h.

Constructor & Destructor Documentation

address_t ( )

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

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

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 493 of file common/BLETypes.h.

Member Function Documentation

const uint8_t* data ( ) const
inherited

Return the pointer to the buffer holding data.

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

uint8_t* data ( )
inherited

Return the pointer to the buffer holding data.

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

uint8_t& operator[] ( size_t  i)
inherited

Subscript operator to access data content.

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

uint8_t operator[] ( size_t  i) const
inherited

Subscript operator to access data content.

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

static size_t size ( )
staticinherited

Size in byte of a data.

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

Field Documentation

const size_t size_
staticinherited

Size of the array; accessible at compile time.

Definition at line 344 of file common/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.