pub struct ConfigData { /* private fields */ }
Expand description
Low-level configuration parameters for the controller.
Implementations§
Source§impl ConfigData
impl ConfigData
Sourcepub const MAX_LENGTH: usize = 46usize
pub const MAX_LENGTH: usize = 46usize
Maximum length needed to serialize the data.
Sourcepub fn copy_into_slice(&self, bytes: &mut [u8]) -> usize
pub fn copy_into_slice(&self, bytes: &mut [u8]) -> usize
Serializes the data into the given buffer.
Returns the number of valid bytes in the buffer.
§Panics
The buffer must be large enough to support the serialized data (at least
MAX_LENGTH
bytes).
Sourcepub fn public_address(addr: BdAddr) -> ConfigDataDiversifierBuilder
pub fn public_address(addr: BdAddr) -> ConfigDataDiversifierBuilder
Builder for ConfigData.
The controller allows us to write any contiguous portion of the ConfigData structure in
write_config_data
. The builder associated functions allow
us to start with any field, and the returned builder allows only either chaining the next
field or building the structure to write.
Sourcepub fn random_address(addr: BdAddr) -> ConfigDataDiversifierBuilder
pub fn random_address(addr: BdAddr) -> ConfigDataDiversifierBuilder
Builder for ConfigData.
The controller allows us to write any contiguous portion of the ConfigData structure in
write_config_data
. The builder associated functions allow
us to start with any field, and the returned builder allows only either chaining the next
field or building the structure to write.
Sourcepub fn diversifier(d: u16) -> ConfigDataEncryptionRootBuilder
pub fn diversifier(d: u16) -> ConfigDataEncryptionRootBuilder
Builder for ConfigData.
The controller allows us to write any contiguous portion of the ConfigData structure in
write_config_data
. The builder associated functions allow
us to start with any field, and the returned builder allows only either chaining the next
field or building the structure to write.
Sourcepub fn encryption_root(key: &EncryptionKey) -> ConfigDataIdentityRootBuilder
pub fn encryption_root(key: &EncryptionKey) -> ConfigDataIdentityRootBuilder
Builder for ConfigData.
The controller allows us to write any contiguous portion of the ConfigData structure in
write_config_data
. The builder associated functions allow
us to start with any field, and the returned builder allows only either chaining the next
field or building the structure to write.
Sourcepub fn identity_root(key: &EncryptionKey) -> ConfigDataLinkLayerOnlyBuilder
pub fn identity_root(key: &EncryptionKey) -> ConfigDataLinkLayerOnlyBuilder
Builder for ConfigData.
The controller allows us to write any contiguous portion of the ConfigData structure in
write_config_data
. The builder associated functions allow
us to start with any field, and the returned builder allows only either chaining the next
field or building the structure to write.
Sourcepub fn link_layer_only(ll_only: bool) -> ConfigDataRoleBuilder
pub fn link_layer_only(ll_only: bool) -> ConfigDataRoleBuilder
Builder for ConfigData.
The controller allows us to write any contiguous portion of the ConfigData structure in
write_config_data
. The builder associated functions allow
us to start with any field, and the returned builder allows only either chaining the next
field or building the structure to write.
Sourcepub fn role(role: Role) -> ConfigDataCompleteBuilder
pub fn role(role: Role) -> ConfigDataCompleteBuilder
Builder for ConfigData.
The controller allows us to write any contiguous portion of the ConfigData structure in
write_config_data
. The builder associated functions allow
us to start with any field, and the returned builder allows only either chaining the next
field or building the structure to write.