Struct lpc82x_hal::swm::SWM [−][src]
pub struct SWM { /* fields omitted */ }
Entry point to the switch matrix (SWM) API
The SWM API is split into multiple parts, which are all available through
swm::Parts
. You can use SWM::split
to gain access to swm::Parts
.
You can also use this struct to gain access to the raw peripheral using
SWM::free
. This is the main reason this struct exists, as it's no longer
possible to do this after the API has been split.
Use Peripherals
to gain access to an instance of this struct.
Please refer to the module documentation for more information.
Methods
impl SWM
[src]
impl SWM
pub fn split(self) -> Parts
[src]
pub fn split(self) -> Parts
Splits the SWM API into its component parts
This is the regular way to access the SWM API. It exists as an explicit
step, as it's no longer possible to gain access to the raw peripheral
using SWM::free
after you've called this method.
pub fn free(self) -> SWM
[src]
pub fn free(self) -> SWM
Return the raw peripheral
This method serves as an escape hatch from the HAL API. It returns the raw peripheral, allowing you to do whatever you want with it, without limitations imposed by the API.
If you are using this method because a feature you need is missing from the HAL API, please open an issue or, if an issue for your feature request already exists, comment on the existing issue, so we can prioritize it accordingly.