#[repr(C)]pub struct ble_gatts_authorize_params_t {
pub gatt_status: u16,
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
pub offset: u16,
pub len: u16,
pub p_data: *const u8,
}
Expand description
@brief GATT Authorization parameters.
Fields§
§gatt_status: u16
< GATT status code for the operation, see @ref BLE_GATT_STATUS_CODES.
_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>
§offset: u16
< Offset of the attribute value being updated.
len: u16
< Length in bytes of the value in p_data pointer, see @ref BLE_GATTS_ATTR_LENS_MAX.
p_data: *const u8
< Pointer to new value used to update the attribute value.
Implementations§
pub fn update(&self) -> u8
pub fn set_update(&mut self, val: u8)
pub fn new_bitfield_1(update: u8) -> __BindgenBitfieldUnit<[u8; 1], u8>
Trait Implementations§
source§fn clone(&self) -> ble_gatts_authorize_params_t
fn clone(&self) -> ble_gatts_authorize_params_t
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more