Rtos API example

Embed: (wiki syntax)

« Back to documentation index

DiscoveredCharacteristic::Properties_t Struct Reference

DiscoveredCharacteristic::Properties_t Struct Reference

Properties of a discovered characteristic. More...

#include <DiscoveredCharacteristic.h>

Public Member Functions

bool broadcast (void) const
 Return the value of the broadcast propertie.
bool read (void) const
 Return the value of the read property.
bool writeWoResp (void) const
 Return the value of the write without response property.
bool write (void) const
 Return the value of the write property.
bool notify (void) const
 Return the value of the notification property.
bool indicate (void) const
 Return the value of the indicate property.
bool authSignedWrite (void) const
 Return the value of the authenticated signed writes property.

Data Fields

uint8_t _broadcast:1
 Permits broadcasts of the characteristic value using the character the Server Characteristic Configuration Descriptor.
uint8_t _read:1
 If set, the value of the characteristic can be read.
uint8_t _writeWoResp:1
 If set, a write command can write the characteristic value (write without response).
uint8_t _write:1
 If set, clients can issue requests to write the characteristic.
uint8_t _notify:1
 If set, the server can emit notifications of the Characteristic Value (without client acknowledgment).
uint8_t _indicate:1
 If set, the server can emit indication of the Characteristic Value (with client acknowledgement).
uint8_t _authSignedWrite:1
 If set, signed write of the Characteristic Value is supported.

Friends

bool operator== (Properties_t lhs, Properties_t rhs)
 Equal to operator for DiscoveredCharacteristic::Properties_t.
bool operator!= (Properties_t lhs, Properties_t rhs)
 Not equal to operator for DiscoveredCharacteristic::Properties_t.

Detailed Description

Properties of a discovered characteristic.

Definition at line 94 of file DiscoveredCharacteristic.h.


Member Function Documentation

bool authSignedWrite ( void   ) const

Return the value of the authenticated signed writes property.

Returns:
true if the characteristic accepts authenticated signed write and false otherwise.

Definition at line 237 of file DiscoveredCharacteristic.h.

bool broadcast ( void   ) const

Return the value of the broadcast propertie.

Returns:
true if the Server Characteristic Configuration Descriptor of the characteristic can be configured to broadcast the characteristic value during broadcast procedure.
See also:
_broadcast

Definition at line 153 of file DiscoveredCharacteristic.h.

bool indicate ( void   ) const

Return the value of the indicate property.

Returns:
true if the Client Characteristic Configuration Descriptor can be configured to indicate the characteristic value to a given client and false otherwise.
Note:
unlike notification the indication procedure does require acknowledgment from the client.
See also:
_indicate

Definition at line 226 of file DiscoveredCharacteristic.h.

bool notify ( void   ) const

Return the value of the notification property.

Returns:
true if the Client Characteristic Configuration Descriptor can be configured to notify the characteristic value to a given client and false otherwise.
Note:
unlike indication, the notification procedure does not require acknowledgement from the client.
See also:
_notify

Definition at line 209 of file DiscoveredCharacteristic.h.

bool read ( void   ) const

Return the value of the read property.

Returns:
true if the characteristic value can be read and false otherwise.
See also:
_read

Definition at line 166 of file DiscoveredCharacteristic.h.

bool write ( void   ) const

Return the value of the write property.

Returns:
true if writing the characteristic accepts write requests and false otherwise.
See also:
_write

Definition at line 192 of file DiscoveredCharacteristic.h.

bool writeWoResp ( void   ) const

Return the value of the write without response property.

Returns:
true if the characteristic accepts write without response commands and false otherwise.
See also:
_writeWoResp

Definition at line 179 of file DiscoveredCharacteristic.h.


Friends And Related Function Documentation

bool operator!= ( Properties_t  lhs,
Properties_t  rhs 
) [friend]

Not equal to operator for DiscoveredCharacteristic::Properties_t.

Parameters:
lhsThe left hand side of the expression.
rhsThe right hand side of the expression.
Returns:
true if operands are not equals, false otherwise.

Definition at line 269 of file DiscoveredCharacteristic.h.

bool operator== ( Properties_t  lhs,
Properties_t  rhs 
) [friend]

Equal to operator for DiscoveredCharacteristic::Properties_t.

Parameters:
[in]lhsThe left hand side of the equality expression.
[in]rhsThe right hand side of the equality expression.
Returns:
true if operands are equals and false otherwise.

Definition at line 250 of file DiscoveredCharacteristic.h.


Field Documentation

If set, signed write of the Characteristic Value is supported.

Definition at line 141 of file DiscoveredCharacteristic.h.

uint8_t _broadcast

Permits broadcasts of the characteristic value using the character the Server Characteristic Configuration Descriptor.

Note:
If set, descriptors of the characteristic contain a Server Characteristic Configuration Descriptor.

Definition at line 102 of file DiscoveredCharacteristic.h.

uint8_t _indicate

If set, the server can emit indication of the Characteristic Value (with client acknowledgement).

Note:
If set, descriptors of the characteristic contain a Client Characteristic Configuration Descriptor.

Definition at line 136 of file DiscoveredCharacteristic.h.

uint8_t _notify

If set, the server can emit notifications of the Characteristic Value (without client acknowledgment).

Note:
If set, descriptors of the characteristic contain a Client Characteristic Configuration Descriptor.

Definition at line 127 of file DiscoveredCharacteristic.h.

uint8_t _read

If set, the value of the characteristic can be read.

Definition at line 107 of file DiscoveredCharacteristic.h.

uint8_t _write

If set, clients can issue requests to write the characteristic.

Definition at line 118 of file DiscoveredCharacteristic.h.

uint8_t _writeWoResp

If set, a write command can write the characteristic value (write without response).

Definition at line 113 of file DiscoveredCharacteristic.h.