Rtos API example

Embed: (wiki syntax)

« Back to documentation index

received_advertising_type_t Struct Reference

received_advertising_type_t Struct Reference

Type of advertising the LE subsystem can use when it advertise. More...

#include <GapTypes.h>

Inherits SafeEnum< received_advertising_type_t, uint8_t >.

Public Types

enum  type {
  ADV_IND = 0x00, ADV_DIRECT_IND = 0x01, ADV_SCAN_IND = 0x02, ADV_NONCONN_IND = 0x03,
  SCAN_RESPONSE = 0x04
}

Public Member Functions

 received_advertising_type_t (type value)
 Construct a new received_advertising_type_t value.
uint8_t value () const
 Explicit access to the inner value of the SafeEnum instance.

Friends

bool operator== (SafeEnum lhs, SafeEnum rhs)
 Equal to operator for SafeEnum instances.
bool operator!= (SafeEnum lhs, SafeEnum rhs)
 Not equal to operator for SafeEnum instances.

Detailed Description

Type of advertising the LE subsystem can use when it advertise.

Definition at line 558 of file GapTypes.h.


Member Enumeration Documentation

enum type
Enumerator:
ADV_IND 

Connectable and scannable undirected advertising .

ADV_DIRECT_IND 

Connectable high duty cycle directed advertising.

ADV_SCAN_IND 

Scannable undirected advertising.

ADV_NONCONN_IND 

Non connectable undirected advertising.

SCAN_RESPONSE 

Response to a scan request.

Definition at line 560 of file GapTypes.h.


Constructor & Destructor Documentation

Construct a new received_advertising_type_t value.

Definition at line 590 of file GapTypes.h.


Member Function Documentation

uint8_t value (  ) const [inherited]

Explicit access to the inner value of the SafeEnum instance.

Definition at line 145 of file SafeEnum.h.


Friends And Related Function Documentation

bool operator!= ( SafeEnum< received_advertising_type_t, uint8_t >  lhs,
SafeEnum< received_advertising_type_t, uint8_t >  rhs 
) [friend, inherited]

Not equal to operator for SafeEnum instances.

Parameters:
lhsleft hand side of the comparison
rhsright hand side of the comparison
Returns:
true if the inner value of lhs and rhs are not equal and false otherwise.

Definition at line 138 of file SafeEnum.h.

bool operator== ( SafeEnum< received_advertising_type_t, uint8_t >  lhs,
SafeEnum< received_advertising_type_t, uint8_t >  rhs 
) [friend, inherited]

Equal to operator for SafeEnum instances.

Parameters:
lhsleft hand side of the comparison
rhsright hand side of the comparison
Returns:
true if the inner value of lhs and rhs are equal and false otherwise.

Definition at line 125 of file SafeEnum.h.