Gleb Klochkov / Mbed OS Climatcontroll_Main

Dependencies:   esp8266-driver

Embed: (wiki syntax)

« Back to documentation index

address_t Struct Reference

MAC address data type. More...

#include <BLETypes.h>

Inherits ble::byte_array_t< 6 >.

Public Member Functions

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

Static Public Member Functions

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

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 364 of file BLETypes.h.


Constructor & Destructor Documentation

address_t (  )

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

Definition at line 368 of file 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 377 of file BLETypes.h.


Member Function Documentation

uint8_t* buffer (  ) [inherited]

Return the pointer to the buffer holding data.

Definition at line 323 of file BLETypes.h.

const uint8_t* data (  ) const [inherited]

Return the pointer to the buffer holding data.

Definition at line 316 of file BLETypes.h.

uint8_t& operator[] ( uint8_t  i ) [inherited]

Subscript operator to access data content.

Definition at line 309 of file BLETypes.h.

static size_t size (  ) [static, inherited]

Size in byte of a data.

Definition at line 330 of file BLETypes.h.


Friends And Related Function Documentation

bool operator!= ( const byte_array_t< array_size > &  lhs,
const byte_array_t< array_size > &  rhs 
) [friend, inherited]

Non equal operator between two octet types.

Definition at line 302 of file BLETypes.h.

bool operator== ( const byte_array_t< array_size > &  lhs,
const byte_array_t< array_size > &  rhs 
) [friend, inherited]

Equal operator between two octet types.

Definition at line 295 of file BLETypes.h.