Struct bluenrg::hal::ConfigData [−][src]
pub struct ConfigData { /* fields omitted */ }
Low-level configuration parameters for the controller.
Methods
impl ConfigData
[src]
impl ConfigData
pub const MAX_LENGTH: usize
MAX_LENGTH: usize = 46
Maximum length needed to serialize the data.
pub fn into_bytes(&self, bytes: &mut [u8]) -> usize
[src]
pub fn into_bytes(&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).
pub fn public_address(addr: BdAddr) -> ConfigDataDiversifierBuilder
[src]
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.
pub fn diversifier(d: u16) -> ConfigDataEncryptionRootBuilder
[src]
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.
pub fn encryption_root(key: EncryptionKey) -> ConfigDataIdentityRootBuilder
[src]
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.
pub fn identity_root(key: EncryptionKey) -> ConfigDataLinkLayerOnlyBuilder
[src]
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.
pub fn link_layer_only(ll_only: bool) -> ConfigDataRoleBuilder
[src]
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.
pub fn role(role: Role) -> ConfigDataCompleteBuilder
[src]
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.
Auto Trait Implementations
impl Send for ConfigData
impl Send for ConfigData
impl Sync for ConfigData
impl Sync for ConfigData