pub struct Port<MODE> { /* private fields */ }
Implementations§
Source§impl Port<()>
impl Port<()>
Sourcepub fn into_input(&self, mode: PortModeInput) -> Port<InputPort>
pub fn into_input(&self, mode: PortModeInput) -> Port<InputPort>
Sourcepub fn into_output(&self, mode: PortModeOutput) -> Port<OutputPort>
pub fn into_output(&self, mode: PortModeOutput) -> Port<OutputPort>
Source§impl Port<OutputPort>
impl Port<OutputPort>
Sourcepub unsafe fn set_bits_uncheck(&mut self, bits: u16)
pub unsafe fn set_bits_uncheck(&mut self, bits: u16)
Sets the specified bits of the output register without checking bounds or validity.
§Safety
This function must only be called when it is safe to modify the output register directly.
Sourcepub unsafe fn clr_bits_uncheck(&mut self, bits: u16)
pub unsafe fn clr_bits_uncheck(&mut self, bits: u16)
Clears the specified bits of the output register without checking bounds or validity.
§Safety
This function must only be called when it is safe to modify the output register directly.
Sourcepub unsafe fn read_output_bits_uncheck(&mut self) -> u16
pub unsafe fn read_output_bits_uncheck(&mut self) -> u16
Reads the current value of the output register without checking bounds or validity.
§Safety
This function must only be called when it is safe to read from the output register directly.
Sourcepub unsafe fn write_bits_uncheck(&mut self, bits: u16)
pub unsafe fn write_bits_uncheck(&mut self, bits: u16)
Writes a value to the output register without checking bounds or validity.
§Safety
This function must only be called when it is safe to modify the output register directly.
Sourcepub fn set_bits(&mut self, bits: u16)
pub fn set_bits(&mut self, bits: u16)
Sets the specified bits of the output register, applying the bit mask.
Sourcepub fn clr_bits(&mut self, bits: u16)
pub fn clr_bits(&mut self, bits: u16)
Clears the specified bits of the output register, applying the bit mask.
Sourcepub fn read_output_bits(&mut self) -> u16
pub fn read_output_bits(&mut self) -> u16
Reads the current value of the output register, applying the bit mask.
Sourcepub fn write_bits(&mut self, bits: u16)
pub fn write_bits(&mut self, bits: u16)
Writes a value to the output register, applying the bit mask.
Sourcepub fn read_input_bits(&mut self) -> u16
pub fn read_input_bits(&mut self) -> u16
Reads the current value of the input register, applying the bit mask.
Source§impl Port<InputPort>
impl Port<InputPort>
Sourcepub unsafe fn read_input_bits_uncheck(&mut self) -> u16
pub unsafe fn read_input_bits_uncheck(&mut self) -> u16
Reads the current value of the input register without checking bounds or validity.
§Safety
This function must only be called when it is safe to read from the input register directly.
Sourcepub fn read_input_bits(&mut self) -> u16
pub fn read_input_bits(&mut self) -> u16
Reads the current value of the input register, applying the bit mask.