pub struct Peripherals {Show 46 fields
pub WDT: WDT,
pub RTCC: RTCC,
pub TMR1: TMR1,
pub TMR2: TMR2,
pub TMR3: TMR3,
pub TMR4: TMR4,
pub TMR5: TMR5,
pub ICAP1: ICAP1,
pub ICAP2: ICAP2,
pub ICAP3: ICAP3,
pub ICAP4: ICAP4,
pub ICAP5: ICAP5,
pub OCMP1: OCMP1,
pub OCMP2: OCMP2,
pub OCMP3: OCMP3,
pub OCMP4: OCMP4,
pub OCMP5: OCMP5,
pub I2C1: I2C1,
pub I2C2: I2C2,
pub SPI1: SPI1,
pub SPI2: SPI2,
pub UART1: UART1,
pub UART2: UART2,
pub PMP: PMP,
pub ADC: ADC,
pub CVR: CVR,
pub CMP1: CMP1,
pub CMP2: CMP2,
pub CMP3: CMP3,
pub CMP: CMP,
pub CTMU: CTMU,
pub OSC: OSC,
pub CFG: CFG,
pub NVM: NVM,
pub RCON: RCON,
pub PPS: PPS,
pub INT: INT,
pub BMX: BMX,
pub DMAC: DMAC,
pub DMAC0: DMAC0,
pub DMAC1: DMAC1,
pub DMAC2: DMAC2,
pub DMAC3: DMAC3,
pub USB: USB,
pub PORTA: PORTA,
pub PORTB: PORTB,
}Expand description
All the peripherals.
Fields§
§WDT: WDTWDT
RTCC: RTCCRTCC
TMR1: TMR1TMR1
TMR2: TMR2TMR2
TMR3: TMR3TMR3
TMR4: TMR4TMR4
TMR5: TMR5TMR5
ICAP1: ICAP1ICAP1
ICAP2: ICAP2ICAP2
ICAP3: ICAP3ICAP3
ICAP4: ICAP4ICAP4
ICAP5: ICAP5ICAP5
OCMP1: OCMP1OCMP1
OCMP2: OCMP2OCMP2
OCMP3: OCMP3OCMP3
OCMP4: OCMP4OCMP4
OCMP5: OCMP5OCMP5
I2C1: I2C1I2C1
I2C2: I2C2I2C2
SPI1: SPI1SPI1
SPI2: SPI2SPI2
UART1: UART1UART1
UART2: UART2UART2
PMP: PMPPMP
ADC: ADCADC
CVR: CVRCVR
CMP1: CMP1CMP1
CMP2: CMP2CMP2
CMP3: CMP3CMP3
CMP: CMPCMP
CTMU: CTMUCTMU
OSC: OSCOSC
CFG: CFGCFG
NVM: NVMNVM
RCON: RCONRCON
PPS: PPSPPS
INT: INTINT
BMX: BMXBMX
DMAC: DMACDMAC
DMAC0: DMAC0DMAC0
DMAC1: DMAC1DMAC1
DMAC2: DMAC2DMAC2
DMAC3: DMAC3DMAC3
USB: USBUSB
PORTA: PORTAPORTA
PORTB: PORTBPORTB
Implementations§
Source§impl Peripherals
impl Peripherals
Sourcepub fn take() -> Option<Peripherals>
pub fn take() -> Option<Peripherals>
Returns all the peripherals once.
Sourcepub unsafe fn steal() -> Peripherals
pub unsafe fn steal() -> Peripherals
Unchecked version of Peripherals::take.
§Safety
Each of the returned peripherals must be used at most once.
Auto Trait Implementations§
impl !Sync for Peripherals
impl Freeze for Peripherals
impl RefUnwindSafe for Peripherals
impl Send for Peripherals
impl Unpin for Peripherals
impl UnsafeUnpin for Peripherals
impl UnwindSafe for Peripherals
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
Mutably borrows from an owned value. Read more