pub struct Aib { /* private fields */ }Expand description
2.2.7.2 - AIB (APS Information Base Attributes)
Implementations§
Source§impl Aib
impl Aib
pub fn new() -> Self
Sourcepub fn take_dirty(&self) -> u64
pub fn take_dirty(&self) -> u64
Returns and clears the bitmask of fields modified since the last call.
Sourcepub fn mark_dirty(&self, id: AibId)
pub fn mark_dirty(&self, id: AibId)
Re-arms the dirty bit of a field, e.g. after a failed store.
Sourcepub fn export_field(&self, id: AibId, buf: &mut [u8]) -> Option<usize>
pub fn export_field(&self, id: AibId, buf: &mut [u8]) -> Option<usize>
Encodes a single field into buf, returning the encoded length.
Returns None for RAM-only fields (no storage key) or if buf
is too small.
Sourcepub fn import_field(&self, id: AibId, data: &[u8]) -> bool
pub fn import_field(&self, id: AibId, data: &[u8]) -> bool
Decodes data into a single field without marking it dirty.
Returns false if the data does not parse as the field type,
leaving the current value untouched.
Sourcepub fn binding_table(
&self,
) -> RwLockReadGuard<'_, StorageVec<Binding, MAX_APS_BINDING_TABLE>>
pub fn binding_table( &self, ) -> RwLockReadGuard<'_, StorageVec<Binding, MAX_APS_BINDING_TABLE>>
Returns a read guard; do not hold it across an
update_* of the same field.
Sourcepub fn update_binding_table(
&self,
f: impl FnOnce(&mut StorageVec<Binding, MAX_APS_BINDING_TABLE>),
)
pub fn update_binding_table( &self, f: impl FnOnce(&mut StorageVec<Binding, MAX_APS_BINDING_TABLE>), )
Updates the field in place under its write lock.
Sourcepub fn designated_coordinator(&self) -> RwLockReadGuard<'_, bool>
pub fn designated_coordinator(&self) -> RwLockReadGuard<'_, bool>
Returns a read guard; do not hold it across an
update_* of the same field.
Sourcepub fn update_designated_coordinator(&self, f: impl FnOnce(&mut bool))
pub fn update_designated_coordinator(&self, f: impl FnOnce(&mut bool))
Updates the field in place under its write lock.
Sourcepub fn channel_mask_list(
&self,
) -> RwLockReadGuard<'_, StorageVec<IeeeAddress, MAX_APS_CHANNEL_MASK_LIST>>
pub fn channel_mask_list( &self, ) -> RwLockReadGuard<'_, StorageVec<IeeeAddress, MAX_APS_CHANNEL_MASK_LIST>>
Returns a read guard; do not hold it across an
update_* of the same field.
Sourcepub fn update_channel_mask_list(
&self,
f: impl FnOnce(&mut StorageVec<IeeeAddress, MAX_APS_CHANNEL_MASK_LIST>),
)
pub fn update_channel_mask_list( &self, f: impl FnOnce(&mut StorageVec<IeeeAddress, MAX_APS_CHANNEL_MASK_LIST>), )
Updates the field in place under its write lock.
Sourcepub fn use_extended_pan_id(&self) -> RwLockReadGuard<'_, IeeeAddress>
pub fn use_extended_pan_id(&self) -> RwLockReadGuard<'_, IeeeAddress>
Returns a read guard; do not hold it across an
update_* of the same field.
Sourcepub fn update_use_extended_pan_id(&self, f: impl FnOnce(&mut IeeeAddress))
pub fn update_use_extended_pan_id(&self, f: impl FnOnce(&mut IeeeAddress))
Updates the field in place under its write lock.
Sourcepub fn group_table(
&self,
) -> RwLockReadGuard<'_, StorageVec<ApsGroup, MAX_APS_GROUP_TABLE>>
pub fn group_table( &self, ) -> RwLockReadGuard<'_, StorageVec<ApsGroup, MAX_APS_GROUP_TABLE>>
Returns a read guard; do not hold it across an
update_* of the same field.
Sourcepub fn update_group_table(
&self,
f: impl FnOnce(&mut StorageVec<ApsGroup, MAX_APS_GROUP_TABLE>),
)
pub fn update_group_table( &self, f: impl FnOnce(&mut StorageVec<ApsGroup, MAX_APS_GROUP_TABLE>), )
Updates the field in place under its write lock.
Sourcepub fn non_member_radius(&self) -> RwLockReadGuard<'_, u8>
pub fn non_member_radius(&self) -> RwLockReadGuard<'_, u8>
Returns a read guard; do not hold it across an
update_* of the same field.
Sourcepub fn update_non_member_radius(&self, f: impl FnOnce(&mut u8))
pub fn update_non_member_radius(&self, f: impl FnOnce(&mut u8))
Updates the field in place under its write lock.
Sourcepub fn use_insecure_join(&self) -> RwLockReadGuard<'_, bool>
pub fn use_insecure_join(&self) -> RwLockReadGuard<'_, bool>
Returns a read guard; do not hold it across an
update_* of the same field.
Sourcepub fn update_use_insecure_join(&self, f: impl FnOnce(&mut bool))
pub fn update_use_insecure_join(&self, f: impl FnOnce(&mut bool))
Updates the field in place under its write lock.
Sourcepub fn interframe_delay(&self) -> RwLockReadGuard<'_, u8>
pub fn interframe_delay(&self) -> RwLockReadGuard<'_, u8>
Returns a read guard; do not hold it across an
update_* of the same field.
Sourcepub fn update_interframe_delay(&self, f: impl FnOnce(&mut u8))
pub fn update_interframe_delay(&self, f: impl FnOnce(&mut u8))
Updates the field in place under its write lock.
Sourcepub fn last_channel_energy(&self) -> RwLockReadGuard<'_, u8>
pub fn last_channel_energy(&self) -> RwLockReadGuard<'_, u8>
Returns a read guard; do not hold it across an
update_* of the same field.
Sourcepub fn update_last_channel_energy(&self, f: impl FnOnce(&mut u8))
pub fn update_last_channel_energy(&self, f: impl FnOnce(&mut u8))
Updates the field in place under its write lock.
Sourcepub fn last_channel_failure_rate(&self) -> RwLockReadGuard<'_, u8>
pub fn last_channel_failure_rate(&self) -> RwLockReadGuard<'_, u8>
Returns a read guard; do not hold it across an
update_* of the same field.
Sourcepub fn update_last_channel_failure_rate(&self, f: impl FnOnce(&mut u8))
pub fn update_last_channel_failure_rate(&self, f: impl FnOnce(&mut u8))
Updates the field in place under its write lock.
Sourcepub fn channel_timer(&self) -> RwLockReadGuard<'_, u8>
pub fn channel_timer(&self) -> RwLockReadGuard<'_, u8>
Returns a read guard; do not hold it across an
update_* of the same field.
Sourcepub fn update_channel_timer(&self, f: impl FnOnce(&mut u8))
pub fn update_channel_timer(&self, f: impl FnOnce(&mut u8))
Updates the field in place under its write lock.
Sourcepub fn max_window_size(
&self,
) -> RwLockReadGuard<'_, StorageVec<ApsWindowSize, MAX_APS_MAX_WINDOW_SIZE>>
pub fn max_window_size( &self, ) -> RwLockReadGuard<'_, StorageVec<ApsWindowSize, MAX_APS_MAX_WINDOW_SIZE>>
Returns a read guard; do not hold it across an
update_* of the same field.
Sourcepub fn update_max_window_size(
&self,
f: impl FnOnce(&mut StorageVec<ApsWindowSize, MAX_APS_MAX_WINDOW_SIZE>),
)
pub fn update_max_window_size( &self, f: impl FnOnce(&mut StorageVec<ApsWindowSize, MAX_APS_MAX_WINDOW_SIZE>), )
Updates the field in place under its write lock.
Sourcepub fn parent_announce_timer(&self) -> RwLockReadGuard<'_, u8>
pub fn parent_announce_timer(&self) -> RwLockReadGuard<'_, u8>
Returns a read guard; do not hold it across an
update_* of the same field.
Sourcepub fn update_parent_announce_timer(&self, f: impl FnOnce(&mut u8))
pub fn update_parent_announce_timer(&self, f: impl FnOnce(&mut u8))
Updates the field in place under its write lock.
Sourcepub fn device_key_pair_set(
&self,
) -> RwLockReadGuard<'_, StorageVec<DeviceKeyPairDescriptor, MAX_APS_DEVICE_KEY_PAIR_SET>>
pub fn device_key_pair_set( &self, ) -> RwLockReadGuard<'_, StorageVec<DeviceKeyPairDescriptor, MAX_APS_DEVICE_KEY_PAIR_SET>>
Returns a read guard; do not hold it across an
update_* of the same field.
Sourcepub fn update_device_key_pair_set(
&self,
f: impl FnOnce(&mut StorageVec<DeviceKeyPairDescriptor, MAX_APS_DEVICE_KEY_PAIR_SET>),
)
pub fn update_device_key_pair_set( &self, f: impl FnOnce(&mut StorageVec<DeviceKeyPairDescriptor, MAX_APS_DEVICE_KEY_PAIR_SET>), )
Updates the field in place under its write lock.
Sourcepub fn trust_center_address(&self) -> RwLockReadGuard<'_, IeeeAddress>
pub fn trust_center_address(&self) -> RwLockReadGuard<'_, IeeeAddress>
Returns a read guard; do not hold it across an
update_* of the same field.
Sourcepub fn update_trust_center_address(&self, f: impl FnOnce(&mut IeeeAddress))
pub fn update_trust_center_address(&self, f: impl FnOnce(&mut IeeeAddress))
Updates the field in place under its write lock.
Sourcepub fn security_timeout_period(&self) -> RwLockReadGuard<'_, u16>
pub fn security_timeout_period(&self) -> RwLockReadGuard<'_, u16>
Returns a read guard; do not hold it across an
update_* of the same field.
Sourcepub fn update_security_timeout_period(&self, f: impl FnOnce(&mut u16))
pub fn update_security_timeout_period(&self, f: impl FnOnce(&mut u16))
Updates the field in place under its write lock.
Auto Trait Implementations§
impl !Freeze for Aib
impl !RefUnwindSafe for Aib
impl Send for Aib
impl Sync for Aib
impl Unpin for Aib
impl UnsafeUnpin for Aib
impl UnwindSafe for Aib
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more