Struct riot_sys::ble_gatt_chr_def[][src]

#[repr(C)]
pub struct ble_gatt_chr_def { pub uuid: *const ble_uuid_t, pub access_cb: ble_gatt_access_fn, pub arg: *mut c_void, pub descriptors: *mut ble_gatt_dsc_def, pub flags: ble_gatt_chr_flags, pub min_key_size: u8, pub val_handle: *mut u16, }

Fields

uuid: *const ble_uuid_t

Pointer to characteristic UUID; use BLE_UUIDxx_DECLARE macros to declare proper UUID; NULL if there are no more characteristics in the service.

access_cb: ble_gatt_access_fn

Callback that gets executed when this characteristic is read or written.

arg: *mut c_void

Optional argument for callback.

descriptors: *mut ble_gatt_dsc_def

Array of this characteristic’s descriptors. NULL if no descriptors. Do not include CCCD; it gets added automatically if this characteristic’s notify or indicate flag is set.

flags: ble_gatt_chr_flags

Specifies the set of permitted operations for this characteristic.

min_key_size: u8

Specifies minimum required key size to access this characteristic.

val_handle: *mut u16

At registration time, this is filled in with the characteristic’s value attribute handle.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.