R

Struct R 

Source
pub struct R<U, T> { /* private fields */ }
Expand description

Register/field reader

Result of the read method of a register. Also it can be used in the modify method

Implementations§

Source§

impl<U, T> R<U, T>
where U: Copy,

Source

pub fn bits(&self) -> U

Read raw bits from register/field

Source§

impl<FI> R<bool, FI>

Source

pub fn bit(&self) -> bool

Value of the field as raw bits

Source

pub fn bit_is_clear(&self) -> bool

Returns true if the bit is clear (0)

Source

pub fn bit_is_set(&self) -> bool

Returns true if the bit is set (1)

Source§

impl R<u32, Reg<u32, _CR0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Reserved

Source

pub fn scr(&self) -> SCR_R

Bits 8:15 - 15:8] SSI serial clock rate (R/W) Reset value: 0x0 The value SCR is used to generate the transmit and receive bit rate of the SSI. Where the bit rate is: BR = FSSICLK/(CPSDVR * (1 + SCR)) where CPSDVR is an even value from 2-254, programmed in the SSICPSR register and SCR is a value from 0-255.

Source

pub fn sph(&self) -> SPH_R

Bit 7 - 7:7] SSI serial clock phase (R/W) Reset value: 0x0 This bit is only applicable to the Motorola SPI Format.

Source

pub fn spo(&self) -> SPO_R

Bit 6 - 6:6] SSI serial clock phase (R/W) Reset value: 0x0 This bit is only applicable to the Motorola SPI Format.

Source

pub fn frf(&self) -> FRF_R

Bits 4:5 - 5:4] SSI frame format select (R/W) Reset value: 0x0 00: Motorola SPI frame format 01: TI synchronous serial frame format 10: National Microwire frame format 11: Reserved

Source

pub fn dss(&self) -> DSS_R

Bits 0:3 - 3:0] SSI data size select (R/W) Reset value: 0x0 0000-0010: Reserved 0011: 4-bit data 0100: 5-bit data 0101: 6-bit data 0110: 7-bit data 0111: 8-bit data 1000: 9-bit data 1001: 10-bit data 1010: 11-bit data 1011: 12-bit data 1100: 13-bit data 1101: 14-bit data 1110: 15-bit data 1111: 16-bit data

Source§

impl R<u32, Reg<u32, _CR1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Reserved

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 4:15 - 15:4] Reserved, read unpredictable, should be written as 0. 3 SOD

Source

pub fn sod(&self) -> SOD_R

Bit 3 - 3:3] SSI slave mode output disable (R/W) Reset value: 0x0 This bit is relevant only in the slave mode (MS = 1). In multiple-slave systems, it is possible for the SSI master to broadcast a message to all slaves in the system while ensuring that only one slave drives data onto the serial output line. In such systems, the RXD lines from multiple slaves could be tied together. To operate in such a system, the SOD bit can be set if the SSI slave is not suppose to drive the SSITXD line. 0: SSI can drive SSITXD in slave output mode 1: SSI must not drive the SSITXD output in slave mode

Source

pub fn ms(&self) -> MS_R

Bit 2 - 2:2] SSI master and slave select (R/W) Reset value: 0x0 This bit can be modified only when the SSI is disabled (SSE = 0). 0: Device configured as a master (default) 1: Device configured as a slave

Source

pub fn sse(&self) -> SSE_R

Bit 1 - 1:1] SSI synchronous serial port enable (R/W) Reset value: 0x0 0: SSI operation is disabled. 1: SSI operation is enabled.

Source

pub fn lbm(&self) -> LBM_R

Bit 0 - 0:0] SSI loop-back mode (R/W) Reset value: 0x0 0: Normal serial port operation is enabled. 1: The output of the transmit serial shifter is connected to the input of the receive serial shift register internally.

Source§

impl R<u32, Reg<u32, _DR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Reserved

Source

pub fn data(&self) -> DATA_R

Bits 0:15 - 15:0] SSI receive/transmit data register (R/W) Reset value: 0xXXXX A read operation reads the receive FIFO. A write operation writes the transmit FIFO. Software must right-justify data when the SSI is programmed for a data size that is less than 16 bits. Unused bits at the top are ignored by the transmit logic. The receive logic automatically right-justified the data.

Source§

impl R<u32, Reg<u32, _SR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Reserved

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 5:15 - 15:5] Reserved, read unpredictable, should be written as 0.

Source

pub fn bsy(&self) -> BSY_R

Bit 4 - 4:4] SSI busy bit (RO) Reset value: 0x0 0: SSI is idle. 1: SSI is currently transmitting and/or receiving a frame or the transmit FIFO is not empty.

Source

pub fn rff(&self) -> RFF_R

Bit 3 - 3:3] SSI receive FIFO full (RO) Reset value: 0x0 0: Receive FIFO is not full. 1: Receive FIFO is full.

Source

pub fn rne(&self) -> RNE_R

Bit 2 - 2:2] SSI receive FIFO not empty (RO) Reset value: 0x0 0: Receive FIFO is empty. 1: Receive FIFO is not empty.

Source

pub fn tnf(&self) -> TNF_R

Bit 1 - 1:1] SSI transmit FIFO not full (RO) Reset value: 0x1 0: Transmit FIFO is full. 1: Transmit FIFO is not full.

Source

pub fn tfe(&self) -> TFE_R

Bit 0 - 0:0] SSI transmit FIFO empty (RO) Reset value: 0x1 0: Transmit FIFO is not empty. 1: Transmit FIFO is empty.

Source§

impl R<u32, Reg<u32, _CPSR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Reserved

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 8:15 - 15:8] Reserved, read unpredictable, should be written as 0.

Source

pub fn cpsdvsr(&self) -> CPSDVSR_R

Bits 0:7 - 7:0] SSI clock prescale divisor (R/W) Reset value: 0x0 This value must be an even number from 2 to 254, depending on the frequency of SSICLK. The LSB always returns zero on reads.

Source§

impl R<u32, Reg<u32, _IM>>

Source

pub fn txim(&self) -> TXIM_R

Bit 3 - 3:3] SSI transmit FIFO interrupt mask (R/W) Reset value: 0x0 0: TX FIFO half empty or condition interrupt is masked. 1: TX FIFO half empty or less condition interrupt is not masked.

Source

pub fn rxim(&self) -> RXIM_R

Bit 2 - 2:2] SSI receive FIFO interrupt mask (R/W) Reset value: 0x0 0: RX FIFO half empty or condition interrupt is masked. 1: RX FIFO half empty or less condition interrupt is not masked.

Source

pub fn rtim(&self) -> RTIM_R

Bit 1 - 1:1] SSI receive time-out interrupt mask (R/W) Reset value: 0x0 0: RX FIFO time-out interrupt is masked. 1: RX FIFO time-out interrupt is not masked

Source

pub fn rorim(&self) -> RORIM_R

Bit 0 - 0:0] SSI receive overrun interrupt mask (R/W) Reset value: 0x0 0: RX FIFO Overrun interrupt is masked. 1: RX FIFO Overrun interrupt is not masked

Source§

impl R<u32, Reg<u32, _RIS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Reserved

Source

pub fn reserved11(&self) -> RESERVED11_R

Bits 4:15 - 15:4] Reserved, read as zero, do not modify.

Source

pub fn txris(&self) -> TXRIS_R

Bit 3 - 3:3] SSI SSITXINTR raw state (RO) Reset value: 0x1 Gives the raw interrupt state (before masking) of SSITXINTR

Source

pub fn rxris(&self) -> RXRIS_R

Bit 2 - 2:2] SSI SSIRXINTR raw state (RO) Reset value: 0x0 Gives the raw interrupt state (before masking) of SSIRXINTR

Source

pub fn rtris(&self) -> RTRIS_R

Bit 1 - 1:1] SSI SSIRTINTR raw state (RO) Reset value: 0x0 Gives the raw interrupt state (before masking) of SSIRTINTR

Source

pub fn rorris(&self) -> RORRIS_R

Bit 0 - 0:0] SSI SSIRORINTR raw state (RO) Reset value: 0x0 Gives the raw interrupt state (before masking) of SSIRORINTR

Source§

impl R<u32, Reg<u32, _MIS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Reserved

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 4:15 - 15:4] Reserved, read as zero, do not modify.

Source

pub fn txmis(&self) -> TXMIS_R

Bit 3 - 3:3] SSI SSITXINTR masked state (RO) Reset value: 0x0 Gives the interrupt state (after masking) of SSITXINTR

Source

pub fn rxmis(&self) -> RXMIS_R

Bit 2 - 2:2] SSI SSIRXINTR masked state (RO) Reset value: 0x0 Gives the interrupt state (after masking) of SSIRXINTR

Source

pub fn rtmis(&self) -> RTMIS_R

Bit 1 - 1:1] SSI SSIRTINTR masked state (RO) Reset value: 0x0 Gives the interrupt state (after masking) of SSIRTINTR

Source

pub fn rormis(&self) -> RORMIS_R

Bit 0 - 0:0] SSI SSIRORINTR masked state (RO) Reset value: 0x0 Gives the interrupt state (after masking) of SSIRORINTR

Source§

impl R<u32, Reg<u32, _ICR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Reserved

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 2:15 - 15:2] Reserved, read as zero, do not modify.

Source

pub fn rtic(&self) -> RTIC_R

Bit 1 - 1:1] SSI receive time-out interrupt clear (W1C) Reset value: 0x0 0: No effect on interrupt 1: Clears interrupt

Source

pub fn roric(&self) -> RORIC_R

Bit 0 - 0:0] SSI receive overrun interrupt clear (W1C) Reset value: 0x0 0: No effect on interrupt 1: Clears interrupt

Source§

impl R<u32, Reg<u32, _DMACTL>>

Source

pub fn txdmae(&self) -> TXDMAE_R

Bit 1 - 1:1] Transmit DMA enable 0: uDMA for the transmit FIFO is disabled. 1: uDMA for the transmit FIFO is enabled.

Source

pub fn rxdmae(&self) -> RXDMAE_R

Bit 0 - 0:0] Receive DMA enable 0: uDMA for the receive FIFO is disabled. 1: uDMA for the receive FIFO is enabled.

Source§

impl R<u32, Reg<u32, _CC>>

Source

pub fn reserved29(&self) -> RESERVED29_R

Bits 3:31 - 31:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn cs(&self) -> CS_R

Bits 0:2 - 2:0] SSI baud and system clock source The following bits determine the clock source that generates the baud and system clocks for the SSI. bit0 (PIOSC): 1: The SSI baud clock is determined by the IO DIV setting in the system controller. 0: The SSI baud clock is determined by the SYS DIV setting in the system controller. bit1: Unused bit2: (DSEN) Only meaningful when the system is in deep sleep mode. This bit is a don’t care when not in sleep mode. 1: The SSI system clock is running on the same clock as the baud clock, as per PIOSC setting above. 0: The SSI system clock is determined by the SYS DIV setting in the system controller.

Source§

impl R<u32, Reg<u32, _CR0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Reserved

Source

pub fn scr(&self) -> SCR_R

Bits 8:15 - 15:8] SSI serial clock rate (R/W) Reset value: 0x0 The value SCR is used to generate the transmit and receive bit rate of the SSI. Where the bit rate is: BR = FSSICLK/(CPSDVR * (1 + SCR)) where CPSDVR is an even value from 2-254, programmed in the SSICPSR register and SCR is a value from 0-255.

Source

pub fn sph(&self) -> SPH_R

Bit 7 - 7:7] SSI serial clock phase (R/W) Reset value: 0x0 This bit is only applicable to the Motorola SPI Format.

Source

pub fn spo(&self) -> SPO_R

Bit 6 - 6:6] SSI serial clock phase (R/W) Reset value: 0x0 This bit is only applicable to the Motorola SPI Format.

Source

pub fn frf(&self) -> FRF_R

Bits 4:5 - 5:4] SSI frame format select (R/W) Reset value: 0x0 00: Motorola SPI frame format 01: TI synchronous serial frame format 10: National Microwire frame format 11: Reserved

Source

pub fn dss(&self) -> DSS_R

Bits 0:3 - 3:0] SSI data size select (R/W) Reset value: 0x0 0000-0010: Reserved 0011: 4-bit data 0100: 5-bit data 0101: 6-bit data 0110: 7-bit data 0111: 8-bit data 1000: 9-bit data 1001: 10-bit data 1010: 11-bit data 1011: 12-bit data 1100: 13-bit data 1101: 14-bit data 1110: 15-bit data 1111: 16-bit data

Source§

impl R<u32, Reg<u32, _CR1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Reserved

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 4:15 - 15:4] Reserved, read unpredictable, should be written as 0. 3 SOD

Source

pub fn sod(&self) -> SOD_R

Bit 3 - 3:3] SSI slave mode output disable (R/W) Reset value: 0x0 This bit is relevant only in the slave mode (MS = 1). In multiple-slave systems, it is possible for the SSI master to broadcast a message to all slaves in the system while ensuring that only one slave drives data onto the serial output line. In such systems, the RXD lines from multiple slaves could be tied together. To operate in such a system, the SOD bit can be set if the SSI slave is not suppose to drive the SSITXD line. 0: SSI can drive SSITXD in slave output mode 1: SSI must not drive the SSITXD output in slave mode

Source

pub fn ms(&self) -> MS_R

Bit 2 - 2:2] SSI master and slave select (R/W) Reset value: 0x0 This bit can be modified only when the SSI is disabled (SSE = 0). 0: Device configured as a master (default) 1: Device configured as a slave

Source

pub fn sse(&self) -> SSE_R

Bit 1 - 1:1] SSI synchronous serial port enable (R/W) Reset value: 0x0 0: SSI operation is disabled. 1: SSI operation is enabled.

Source

pub fn lbm(&self) -> LBM_R

Bit 0 - 0:0] SSI loop-back mode (R/W) Reset value: 0x0 0: Normal serial port operation is enabled. 1: The output of the transmit serial shifter is connected to the input of the receive serial shift register internally.

Source§

impl R<u32, Reg<u32, _DR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Reserved

Source

pub fn data(&self) -> DATA_R

Bits 0:15 - 15:0] SSI receive/transmit data register (R/W) Reset value: 0xXXXX A read operation reads the receive FIFO. A write operation writes the transmit FIFO. Software must right-justify data when the SSI is programmed for a data size that is less than 16 bits. Unused bits at the top are ignored by the transmit logic. The receive logic automatically right-justified the data.

Source§

impl R<u32, Reg<u32, _SR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Reserved

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 5:15 - 15:5] Reserved, read unpredictable, should be written as 0.

Source

pub fn bsy(&self) -> BSY_R

Bit 4 - 4:4] SSI busy bit (RO) Reset value: 0x0 0: SSI is idle. 1: SSI is currently transmitting and/or receiving a frame or the transmit FIFO is not empty.

Source

pub fn rff(&self) -> RFF_R

Bit 3 - 3:3] SSI receive FIFO full (RO) Reset value: 0x0 0: Receive FIFO is not full. 1: Receive FIFO is full.

Source

pub fn rne(&self) -> RNE_R

Bit 2 - 2:2] SSI receive FIFO not empty (RO) Reset value: 0x0 0: Receive FIFO is empty. 1: Receive FIFO is not empty.

Source

pub fn tnf(&self) -> TNF_R

Bit 1 - 1:1] SSI transmit FIFO not full (RO) Reset value: 0x1 0: Transmit FIFO is full. 1: Transmit FIFO is not full.

Source

pub fn tfe(&self) -> TFE_R

Bit 0 - 0:0] SSI transmit FIFO empty (RO) Reset value: 0x1 0: Transmit FIFO is not empty. 1: Transmit FIFO is empty.

Source§

impl R<u32, Reg<u32, _CPSR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Reserved

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 8:15 - 15:8] Reserved, read unpredictable, should be written as 0.

Source

pub fn cpsdvsr(&self) -> CPSDVSR_R

Bits 0:7 - 7:0] SSI clock prescale divisor (R/W) Reset value: 0x0 This value must be an even number from 2 to 254, depending on the frequency of SSICLK. The LSB always returns zero on reads.

Source§

impl R<u32, Reg<u32, _IM>>

Source

pub fn txim(&self) -> TXIM_R

Bit 3 - 3:3] SSI transmit FIFO interrupt mask (R/W) Reset value: 0x0 0: TX FIFO half empty or condition interrupt is masked. 1: TX FIFO half empty or less condition interrupt is not masked.

Source

pub fn rxim(&self) -> RXIM_R

Bit 2 - 2:2] SSI receive FIFO interrupt mask (R/W) Reset value: 0x0 0: RX FIFO half empty or condition interrupt is masked. 1: RX FIFO half empty or less condition interrupt is not masked.

Source

pub fn rtim(&self) -> RTIM_R

Bit 1 - 1:1] SSI receive time-out interrupt mask (R/W) Reset value: 0x0 0: RX FIFO time-out interrupt is masked. 1: RX FIFO time-out interrupt is not masked

Source

pub fn rorim(&self) -> RORIM_R

Bit 0 - 0:0] SSI receive overrun interrupt mask (R/W) Reset value: 0x0 0: RX FIFO Overrun interrupt is masked. 1: RX FIFO Overrun interrupt is not masked

Source§

impl R<u32, Reg<u32, _RIS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Reserved

Source

pub fn reserved11(&self) -> RESERVED11_R

Bits 4:15 - 15:4] Reserved, read as zero, do not modify.

Source

pub fn txris(&self) -> TXRIS_R

Bit 3 - 3:3] SSI SSITXINTR raw state (RO) Reset value: 0x1 Gives the raw interrupt state (before masking) of SSITXINTR

Source

pub fn rxris(&self) -> RXRIS_R

Bit 2 - 2:2] SSI SSIRXINTR raw state (RO) Reset value: 0x0 Gives the raw interrupt state (before masking) of SSIRXINTR

Source

pub fn rtris(&self) -> RTRIS_R

Bit 1 - 1:1] SSI SSIRTINTR raw state (RO) Reset value: 0x0 Gives the raw interrupt state (before masking) of SSIRTINTR

Source

pub fn rorris(&self) -> RORRIS_R

Bit 0 - 0:0] SSI SSIRORINTR raw state (RO) Reset value: 0x0 Gives the raw interrupt state (before masking) of SSIRORINTR

Source§

impl R<u32, Reg<u32, _MIS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Reserved

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 4:15 - 15:4] Reserved, read as zero, do not modify.

Source

pub fn txmis(&self) -> TXMIS_R

Bit 3 - 3:3] SSI SSITXINTR masked state (RO) Reset value: 0x0 Gives the interrupt state (after masking) of SSITXINTR

Source

pub fn rxmis(&self) -> RXMIS_R

Bit 2 - 2:2] SSI SSIRXINTR masked state (RO) Reset value: 0x0 Gives the interrupt state (after masking) of SSIRXINTR

Source

pub fn rtmis(&self) -> RTMIS_R

Bit 1 - 1:1] SSI SSIRTINTR masked state (RO) Reset value: 0x0 Gives the interrupt state (after masking) of SSIRTINTR

Source

pub fn rormis(&self) -> RORMIS_R

Bit 0 - 0:0] SSI SSIRORINTR masked state (RO) Reset value: 0x0 Gives the interrupt state (after masking) of SSIRORINTR

Source§

impl R<u32, Reg<u32, _ICR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Reserved

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 2:15 - 15:2] Reserved, read as zero, do not modify.

Source

pub fn rtic(&self) -> RTIC_R

Bit 1 - 1:1] SSI receive time-out interrupt clear (W1C) Reset value: 0x0 0: No effect on interrupt 1: Clears interrupt

Source

pub fn roric(&self) -> RORIC_R

Bit 0 - 0:0] SSI receive overrun interrupt clear (W1C) Reset value: 0x0 0: No effect on interrupt 1: Clears interrupt

Source§

impl R<u32, Reg<u32, _DMACTL>>

Source

pub fn txdmae(&self) -> TXDMAE_R

Bit 1 - 1:1] Transmit DMA enable 0: uDMA for the transmit FIFO is disabled. 1: uDMA for the transmit FIFO is enabled.

Source

pub fn rxdmae(&self) -> RXDMAE_R

Bit 0 - 0:0] Receive DMA enable 0: uDMA for the receive FIFO is disabled. 1: uDMA for the receive FIFO is enabled.

Source§

impl R<u32, Reg<u32, _CC>>

Source

pub fn reserved29(&self) -> RESERVED29_R

Bits 3:31 - 31:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn cs(&self) -> CS_R

Bits 0:2 - 2:0] SSI baud and system clock source The following bits determine the clock source that generates the baud and system clocks for the SSI. bit0 (PIOSC): 1: The SSI baud clock is determined by the IO DIV setting in the system controller. 0: The SSI baud clock is determined by the SYS DIV setting in the system controller. bit1: Unused bit2: (DSEN) Only meaningful when the system is in deep sleep mode. This bit is a don’t care when not in sleep mode. 1: The SSI system clock is running on the same clock as the baud clock, as per PIOSC setting above. 0: The SSI system clock is determined by the SYS DIV setting in the system controller.

Source§

impl R<u32, Reg<u32, _DR>>

Source

pub fn reserved20(&self) -> RESERVED20_R

Bits 12:31 - 31:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn oe(&self) -> OE_R

Bit 11 - 11:11] UART overrun error 1: New data was received when the FIFO was full, resulting in data loss. 0: No data has been lost due to a FIFO overrun.

Source

pub fn be(&self) -> BE_R

Bit 10 - 10:10] UART break error 1: A break condition has been detected, indicating that the receive data input was held low for longer than a full-word transmission time (defined as start, data, parity, and stop bits). 0: No break condition has occurred. In FIFO mode, this error is associated with the character at the top of the FIFO. When a break occurs, only the one 0 character is loaded into the FIFO. The next character is only enabled after the received data input goes to a 1 (marking state), and the next valid start bit is received.

Source

pub fn pe(&self) -> PE_R

Bit 9 - 9:9] UART parity error 1: The parity of the received data character does not match the parity defined by bits 2 and 7 of the UARTLCRH register 0: No parity error has occurred. In FIFO mode, this error is associated with the character at the top of the FIFO.

Source

pub fn fe(&self) -> FE_R

Bit 8 - 8:8] UART framing error 1: The received character does not have a valid stop bit (a valid stop bit is 1). 0: No framing error has occurred.

Source

pub fn data(&self) -> DATA_R

Bits 0:7 - 7:0] Data transmitted or received Data that is to be transmitted via the UART is written to this field. When read, this field contains the data that was received by the UART.

Source§

impl R<u32, Reg<u32, _RSR>>

Source

pub fn reserved28(&self) -> RESERVED28_R

Bits 4:31 - 31:4] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn oe(&self) -> OE_R

Bit 3 - 3:3] UART overrun error 1: New data was received when the FIFO was full, resulting in data loss. 0: No data has been lost due to a FIFO overrun. This bit is cleared by a write to UARTECR. The FIFO contents remain valid because no further data is written when the FIFO is full, only the contents of the shift register are overwritten. The CPU must read the data in order to empty the FIFO.

Source

pub fn be(&self) -> BE_R

Bit 2 - 2:2] UART break error 1: A break condition has been detected, indicating that the receive data input was held low for longer than a full-word transmission time (defined as start, data, parity, and stop bits). 0: No break condition has occurred. This bit is cleared to 0 by a write to UARTECR. In FIFO mode, this error is associated with the character at the top of the FIFO. When a break occurs, only one 0 character is loaded into the FIFO. The next character is only enabled after the receive data input goes to a 1 (marking state) and the next valid start bit is received.

Source

pub fn pe(&self) -> PE_R

Bit 1 - 1:1] UART parity error 1: The parity of the received data character does not match the parity defined by bits 2 and 7 of the UARTLCRH register. 0: No parity error has occurred. This bit is cleared to 0 by a write to UARTECR.

Source

pub fn fe(&self) -> FE_R

Bit 0 - 0:0] UART framing error 1: The received character does not have a valid stop bit (a valid stop bit is 1). 0: No framing error has occurred. This bit is cleared to 0 by a write to UARTECR. In FIFO mode, this error is associated with the character at the top of the FIFO.

Source§

impl R<u32, Reg<u32, _ECR>>

Source

pub fn reserved24(&self) -> RESERVED24_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn data(&self) -> DATA_R

Bits 0:7 - 7:0] Error clear A write to this register of any data clears the framing, parity, break, and overrun flags.

Source§

impl R<u32, Reg<u32, _FR>>

Source

pub fn reserved24(&self) -> RESERVED24_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn txfe(&self) -> TXFE_R

Bit 7 - 7:7] UART transmit FIFO empty The meaning of this bit depends on the state of the FEN bit in the UARTLCRH register. 1: If the FIFO is disabled (FEN is 0), the transmit holding register is empty. If the FIFO is enabled (FEN is 1), the transmit FIFO is empty. 0: The transmitter has data to transmit.

Source

pub fn rxff(&self) -> RXFF_R

Bit 6 - 6:6] UART receive FIFO full The meaning of this bit depends on the state of the FEN bit in the UARTLCRH register. 1: If the FIFO is disabled (FEN is 0), the receive holding register is full. If the FIFO is enabled (FEN is 1), the receive FIFO is full. 0: The receiver can receive data.

Source

pub fn txff(&self) -> TXFF_R

Bit 5 - 5:5] UART transmit FIFO full The meaning of this bit depends on the state of the FEN bit in the UARTLCRH register. 1: If the FIFO is disabled (FEN is 0), the transmit holding register is full. If the FIFO is enabled (FEN is 1), the transmit FIFO is full. 0: The transmitter is not full.

Source

pub fn rxfe(&self) -> RXFE_R

Bit 4 - 4:4] UART receive FIFO empty The meaning of this bit depends on the state of the FEN bit in the UARTLCRH register. 1: If the FIFO is disabled (FEN is 0), the receive holding register is empty. If the FIFO is enabled (FEN is 1), the receive FIFO is empty. 0: The receiver is not empty.

Source

pub fn busy(&self) -> BUSY_R

Bit 3 - 3:3] UART busy 1: The UART is busy transmitting data. This bit remains set until the complete byte, including all stop bits, has been sent from the shift register. 0: The UART is not busy. This bit is set as soon as the transmit FIFO becomes non-empty (regardless of whether UART is enabled).

Source

pub fn reserved2(&self) -> RESERVED2_R

Bits 1:2 - 2:1] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn cts(&self) -> CTS_R

Bit 0 - 0:0] Clear to send (UART1 only, reserved for UART0). 1: The U1CTS signal is asserted. 0: The U1CTS signal is not asserted.

Source§

impl R<u32, Reg<u32, _ILPR>>

Source

pub fn reserved24(&self) -> RESERVED24_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn ilpdvsr(&self) -> ILPDVSR_R

Bits 0:7 - 7:0] IrDA low-power divisor This field contains the 8-bit low-power divisor value.

Source§

impl R<u32, Reg<u32, _IBRD>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn divint(&self) -> DIVINT_R

Bits 0:15 - 15:0] Integer baud-rate divisor

Source§

impl R<u32, Reg<u32, _FBRD>>

Source

pub fn reserved26(&self) -> RESERVED26_R

Bits 6:31 - 31:6] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn divfrac(&self) -> DIVFRAC_R

Bits 0:5 - 5:0] Fractional baud-rate divisor

Source§

impl R<u32, Reg<u32, _LCRH>>

Source

pub fn reserved24(&self) -> RESERVED24_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn sps(&self) -> SPS_R

Bit 7 - 7:7] UART stick parity select When bits 1, 2, and 7 of UARTLCRH are set, the parity bit is transmitted and checked as a 0. When bits 1 and 7 are set and 2 is cleared, the parity bit is transmitted and checked as a 1. When this bit is cleared, stick parity is disabled.

Source

pub fn wlen(&self) -> WLEN_R

Bits 5:6 - 6:5] UART word length The bits indicate the number of data bits transmitted or received in a frame as follows: 0x0: 5 bits (default) 0x1: 6 bits 0x2: 7 bits 0x3: 8 bits

Source

pub fn fen(&self) -> FEN_R

Bit 4 - 4:4] UART enable FIFOs 1: The transmit and receive FIFObuffers are enabled (FIFOmode). 0: The FIFOs are disabled (Character mode). The FIFOs become 1-byte-deep holding registers.

Source

pub fn stp2(&self) -> STP2_R

Bit 3 - 3:3] UART two stop bits select 1: Two stop bits are transmitted at the end of a frame. The receive logic does not check for two stop bits being received. 0: One stop bit is transmitted at the end of a frame.

Source

pub fn eps(&self) -> EPS_R

Bit 2 - 2:2] UART even parity select 1: Even parity generation and checking is performed during transmission and reception, which checks for an even number of 1s in data and parity bits. 0: Odd parity is performed, which checks for an odd number of 1s. This bit has no effect when parity is disabled by the PEN bit.

Source

pub fn pen(&self) -> PEN_R

Bit 1 - 1:1] UART parity enable 1: Parity checking and generation is enabled. 0: Parity is disabled and no parity bit is added to the data frame.

Source

pub fn brk(&self) -> BRK_R

Bit 0 - 0:0] UART send break 1: A low level is continually output on the UnTx signal, after completing transmission of the current character. For the proper execution of the break command, software must set this bit for at least two frames (character periods). 0: Normal use

Source§

impl R<u32, Reg<u32, _CTL>>

Source

pub fn reserved6(&self) -> RESERVED6_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn ctsen(&self) -> CTSEN_R

Bit 15 - 15:15] U1CTS Hardware Flow control enable 1: When U1CTS input is asserted, UART1 can transmit data. 0: U1CTS does not control UART1 data transmission. Note: Only used for UART1. This bit is reserved RO for UART0.

Source

pub fn rtsen(&self) -> RTSEN_R

Bit 14 - 14:14] U1RTS Hardware Flow control enable 1: U1RTS indicates the state of UART1 receive FIFO. U1RTS remains asserted until the preprogrammed watermark level is reached, indicating that the UART1 RXFIFO has no space to store additional characters. 0: U1RTS does not indicate state of UART1 RX FIFO. Note: Only used for UART1. This bit is reserved RO for UART0.

Source

pub fn reserved4(&self) -> RESERVED4_R

Bits 10:13 - 13:10] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn rxe(&self) -> RXE_R

Bit 9 - 9:9] UART receive enable 1: The receive section of the UART is enabled. 0: The receive section of the UART is disabled. If the UART is disabled in the middle of a receive, it completes the current character before stopping. Note: To enable reception, the UARTEN bit must also be set.

Source

pub fn txe(&self) -> TXE_R

Bit 8 - 8:8] UART transmit enable 1: The transmit section of the UART is enabled. 0: The transmit section of the UART is disabled. If the UART is disabled in the middle of a transmission, it completes the current character before stopping. Note: To enable transmission, the UARTEN bit must also be set.

Source

pub fn lbe(&self) -> LBE_R

Bit 7 - 7:7] UART loop back enable 1: The UnTx path is fed through the UnRx path. 0: Normal operation

Source

pub fn lin(&self) -> LIN_R

Bit 6 - 6:6] LIN mode enable 1: The UART operates in LIN mode. 0: Normal operation

Source

pub fn hse(&self) -> HSE_R

Bit 5 - 5:5] High-speed enable 0: The UART is clocked using the system clock divided by 16. 1: The UART is clocked using the system clock divided by 8. Note: System clock used is also dependent on the baud-rate divisor configuration (See Universal Asynchronous Receivers/Transmitters - Baud-Rate Generation).

Source

pub fn eot(&self) -> EOT_R

Bit 4 - 4:4] End of transmission This bit determines the behavior of the TXRIS bit in the UARTRIS register. 1: The TXRIS bit is set only after all transmitted data, including stop bits, have cleared the serializer. 0: The TXRIS bit is set when the transmit FIFO condition specified in UARTIFLS is met.

Source

pub fn reserved1(&self) -> RESERVED1_R

Bit 3 - 3:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation. Note field should always be written as 0 for correct operation.

Source

pub fn sirlp(&self) -> SIRLP_R

Bit 2 - 2:2] UART SIR low-power mode This bit selects the IrDA encoding mode. 1: The UART operates in SIR Low-Power mode. Low-level bits are transmitted with a pulse width which is 3 times the period of the IrLPBaud16 input signal, regardless of the selected bit rate. 0: Low-level bits are transmitted as an active high pulse with a width of 3/16th of the bit period. Setting this bit uses less power, but might reduce transmission distances.

Source

pub fn siren(&self) -> SIREN_R

Bit 1 - 1:1] UART SIR enable 1: The IrDA SIR block is enabled, and the UART transmits and receives data using SIR protocol. 0: Normal operation.

Source

pub fn uarten(&self) -> UARTEN_R

Bit 0 - 0:0] UART enable 1: The UART is enabled. 0: The UART is disabled. If the UART is disabled in the middle of transmission or reception, it completes the current character before stopping.

Source§

impl R<u32, Reg<u32, _IFLS>>

Source

pub fn reserved26(&self) -> RESERVED26_R

Bits 6:31 - 31:6] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn rxiflsel(&self) -> RXIFLSEL_R

Bits 3:5 - 5:3] UART receive interrupt FIFO level select The trigger points for the receive interrupt are as follows: 0x0: RX FIFO >= 1/8 full 0x1: RX FIFO >= 1/4 full 0x2: RX FIFO >= 1/2 full (default) 0x3: RX FIFO >= 3/4 full 0x4: RX FIFO >= 7/8 full 0x5-0x7: Reserved

Source

pub fn txiflsel(&self) -> TXIFLSEL_R

Bits 0:2 - 2:0] UART Transmit Interrupt FIFO Level Select The trigger points for the transmit interrupt are as follows: 0x0: TX FIFO <= 7/8 empty 0x1: TX FIFO <= 3/4 empty 0x2: TX FIFO <= 1/2 empty (default) 0x3: TX FIFO <= 1/4 empty 0x4: TX FIFO <= 1/8 empty 0x5-0x7: Reserved Note: If the EOT bit in UARTCTL is set, the transmit interrupt is generated once the FIFO is completely empty and all data including stop bits have left the transmit serializer. In this case, the setting of TXIFLSEL is ignored.

Source§

impl R<u32, Reg<u32, _IM>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn lme5im(&self) -> LME5IM_R

Bit 15 - 15:15] LIN mode edge 5 interrupt mask 1: An interrupt is sent to the interrupt controller when the LME5RIS bit in the UARTRIS register is set. 0: The LME5RIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn lme1im(&self) -> LME1IM_R

Bit 14 - 14:14] LIN mode edge 1 interrupt mask 1: An interrupt is sent to the interrupt controller when the LME1RIS bit in the UARTRIS register is set. 0: The LME1RIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn lmsbim(&self) -> LMSBIM_R

Bit 13 - 13:13] LIN mode sync break interrupt mask 1: An interrupt is sent to the interrupt controller when the LMSBRIS bit in the UARTRIS register is set. 0: The LMSBRIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn ninebitim(&self) -> NINEBITIM_R

Bit 12 - 12:12] 9-bit mode interrupt mask 1: An interrupt is sent to the interrupt controller when the 9BITRIS bit in the UARTRIS register is set. 0: The 9BITRIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn reserved1(&self) -> RESERVED1_R

Bit 11 - 11:11] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn oeim(&self) -> OEIM_R

Bit 10 - 10:10] UART overrun error interrupt mask 1: An interrupt is sent to the interrupt controller when the OERIS bit in the UARTRIS register is set. 0: The OERIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn beim(&self) -> BEIM_R

Bit 9 - 9:9] UART break error interrupt mask 1: An interrupt is sent to the interrupt controller when the BERIS bit in the UARTRIS register is set. 0: The BERIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn peim(&self) -> PEIM_R

Bit 8 - 8:8] UART parity error interrupt mask 1: An interrupt is sent to the interrupt controller when the PERIS bit in the UARTRIS register is set. 0: The PERIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn feim(&self) -> FEIM_R

Bit 7 - 7:7] UART framing error interrupt mask 1: An interrupt is sent to the interrupt controller when the FERIS bit in the UARTRIS register is set. 0: The FERIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn rtim(&self) -> RTIM_R

Bit 6 - 6:6] UART receive time-out interrupt mask 1: An interrupt is sent to the interrupt controller when the RTRIS bit in the UARTRIS register is set. 0: The RTRIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn txim(&self) -> TXIM_R

Bit 5 - 5:5] UART transmit interrupt mask 1: An interrupt is sent to the interrupt controller when the TXRIS bit in the UARTRIS register is set. 0: The TXRIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn rxim(&self) -> RXIM_R

Bit 4 - 4:4] UART receive interrupt mask 1: An interrupt is sent to the interrupt controller when the RXRIS bit in the UARTRIS register is set. 0: The RXRIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn reserved4(&self) -> RESERVED4_R

Bits 0:3 - 3:0] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source§

impl R<u32, Reg<u32, _RIS>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn lme5ris(&self) -> LME5RIS_R

Bit 15 - 15:15] LIN mode edge 5 raw interrupt status 1: The timer value at the 5th falling edge of the LIN sync field has been captured. 0: No interrupt This bit is cleared by writing 1 to the LME5IC bit in the UARTICR register.

Source

pub fn lme1ris(&self) -> LME1RIS_R

Bit 14 - 14:14] LIN mode edge 1 raw interrupt status 1: The timer value at the 1st falling edge of the LIN Sync Field has been captured. 0: No interrupt This bit is cleared by writing 1 to the LME1IC bit in the UARTICR register.

Source

pub fn lmsbris(&self) -> LMSBRIS_R

Bit 13 - 13:13] LIN mode sync break raw interrupt status 1: A LIN sync break has been detected. 0: No interrupt This bit is cleared by writing 1 to the LMSBIC bit in the UARTICR register.

Source

pub fn ninebitris(&self) -> NINEBITRIS_R

Bit 12 - 12:12] 9-mit mode raw interrupt status 1: A receive address match has occurred. 0: No interrupt This bit is cleared by writing 1 to the 9BITIC bit in the UARTICR register.

Source

pub fn reserved1(&self) -> RESERVED1_R

Bit 11 - 11:11] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn oeris(&self) -> OERIS_R

Bit 10 - 10:10] UART overrun error raw interrupt status 1: An overrun error has occurred. 0: No interrupt This bit is cleared by writing 1 to the OEIC bit in the UARTICR register.

Source

pub fn beris(&self) -> BERIS_R

Bit 9 - 9:9] UART break error raw interrupt status 1: A break error has occurred. 0: No interrupt This bit is cleared by writing 1 to the BEIC bit in the UARTICR register.

Source

pub fn peris(&self) -> PERIS_R

Bit 8 - 8:8] UART parity error raw interrupt status 1: A parity error has occurred. 0: No interrupt This bit is cleared by writing 1 to the PEIC bit in the UARTICR register.

Source

pub fn feris(&self) -> FERIS_R

Bit 7 - 7:7] UART framing error raw interrupt status 1: A framing error has occurred. 0: No interrupt This bit is cleared by writing 1 to the FEIC bit in the UARTICR register.

Source

pub fn rtris(&self) -> RTRIS_R

Bit 6 - 6:6] UART receive time-out raw interrupt status 1: A receive time out has occurred. 0: No interrupt This bit is cleared by writing 1 to the RTIC bit in the UARTICR register.

Source

pub fn txris(&self) -> TXRIS_R

Bit 5 - 5:5] UART transmit raw interrupt status 1: If the EOT bit in the UARTCTL register is clear, the transmit FIFO level has passed through the condition defined in the UARTIFLS register. If the EOT bit is set, the last bit of all transmitted data and flags has left the serializer. 0: No interrupt This bit is cleared by writing 1 to the TXIC bit in the UARTICR register.

Source

pub fn rxris(&self) -> RXRIS_R

Bit 4 - 4:4] UART receive raw interrupt status 1: The receive FIFO level has passed through the condition defined in the UARTIFLS register. 0: No interrupt This bit is cleared by writing 1 to the RXIC bit in the UARTICR register.

Source

pub fn reserved4(&self) -> RESERVED4_R

Bits 0:3 - 3:0] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source§

impl R<u32, Reg<u32, _MIS>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn lme5mis(&self) -> LME5MIS_R

Bit 15 - 15:15] LIN mode edge 5 masked interrupt status 1: An unmasked interrupt was signaled due to the 5th falling edge of the LIN sync field. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the LME5IC bit in the UARTICR register.

Source

pub fn lme1mis(&self) -> LME1MIS_R

Bit 14 - 14:14] LIN mode edge 1 masked interrupt status 1: An unmasked interrupt was signaled due to the 1st falling edge of the LIN sync field. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the LME1IC bit in the UARTICR register.

Source

pub fn lmsbmis(&self) -> LMSBMIS_R

Bit 13 - 13:13] LIN mode sync break masked interrupt status 1: An unmasked interrupt was signaled due to the receipt of a LIN sync break. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the LMSBIC bit in the UARTICR register.

Source

pub fn ninebitmis(&self) -> NINEBITMIS_R

Bit 12 - 12:12] 9-bit mode masked interrupt status 1: An unmasked interrupt was signaled due to a receive address match. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the 9BITIC bit in the UARTICR register.

Source

pub fn reserved1(&self) -> RESERVED1_R

Bit 11 - 11:11] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn oemis(&self) -> OEMIS_R

Bit 10 - 10:10] UART overrun error masked interrupt status 1: An unmasked interrupt was signaled due to an overrun error. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the OEIC bit in the UARTICR register.

Source

pub fn bemis(&self) -> BEMIS_R

Bit 9 - 9:9] UART break error masked interrupt status 1: An unmasked interrupt was signaled due to a break error. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the BEIC bit in the UARTICR register.

Source

pub fn pemis(&self) -> PEMIS_R

Bit 8 - 8:8] UART parity error masked interrupt status 1: An unmasked interrupt was signaled due to a parity error. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the PEIC bit in the UARTICR register.

Source

pub fn femis(&self) -> FEMIS_R

Bit 7 - 7:7] UART framing error masked interrupt status 1: An unmasked interrupt was signaled due to a framing error. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the FEIC bit in the UARTICR register.

Source

pub fn rtmis(&self) -> RTMIS_R

Bit 6 - 6:6] UART receive time-out masked interrupt status 1: An unmasked interrupt was signaled due to a receive time out. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the RTIC bit in the UARTICR register.

Source

pub fn txmis(&self) -> TXMIS_R

Bit 5 - 5:5] UART transmit masked interrupt status 1: An unmasked interrupt was signaled due to passing through the specified transmit FIFO level (if the EOT bit is clear) or due to the transmission of the last data bit (if the EOT bit is set). 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the TXIC bit in the UARTICR register.

Source

pub fn rxmis(&self) -> RXMIS_R

Bit 4 - 4:4] UART receive masked interrupt status 1: An unmasked interrupt was signaled due to passing through the specified receive FIFO level. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the RXIC bit in the UARTICR register.

Source

pub fn reserved4(&self) -> RESERVED4_R

Bits 0:3 - 3:0] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source§

impl R<u32, Reg<u32, _ICR>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn lme5ic(&self) -> LME5IC_R

Bit 15 - 15:15] LIN mode edge 5 interrupt clear Writing 1 to this bit clears the LME5RIS bit in the UARTRIS register and the LME5MIS bit in the UARTMIS register.

Source

pub fn lme1ic(&self) -> LME1IC_R

Bit 14 - 14:14] LIN mode edge 1 interrupt clear Writing 1 to this bit clears the LME1RIS bit in the UARTRIS register and the LME1MIS bit in the UARTMIS register.

Source

pub fn lmsbic(&self) -> LMSBIC_R

Bit 13 - 13:13] LIN mode sync break interrupt clear Writing 1 to this bit clears the LMSBRIS bit in the UARTRIS register and the LMSBMIS bit in the UARTMIS register.

Source

pub fn ninebitic(&self) -> NINEBITIC_R

Bit 12 - 12:12] 9-bit mode interrupt clear Writing 1 to this bit clears the 9BITRIS bit in the UARTRIS register and the 9BITMIS bit in the UARTMIS register.

Source

pub fn reserved1(&self) -> RESERVED1_R

Bit 11 - 11:11] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn oeic(&self) -> OEIC_R

Bit 10 - 10:10] Overrun error interrupt clear Writing 1 to this bit clears the OERIS bit in the UARTRIS register and the OEMIS bit in the UARTMIS register.

Source

pub fn beic(&self) -> BEIC_R

Bit 9 - 9:9] Break error interrupt clear Writing 1 to this bit clears the BERIS bit in the UARTRIS register and the BEMIS bit in the UARTMIS register.

Source

pub fn peic(&self) -> PEIC_R

Bit 8 - 8:8] Parity error interrupt clear Writing 1 to this bit clears the PERIS bit in the UARTRIS register and the PEMIS bit in the UARTMIS register.

Source

pub fn feic(&self) -> FEIC_R

Bit 7 - 7:7] Framing error interrupt clear Writing 1 to this bit clears the FERIS bit in the UARTRIS register and the FEMIS bit in the UARTMIS register.

Source

pub fn rtic(&self) -> RTIC_R

Bit 6 - 6:6] Receive time-out interrupt clear Writing 1 to this bit clears the RTRIS bit in the UARTRIS register and the RTMIS bit in the UARTMIS register.

Source

pub fn txic(&self) -> TXIC_R

Bit 5 - 5:5] Transmit interrupt clear Writing 1 to this bit clears the TXRIS bit in the UARTRIS register and the TXMIS bit in the UARTMIS register.

Source

pub fn rxic(&self) -> RXIC_R

Bit 4 - 4:4] Receive interrupt clear Writing 1 to this bit clears the RXRIS bit in the UARTRIS register and the RXMIS bit in the UARTMIS register.

Source

pub fn reserved4(&self) -> RESERVED4_R

Bits 0:3 - 3:0] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source§

impl R<u32, Reg<u32, _DMACTL>>

Source

pub fn reserved29(&self) -> RESERVED29_R

Bits 3:31 - 31:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn dmaerr(&self) -> DMAERR_R

Bit 2 - 2:2] DMA on error 1: uDMA receive requests are automatically disabled when a receive error occurs. 0: uDMA receive requests are unaffected when a receive error occurs.

Source

pub fn txdmae(&self) -> TXDMAE_R

Bit 1 - 1:1] Transmit DMA enable 1: uDMA for the transmit FIFO is enabled. 0: uDMA for the transmit FIFO is disabled.

Source

pub fn rxdmae(&self) -> RXDMAE_R

Bit 0 - 0:0] Receive DMA enable 1: uDMA for the receive FIFO is enabled. 0: uDMA for the receive FIFO is disabled.

Source§

impl R<u32, Reg<u32, _LCTL>>

Source

pub fn reserved26(&self) -> RESERVED26_R

Bits 6:31 - 31:6] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn blen(&self) -> BLEN_R

Bits 4:5 - 5:4] Sync break length 0x3: Sync break length is 16T bits 0x2: Sync break length is 15T bits 0x1: Sync break length is 14T bits 0x0: Sync break length is 13T bits (default)

Source

pub fn reserved3(&self) -> RESERVED3_R

Bits 1:3 - 3:1] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn master(&self) -> MASTER_R

Bit 0 - 0:0] LIN master enable 1: The UART operates as a LIN master. 0: The UART operates as a LIN slave.

Source§

impl R<u32, Reg<u32, _LSS>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tss(&self) -> TSS_R

Bits 0:15 - 15:0] Timer snap shot This field contains the value of the free-running timer when either the sync edge 5 or the sync edge 1 was detected.

Source§

impl R<u32, Reg<u32, _LTIM>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn timer(&self) -> TIMER_R

Bits 0:15 - 15:0] Timer value This field contains the value of the free-running timer.

Source§

impl R<u32, Reg<u32, _NINEBITADDR>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn ninebiten(&self) -> NINEBITEN_R

Bit 15 - 15:15] Enable 9-bit mode 1: 9-bit mode is enabled. 0: 9-bit mode is disabled.

Source

pub fn reserved7(&self) -> RESERVED7_R

Bits 8:14 - 14:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn addr(&self) -> ADDR_R

Bits 0:7 - 7:0] Self address for 9-bit mode This field contains the address that should be matched when UART9BITAMASK is 0xFF.

Source§

impl R<u32, Reg<u32, _NINEBITAMASK>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn range(&self) -> RANGE_R

Bits 8:15 - 15:8] Self address range for 9-bit mode Writing to the RANGE field does not have any effect; reading it reflects the ANDed output of the ADDR field in the UART9BITADDR register and the MASK field.

Source

pub fn mask(&self) -> MASK_R

Bits 0:7 - 7:0] Self Address Mask for 9-Bit Mode This field contains the address mask that creates a range of addresses that should be matched.

Source§

impl R<u32, Reg<u32, _PP>>

Source

pub fn reserved30(&self) -> RESERVED30_R

Bits 2:31 - 31:2] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn nb(&self) -> NB_R

Bit 1 - 1:1] 9-bit support 1: The UART module provides support for the transmission of 9-bit data for RS-485 support. 0: The UART module does not provide support for the transmission of 9-bit data for RS-485 support.

Source

pub fn sc(&self) -> SC_R

Bit 0 - 0:0] Smart card support 1: The UART module provides smart card support. 0: The UART module does not provide smart card support.

Source§

impl R<u32, Reg<u32, _CC>>

Source

pub fn reserved29(&self) -> RESERVED29_R

Bits 3:31 - 31:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn cs(&self) -> CS_R

Bits 0:2 - 2:0] UART baud and system clock source The following bits determine the clock source that generates the baud and system clocks for the UART. bit0 (PIOSC): 1: The UART baud clock is determined by the IO DIV setting in the system controller. 0: The UART baud clock is determined by the SYS DIV setting in the system controller. bit1: Unused bit2: (DSEN) Only meaningful when the system is in deep sleep mode. This bit is a don’t care when not in sleep mode. 1: The UART system clock is running on the same clock as the baud clock, as per PIOSC setting above. 0: The UART system clock is determined by the SYS DIV setting in the system controller.

Source§

impl R<u32, Reg<u32, _DR>>

Source

pub fn reserved20(&self) -> RESERVED20_R

Bits 12:31 - 31:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn oe(&self) -> OE_R

Bit 11 - 11:11] UART overrun error 1: New data was received when the FIFO was full, resulting in data loss. 0: No data has been lost due to a FIFO overrun.

Source

pub fn be(&self) -> BE_R

Bit 10 - 10:10] UART break error 1: A break condition has been detected, indicating that the receive data input was held low for longer than a full-word transmission time (defined as start, data, parity, and stop bits). 0: No break condition has occurred. In FIFO mode, this error is associated with the character at the top of the FIFO. When a break occurs, only the one 0 character is loaded into the FIFO. The next character is only enabled after the received data input goes to a 1 (marking state), and the next valid start bit is received.

Source

pub fn pe(&self) -> PE_R

Bit 9 - 9:9] UART parity error 1: The parity of the received data character does not match the parity defined by bits 2 and 7 of the UARTLCRH register 0: No parity error has occurred. In FIFO mode, this error is associated with the character at the top of the FIFO.

Source

pub fn fe(&self) -> FE_R

Bit 8 - 8:8] UART framing error 1: The received character does not have a valid stop bit (a valid stop bit is 1). 0: No framing error has occurred.

Source

pub fn data(&self) -> DATA_R

Bits 0:7 - 7:0] Data transmitted or received Data that is to be transmitted via the UART is written to this field. When read, this field contains the data that was received by the UART.

Source§

impl R<u32, Reg<u32, _RSR>>

Source

pub fn reserved28(&self) -> RESERVED28_R

Bits 4:31 - 31:4] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn oe(&self) -> OE_R

Bit 3 - 3:3] UART overrun error 1: New data was received when the FIFO was full, resulting in data loss. 0: No data has been lost due to a FIFO overrun. This bit is cleared by a write to UARTECR. The FIFO contents remain valid because no further data is written when the FIFO is full, only the contents of the shift register are overwritten. The CPU must read the data in order to empty the FIFO.

Source

pub fn be(&self) -> BE_R

Bit 2 - 2:2] UART break error 1: A break condition has been detected, indicating that the receive data input was held low for longer than a full-word transmission time (defined as start, data, parity, and stop bits). 0: No break condition has occurred. This bit is cleared to 0 by a write to UARTECR. In FIFO mode, this error is associated with the character at the top of the FIFO. When a break occurs, only one 0 character is loaded into the FIFO. The next character is only enabled after the receive data input goes to a 1 (marking state) and the next valid start bit is received.

Source

pub fn pe(&self) -> PE_R

Bit 1 - 1:1] UART parity error 1: The parity of the received data character does not match the parity defined by bits 2 and 7 of the UARTLCRH register. 0: No parity error has occurred. This bit is cleared to 0 by a write to UARTECR.

Source

pub fn fe(&self) -> FE_R

Bit 0 - 0:0] UART framing error 1: The received character does not have a valid stop bit (a valid stop bit is 1). 0: No framing error has occurred. This bit is cleared to 0 by a write to UARTECR. In FIFO mode, this error is associated with the character at the top of the FIFO.

Source§

impl R<u32, Reg<u32, _ECR>>

Source

pub fn reserved24(&self) -> RESERVED24_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn data(&self) -> DATA_R

Bits 0:7 - 7:0] Error clear A write to this register of any data clears the framing, parity, break, and overrun flags.

Source§

impl R<u32, Reg<u32, _FR>>

Source

pub fn reserved24(&self) -> RESERVED24_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn txfe(&self) -> TXFE_R

Bit 7 - 7:7] UART transmit FIFO empty The meaning of this bit depends on the state of the FEN bit in the UARTLCRH register. 1: If the FIFO is disabled (FEN is 0), the transmit holding register is empty. If the FIFO is enabled (FEN is 1), the transmit FIFO is empty. 0: The transmitter has data to transmit.

Source

pub fn rxff(&self) -> RXFF_R

Bit 6 - 6:6] UART receive FIFO full The meaning of this bit depends on the state of the FEN bit in the UARTLCRH register. 1: If the FIFO is disabled (FEN is 0), the receive holding register is full. If the FIFO is enabled (FEN is 1), the receive FIFO is full. 0: The receiver can receive data.

Source

pub fn txff(&self) -> TXFF_R

Bit 5 - 5:5] UART transmit FIFO full The meaning of this bit depends on the state of the FEN bit in the UARTLCRH register. 1: If the FIFO is disabled (FEN is 0), the transmit holding register is full. If the FIFO is enabled (FEN is 1), the transmit FIFO is full. 0: The transmitter is not full.

Source

pub fn rxfe(&self) -> RXFE_R

Bit 4 - 4:4] UART receive FIFO empty The meaning of this bit depends on the state of the FEN bit in the UARTLCRH register. 1: If the FIFO is disabled (FEN is 0), the receive holding register is empty. If the FIFO is enabled (FEN is 1), the receive FIFO is empty. 0: The receiver is not empty.

Source

pub fn busy(&self) -> BUSY_R

Bit 3 - 3:3] UART busy 1: The UART is busy transmitting data. This bit remains set until the complete byte, including all stop bits, has been sent from the shift register. 0: The UART is not busy. This bit is set as soon as the transmit FIFO becomes non-empty (regardless of whether UART is enabled).

Source

pub fn reserved2(&self) -> RESERVED2_R

Bits 1:2 - 2:1] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn cts(&self) -> CTS_R

Bit 0 - 0:0] Clear to send (UART1 only, reserved for UART0). 1: The U1CTS signal is asserted. 0: The U1CTS signal is not asserted.

Source§

impl R<u32, Reg<u32, _ILPR>>

Source

pub fn reserved24(&self) -> RESERVED24_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn ilpdvsr(&self) -> ILPDVSR_R

Bits 0:7 - 7:0] IrDA low-power divisor This field contains the 8-bit low-power divisor value.

Source§

impl R<u32, Reg<u32, _IBRD>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn divint(&self) -> DIVINT_R

Bits 0:15 - 15:0] Integer baud-rate divisor

Source§

impl R<u32, Reg<u32, _FBRD>>

Source

pub fn reserved26(&self) -> RESERVED26_R

Bits 6:31 - 31:6] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn divfrac(&self) -> DIVFRAC_R

Bits 0:5 - 5:0] Fractional baud-rate divisor

Source§

impl R<u32, Reg<u32, _LCRH>>

Source

pub fn reserved24(&self) -> RESERVED24_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn sps(&self) -> SPS_R

Bit 7 - 7:7] UART stick parity select When bits 1, 2, and 7 of UARTLCRH are set, the parity bit is transmitted and checked as a 0. When bits 1 and 7 are set and 2 is cleared, the parity bit is transmitted and checked as a 1. When this bit is cleared, stick parity is disabled.

Source

pub fn wlen(&self) -> WLEN_R

Bits 5:6 - 6:5] UART word length The bits indicate the number of data bits transmitted or received in a frame as follows: 0x0: 5 bits (default) 0x1: 6 bits 0x2: 7 bits 0x3: 8 bits

Source

pub fn fen(&self) -> FEN_R

Bit 4 - 4:4] UART enable FIFOs 1: The transmit and receive FIFObuffers are enabled (FIFOmode). 0: The FIFOs are disabled (Character mode). The FIFOs become 1-byte-deep holding registers.

Source

pub fn stp2(&self) -> STP2_R

Bit 3 - 3:3] UART two stop bits select 1: Two stop bits are transmitted at the end of a frame. The receive logic does not check for two stop bits being received. 0: One stop bit is transmitted at the end of a frame.

Source

pub fn eps(&self) -> EPS_R

Bit 2 - 2:2] UART even parity select 1: Even parity generation and checking is performed during transmission and reception, which checks for an even number of 1s in data and parity bits. 0: Odd parity is performed, which checks for an odd number of 1s. This bit has no effect when parity is disabled by the PEN bit.

Source

pub fn pen(&self) -> PEN_R

Bit 1 - 1:1] UART parity enable 1: Parity checking and generation is enabled. 0: Parity is disabled and no parity bit is added to the data frame.

Source

pub fn brk(&self) -> BRK_R

Bit 0 - 0:0] UART send break 1: A low level is continually output on the UnTx signal, after completing transmission of the current character. For the proper execution of the break command, software must set this bit for at least two frames (character periods). 0: Normal use

Source§

impl R<u32, Reg<u32, _CTL>>

Source

pub fn reserved6(&self) -> RESERVED6_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn ctsen(&self) -> CTSEN_R

Bit 15 - 15:15] U1CTS Hardware Flow control enable 1: When U1CTS input is asserted, UART1 can transmit data. 0: U1CTS does not control UART1 data transmission. Note: Only used for UART1. This bit is reserved RO for UART0.

Source

pub fn rtsen(&self) -> RTSEN_R

Bit 14 - 14:14] U1RTS Hardware Flow control enable 1: U1RTS indicates the state of UART1 receive FIFO. U1RTS remains asserted until the preprogrammed watermark level is reached, indicating that the UART1 RXFIFO has no space to store additional characters. 0: U1RTS does not indicate state of UART1 RX FIFO. Note: Only used for UART1. This bit is reserved RO for UART0.

Source

pub fn reserved4(&self) -> RESERVED4_R

Bits 10:13 - 13:10] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn rxe(&self) -> RXE_R

Bit 9 - 9:9] UART receive enable 1: The receive section of the UART is enabled. 0: The receive section of the UART is disabled. If the UART is disabled in the middle of a receive, it completes the current character before stopping. Note: To enable reception, the UARTEN bit must also be set.

Source

pub fn txe(&self) -> TXE_R

Bit 8 - 8:8] UART transmit enable 1: The transmit section of the UART is enabled. 0: The transmit section of the UART is disabled. If the UART is disabled in the middle of a transmission, it completes the current character before stopping. Note: To enable transmission, the UARTEN bit must also be set.

Source

pub fn lbe(&self) -> LBE_R

Bit 7 - 7:7] UART loop back enable 1: The UnTx path is fed through the UnRx path. 0: Normal operation

Source

pub fn lin(&self) -> LIN_R

Bit 6 - 6:6] LIN mode enable 1: The UART operates in LIN mode. 0: Normal operation

Source

pub fn hse(&self) -> HSE_R

Bit 5 - 5:5] High-speed enable 0: The UART is clocked using the system clock divided by 16. 1: The UART is clocked using the system clock divided by 8. Note: System clock used is also dependent on the baud-rate divisor configuration (See Universal Asynchronous Receivers/Transmitters - Baud-Rate Generation).

Source

pub fn eot(&self) -> EOT_R

Bit 4 - 4:4] End of transmission This bit determines the behavior of the TXRIS bit in the UARTRIS register. 1: The TXRIS bit is set only after all transmitted data, including stop bits, have cleared the serializer. 0: The TXRIS bit is set when the transmit FIFO condition specified in UARTIFLS is met.

Source

pub fn reserved1(&self) -> RESERVED1_R

Bit 3 - 3:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation. Note field should always be written as 0 for correct operation.

Source

pub fn sirlp(&self) -> SIRLP_R

Bit 2 - 2:2] UART SIR low-power mode This bit selects the IrDA encoding mode. 1: The UART operates in SIR Low-Power mode. Low-level bits are transmitted with a pulse width which is 3 times the period of the IrLPBaud16 input signal, regardless of the selected bit rate. 0: Low-level bits are transmitted as an active high pulse with a width of 3/16th of the bit period. Setting this bit uses less power, but might reduce transmission distances.

Source

pub fn siren(&self) -> SIREN_R

Bit 1 - 1:1] UART SIR enable 1: The IrDA SIR block is enabled, and the UART transmits and receives data using SIR protocol. 0: Normal operation.

Source

pub fn uarten(&self) -> UARTEN_R

Bit 0 - 0:0] UART enable 1: The UART is enabled. 0: The UART is disabled. If the UART is disabled in the middle of transmission or reception, it completes the current character before stopping.

Source§

impl R<u32, Reg<u32, _IFLS>>

Source

pub fn reserved26(&self) -> RESERVED26_R

Bits 6:31 - 31:6] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn rxiflsel(&self) -> RXIFLSEL_R

Bits 3:5 - 5:3] UART receive interrupt FIFO level select The trigger points for the receive interrupt are as follows: 0x0: RX FIFO >= 1/8 full 0x1: RX FIFO >= 1/4 full 0x2: RX FIFO >= 1/2 full (default) 0x3: RX FIFO >= 3/4 full 0x4: RX FIFO >= 7/8 full 0x5-0x7: Reserved

Source

pub fn txiflsel(&self) -> TXIFLSEL_R

Bits 0:2 - 2:0] UART Transmit Interrupt FIFO Level Select The trigger points for the transmit interrupt are as follows: 0x0: TX FIFO <= 7/8 empty 0x1: TX FIFO <= 3/4 empty 0x2: TX FIFO <= 1/2 empty (default) 0x3: TX FIFO <= 1/4 empty 0x4: TX FIFO <= 1/8 empty 0x5-0x7: Reserved Note: If the EOT bit in UARTCTL is set, the transmit interrupt is generated once the FIFO is completely empty and all data including stop bits have left the transmit serializer. In this case, the setting of TXIFLSEL is ignored.

Source§

impl R<u32, Reg<u32, _IM>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn lme5im(&self) -> LME5IM_R

Bit 15 - 15:15] LIN mode edge 5 interrupt mask 1: An interrupt is sent to the interrupt controller when the LME5RIS bit in the UARTRIS register is set. 0: The LME5RIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn lme1im(&self) -> LME1IM_R

Bit 14 - 14:14] LIN mode edge 1 interrupt mask 1: An interrupt is sent to the interrupt controller when the LME1RIS bit in the UARTRIS register is set. 0: The LME1RIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn lmsbim(&self) -> LMSBIM_R

Bit 13 - 13:13] LIN mode sync break interrupt mask 1: An interrupt is sent to the interrupt controller when the LMSBRIS bit in the UARTRIS register is set. 0: The LMSBRIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn ninebitim(&self) -> NINEBITIM_R

Bit 12 - 12:12] 9-bit mode interrupt mask 1: An interrupt is sent to the interrupt controller when the 9BITRIS bit in the UARTRIS register is set. 0: The 9BITRIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn reserved1(&self) -> RESERVED1_R

Bit 11 - 11:11] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn oeim(&self) -> OEIM_R

Bit 10 - 10:10] UART overrun error interrupt mask 1: An interrupt is sent to the interrupt controller when the OERIS bit in the UARTRIS register is set. 0: The OERIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn beim(&self) -> BEIM_R

Bit 9 - 9:9] UART break error interrupt mask 1: An interrupt is sent to the interrupt controller when the BERIS bit in the UARTRIS register is set. 0: The BERIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn peim(&self) -> PEIM_R

Bit 8 - 8:8] UART parity error interrupt mask 1: An interrupt is sent to the interrupt controller when the PERIS bit in the UARTRIS register is set. 0: The PERIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn feim(&self) -> FEIM_R

Bit 7 - 7:7] UART framing error interrupt mask 1: An interrupt is sent to the interrupt controller when the FERIS bit in the UARTRIS register is set. 0: The FERIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn rtim(&self) -> RTIM_R

Bit 6 - 6:6] UART receive time-out interrupt mask 1: An interrupt is sent to the interrupt controller when the RTRIS bit in the UARTRIS register is set. 0: The RTRIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn txim(&self) -> TXIM_R

Bit 5 - 5:5] UART transmit interrupt mask 1: An interrupt is sent to the interrupt controller when the TXRIS bit in the UARTRIS register is set. 0: The TXRIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn rxim(&self) -> RXIM_R

Bit 4 - 4:4] UART receive interrupt mask 1: An interrupt is sent to the interrupt controller when the RXRIS bit in the UARTRIS register is set. 0: The RXRIS interrupt is suppressed and not sent to the interrupt controller.

Source

pub fn reserved4(&self) -> RESERVED4_R

Bits 0:3 - 3:0] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source§

impl R<u32, Reg<u32, _RIS>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn lme5ris(&self) -> LME5RIS_R

Bit 15 - 15:15] LIN mode edge 5 raw interrupt status 1: The timer value at the 5th falling edge of the LIN sync field has been captured. 0: No interrupt This bit is cleared by writing 1 to the LME5IC bit in the UARTICR register.

Source

pub fn lme1ris(&self) -> LME1RIS_R

Bit 14 - 14:14] LIN mode edge 1 raw interrupt status 1: The timer value at the 1st falling edge of the LIN Sync Field has been captured. 0: No interrupt This bit is cleared by writing 1 to the LME1IC bit in the UARTICR register.

Source

pub fn lmsbris(&self) -> LMSBRIS_R

Bit 13 - 13:13] LIN mode sync break raw interrupt status 1: A LIN sync break has been detected. 0: No interrupt This bit is cleared by writing 1 to the LMSBIC bit in the UARTICR register.

Source

pub fn ninebitris(&self) -> NINEBITRIS_R

Bit 12 - 12:12] 9-mit mode raw interrupt status 1: A receive address match has occurred. 0: No interrupt This bit is cleared by writing 1 to the 9BITIC bit in the UARTICR register.

Source

pub fn reserved1(&self) -> RESERVED1_R

Bit 11 - 11:11] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn oeris(&self) -> OERIS_R

Bit 10 - 10:10] UART overrun error raw interrupt status 1: An overrun error has occurred. 0: No interrupt This bit is cleared by writing 1 to the OEIC bit in the UARTICR register.

Source

pub fn beris(&self) -> BERIS_R

Bit 9 - 9:9] UART break error raw interrupt status 1: A break error has occurred. 0: No interrupt This bit is cleared by writing 1 to the BEIC bit in the UARTICR register.

Source

pub fn peris(&self) -> PERIS_R

Bit 8 - 8:8] UART parity error raw interrupt status 1: A parity error has occurred. 0: No interrupt This bit is cleared by writing 1 to the PEIC bit in the UARTICR register.

Source

pub fn feris(&self) -> FERIS_R

Bit 7 - 7:7] UART framing error raw interrupt status 1: A framing error has occurred. 0: No interrupt This bit is cleared by writing 1 to the FEIC bit in the UARTICR register.

Source

pub fn rtris(&self) -> RTRIS_R

Bit 6 - 6:6] UART receive time-out raw interrupt status 1: A receive time out has occurred. 0: No interrupt This bit is cleared by writing 1 to the RTIC bit in the UARTICR register.

Source

pub fn txris(&self) -> TXRIS_R

Bit 5 - 5:5] UART transmit raw interrupt status 1: If the EOT bit in the UARTCTL register is clear, the transmit FIFO level has passed through the condition defined in the UARTIFLS register. If the EOT bit is set, the last bit of all transmitted data and flags has left the serializer. 0: No interrupt This bit is cleared by writing 1 to the TXIC bit in the UARTICR register.

Source

pub fn rxris(&self) -> RXRIS_R

Bit 4 - 4:4] UART receive raw interrupt status 1: The receive FIFO level has passed through the condition defined in the UARTIFLS register. 0: No interrupt This bit is cleared by writing 1 to the RXIC bit in the UARTICR register.

Source

pub fn reserved4(&self) -> RESERVED4_R

Bits 0:3 - 3:0] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source§

impl R<u32, Reg<u32, _MIS>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn lme5mis(&self) -> LME5MIS_R

Bit 15 - 15:15] LIN mode edge 5 masked interrupt status 1: An unmasked interrupt was signaled due to the 5th falling edge of the LIN sync field. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the LME5IC bit in the UARTICR register.

Source

pub fn lme1mis(&self) -> LME1MIS_R

Bit 14 - 14:14] LIN mode edge 1 masked interrupt status 1: An unmasked interrupt was signaled due to the 1st falling edge of the LIN sync field. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the LME1IC bit in the UARTICR register.

Source

pub fn lmsbmis(&self) -> LMSBMIS_R

Bit 13 - 13:13] LIN mode sync break masked interrupt status 1: An unmasked interrupt was signaled due to the receipt of a LIN sync break. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the LMSBIC bit in the UARTICR register.

Source

pub fn ninebitmis(&self) -> NINEBITMIS_R

Bit 12 - 12:12] 9-bit mode masked interrupt status 1: An unmasked interrupt was signaled due to a receive address match. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the 9BITIC bit in the UARTICR register.

Source

pub fn reserved1(&self) -> RESERVED1_R

Bit 11 - 11:11] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn oemis(&self) -> OEMIS_R

Bit 10 - 10:10] UART overrun error masked interrupt status 1: An unmasked interrupt was signaled due to an overrun error. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the OEIC bit in the UARTICR register.

Source

pub fn bemis(&self) -> BEMIS_R

Bit 9 - 9:9] UART break error masked interrupt status 1: An unmasked interrupt was signaled due to a break error. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the BEIC bit in the UARTICR register.

Source

pub fn pemis(&self) -> PEMIS_R

Bit 8 - 8:8] UART parity error masked interrupt status 1: An unmasked interrupt was signaled due to a parity error. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the PEIC bit in the UARTICR register.

Source

pub fn femis(&self) -> FEMIS_R

Bit 7 - 7:7] UART framing error masked interrupt status 1: An unmasked interrupt was signaled due to a framing error. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the FEIC bit in the UARTICR register.

Source

pub fn rtmis(&self) -> RTMIS_R

Bit 6 - 6:6] UART receive time-out masked interrupt status 1: An unmasked interrupt was signaled due to a receive time out. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the RTIC bit in the UARTICR register.

Source

pub fn txmis(&self) -> TXMIS_R

Bit 5 - 5:5] UART transmit masked interrupt status 1: An unmasked interrupt was signaled due to passing through the specified transmit FIFO level (if the EOT bit is clear) or due to the transmission of the last data bit (if the EOT bit is set). 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the TXIC bit in the UARTICR register.

Source

pub fn rxmis(&self) -> RXMIS_R

Bit 4 - 4:4] UART receive masked interrupt status 1: An unmasked interrupt was signaled due to passing through the specified receive FIFO level. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the RXIC bit in the UARTICR register.

Source

pub fn reserved4(&self) -> RESERVED4_R

Bits 0:3 - 3:0] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source§

impl R<u32, Reg<u32, _ICR>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn lme5ic(&self) -> LME5IC_R

Bit 15 - 15:15] LIN mode edge 5 interrupt clear Writing 1 to this bit clears the LME5RIS bit in the UARTRIS register and the LME5MIS bit in the UARTMIS register.

Source

pub fn lme1ic(&self) -> LME1IC_R

Bit 14 - 14:14] LIN mode edge 1 interrupt clear Writing 1 to this bit clears the LME1RIS bit in the UARTRIS register and the LME1MIS bit in the UARTMIS register.

Source

pub fn lmsbic(&self) -> LMSBIC_R

Bit 13 - 13:13] LIN mode sync break interrupt clear Writing 1 to this bit clears the LMSBRIS bit in the UARTRIS register and the LMSBMIS bit in the UARTMIS register.

Source

pub fn ninebitic(&self) -> NINEBITIC_R

Bit 12 - 12:12] 9-bit mode interrupt clear Writing 1 to this bit clears the 9BITRIS bit in the UARTRIS register and the 9BITMIS bit in the UARTMIS register.

Source

pub fn reserved1(&self) -> RESERVED1_R

Bit 11 - 11:11] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn oeic(&self) -> OEIC_R

Bit 10 - 10:10] Overrun error interrupt clear Writing 1 to this bit clears the OERIS bit in the UARTRIS register and the OEMIS bit in the UARTMIS register.

Source

pub fn beic(&self) -> BEIC_R

Bit 9 - 9:9] Break error interrupt clear Writing 1 to this bit clears the BERIS bit in the UARTRIS register and the BEMIS bit in the UARTMIS register.

Source

pub fn peic(&self) -> PEIC_R

Bit 8 - 8:8] Parity error interrupt clear Writing 1 to this bit clears the PERIS bit in the UARTRIS register and the PEMIS bit in the UARTMIS register.

Source

pub fn feic(&self) -> FEIC_R

Bit 7 - 7:7] Framing error interrupt clear Writing 1 to this bit clears the FERIS bit in the UARTRIS register and the FEMIS bit in the UARTMIS register.

Source

pub fn rtic(&self) -> RTIC_R

Bit 6 - 6:6] Receive time-out interrupt clear Writing 1 to this bit clears the RTRIS bit in the UARTRIS register and the RTMIS bit in the UARTMIS register.

Source

pub fn txic(&self) -> TXIC_R

Bit 5 - 5:5] Transmit interrupt clear Writing 1 to this bit clears the TXRIS bit in the UARTRIS register and the TXMIS bit in the UARTMIS register.

Source

pub fn rxic(&self) -> RXIC_R

Bit 4 - 4:4] Receive interrupt clear Writing 1 to this bit clears the RXRIS bit in the UARTRIS register and the RXMIS bit in the UARTMIS register.

Source

pub fn reserved4(&self) -> RESERVED4_R

Bits 0:3 - 3:0] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source§

impl R<u32, Reg<u32, _DMACTL>>

Source

pub fn reserved29(&self) -> RESERVED29_R

Bits 3:31 - 31:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn dmaerr(&self) -> DMAERR_R

Bit 2 - 2:2] DMA on error 1: uDMA receive requests are automatically disabled when a receive error occurs. 0: uDMA receive requests are unaffected when a receive error occurs.

Source

pub fn txdmae(&self) -> TXDMAE_R

Bit 1 - 1:1] Transmit DMA enable 1: uDMA for the transmit FIFO is enabled. 0: uDMA for the transmit FIFO is disabled.

Source

pub fn rxdmae(&self) -> RXDMAE_R

Bit 0 - 0:0] Receive DMA enable 1: uDMA for the receive FIFO is enabled. 0: uDMA for the receive FIFO is disabled.

Source§

impl R<u32, Reg<u32, _LCTL>>

Source

pub fn reserved26(&self) -> RESERVED26_R

Bits 6:31 - 31:6] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn blen(&self) -> BLEN_R

Bits 4:5 - 5:4] Sync break length 0x3: Sync break length is 16T bits 0x2: Sync break length is 15T bits 0x1: Sync break length is 14T bits 0x0: Sync break length is 13T bits (default)

Source

pub fn reserved3(&self) -> RESERVED3_R

Bits 1:3 - 3:1] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn master(&self) -> MASTER_R

Bit 0 - 0:0] LIN master enable 1: The UART operates as a LIN master. 0: The UART operates as a LIN slave.

Source§

impl R<u32, Reg<u32, _LSS>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tss(&self) -> TSS_R

Bits 0:15 - 15:0] Timer snap shot This field contains the value of the free-running timer when either the sync edge 5 or the sync edge 1 was detected.

Source§

impl R<u32, Reg<u32, _LTIM>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn timer(&self) -> TIMER_R

Bits 0:15 - 15:0] Timer value This field contains the value of the free-running timer.

Source§

impl R<u32, Reg<u32, _NINEBITADDR>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn ninebiten(&self) -> NINEBITEN_R

Bit 15 - 15:15] Enable 9-bit mode 1: 9-bit mode is enabled. 0: 9-bit mode is disabled.

Source

pub fn reserved7(&self) -> RESERVED7_R

Bits 8:14 - 14:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn addr(&self) -> ADDR_R

Bits 0:7 - 7:0] Self address for 9-bit mode This field contains the address that should be matched when UART9BITAMASK is 0xFF.

Source§

impl R<u32, Reg<u32, _NINEBITAMASK>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn range(&self) -> RANGE_R

Bits 8:15 - 15:8] Self address range for 9-bit mode Writing to the RANGE field does not have any effect; reading it reflects the ANDed output of the ADDR field in the UART9BITADDR register and the MASK field.

Source

pub fn mask(&self) -> MASK_R

Bits 0:7 - 7:0] Self Address Mask for 9-Bit Mode This field contains the address mask that creates a range of addresses that should be matched.

Source§

impl R<u32, Reg<u32, _PP>>

Source

pub fn reserved30(&self) -> RESERVED30_R

Bits 2:31 - 31:2] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn nb(&self) -> NB_R

Bit 1 - 1:1] 9-bit support 1: The UART module provides support for the transmission of 9-bit data for RS-485 support. 0: The UART module does not provide support for the transmission of 9-bit data for RS-485 support.

Source

pub fn sc(&self) -> SC_R

Bit 0 - 0:0] Smart card support 1: The UART module provides smart card support. 0: The UART module does not provide smart card support.

Source§

impl R<u32, Reg<u32, _CC>>

Source

pub fn reserved29(&self) -> RESERVED29_R

Bits 3:31 - 31:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn cs(&self) -> CS_R

Bits 0:2 - 2:0] UART baud and system clock source The following bits determine the clock source that generates the baud and system clocks for the UART. bit0 (PIOSC): 1: The UART baud clock is determined by the IO DIV setting in the system controller. 0: The UART baud clock is determined by the SYS DIV setting in the system controller. bit1: Unused bit2: (DSEN) Only meaningful when the system is in deep sleep mode. This bit is a don’t care when not in sleep mode. 1: The UART system clock is running on the same clock as the baud clock, as per PIOSC setting above. 0: The UART system clock is determined by the SYS DIV setting in the system controller.

Source§

impl R<u32, Reg<u32, _SA>>

Source

pub fn reserved24(&self) -> RESERVED24_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn sa(&self) -> SA_R

Bits 1:7 - 7:1] I2C slave address

Source

pub fn rs(&self) -> RS_R

Bit 0 - 0:0] Receive and send The R/S bit specifies if the next operation is a receive (high) or transmit (low). 0: Transmit 1: Receive

Source§

impl R<u32, Reg<u32, _CTRL>>

Source

pub fn reserved28(&self) -> RESERVED28_R

Bits 4:31 - 31:4] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn ack(&self) -> ACK_R

Bit 3 - 3:3] Data acknowledge enable 0: The received data byte is not acknowledged automatically by the master. 1: The received data byte is acknowledged automatically by the master.

Source

pub fn stop(&self) -> STOP_R

Bit 2 - 2:2] Generate STOP 0: The controller does not generate the STOP condition. 1: The controller generates the STOP condition.

Source

pub fn start(&self) -> START_R

Bit 1 - 1:1] Generate START 0: The controller does not generate the START condition. 1: The controller generates the START condition.

Source

pub fn run(&self) -> RUN_R

Bit 0 - 0:0] I2C master enable 0: The master is disabled. 1: The master is enabled to transmit or receive data. When the BUSY bit is set, the other status bits are not valid.

Source§

impl R<u32, Reg<u32, _STAT>>

Source

pub fn reserved25(&self) -> RESERVED25_R

Bits 7:31 - 31:7] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn busbsy(&self) -> BUSBSY_R

Bit 6 - 6:6] Bus busy 0: The I2C bus is idle. 1: The I2C bus is busy. The bit changes based on the START and STOP conditions.

Source

pub fn idle(&self) -> IDLE_R

Bit 5 - 5:5] I2C idle 0: The I2C controller is not idle. 1: The I2C controller is idle.

Source

pub fn arblst(&self) -> ARBLST_R

Bit 4 - 4:4] Arbitration lost 0: The I2C controller won arbitration. 1: The I2C controller lost arbitration.

Source

pub fn datack(&self) -> DATACK_R

Bit 3 - 3:3] Acknowledge data 0: The transmited data was acknowledged. 1: The transmited data was not acknowledged.

Source

pub fn adrack(&self) -> ADRACK_R

Bit 2 - 2:2] Acknowledge address 0: The transmited address was acknowledged. 1: The transmited address was not acknowledged.

Source

pub fn error(&self) -> ERROR_R

Bit 1 - 1:1] Error 0: No error was detected on the last operation. 1: An error occurred on the last operation.

Source

pub fn busy(&self) -> BUSY_R

Bit 0 - 0:0] I2C busy 0: The controller is idle. 1: The controller is busy. When the BUSY bit is set, the other status bits are not valid.

Source§

impl R<u32, Reg<u32, _DR>>

Source

pub fn reserved24(&self) -> RESERVED24_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn data(&self) -> DATA_R

Bits 0:7 - 7:0] Data transferred Data transferred during transaction

Source§

impl R<u32, Reg<u32, _TPR>>

Source

pub fn reserved25(&self) -> RESERVED25_R

Bits 7:31 - 31:7] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tpr(&self) -> TPR_R

Bits 0:6 - 6:0] SCL clock period This field specifies the period of the SCL clock. SCL_PRD = 2 * (1+TPR)*(SCL_LP + SCL_HP)*CLK_PRD where: SCL_PRD is the SCL line period (I2C clock). TPR is the timer period register value (range of 1 to 127) SCL_LP is the SCL low period (fixed at 6). SCL_HP is the SCL high period (fixed at 4). CLK_PRD is the system clock period in ns.

Source§

impl R<u32, Reg<u32, _IMR>>

Source

pub fn reserved31(&self) -> RESERVED31_R

Bits 1:31 - 31:1] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn im(&self) -> IM_R

Bit 0 - 0:0] Interrupt mask 1: The master interrupt is sent to the interrupt controller when the RIS bit in the I2CMRIS register is set. 0: The RIS interrupt is suppressed and not sent to the interrupt controller.

Source§

impl R<u32, Reg<u32, _RIS>>

Source

pub fn reserved31(&self) -> RESERVED31_R

Bits 1:31 - 31:1] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn ris(&self) -> RIS_R

Bit 0 - 0:0] Raw interrupt status 1: A master interrupt is pending. 0: No interrupt This bit is cleared by writing 1 to the IC bit in the I2CMICR register.

Source§

impl R<u32, Reg<u32, _MIS>>

Source

pub fn reserved31(&self) -> RESERVED31_R

Bits 1:31 - 31:1] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn mis(&self) -> MIS_R

Bit 0 - 0:0] Masked interrupt status 1: An unmasked master interrupt is pending. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the IC bit in the I2CMICR register.

Source§

impl R<u32, Reg<u32, _ICR>>

Source

pub fn reserved31(&self) -> RESERVED31_R

Bits 1:31 - 31:1] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn ic(&self) -> IC_R

Bit 0 - 0:0] Interrupt clear Writing 1 to this bit clears the RIS bit in the I2CMRIS register and the MIS bit in the I2CMMIS register. Reading this register returns no meaningful data.

Source§

impl R<u32, Reg<u32, _CR>>

Source

pub fn reserved26(&self) -> RESERVED26_R

Bits 6:31 - 31:6] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn sfe(&self) -> SFE_R

Bit 5 - 5:5] I2C slave function enable 1: Slave mode is enabled. 0: Slave mode is disabled.

Source

pub fn mfe(&self) -> MFE_R

Bit 4 - 4:4] I2C master function enable 1: Master mode is enabled. 0: Master mode is disabled.

Source

pub fn reserved3(&self) -> RESERVED3_R

Bits 1:3 - 3:1] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn lpbk(&self) -> LPBK_R

Bit 0 - 0:0] I2C loopback 1: The controller in a test mode loopback configuration. 0: Normal operation

Source§

impl R<u32, Reg<u32, _OAR>>

Source

pub fn reserved25(&self) -> RESERVED25_R

Bits 7:31 - 31:7] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn oar(&self) -> OAR_R

Bits 0:6 - 6:0] I2C slave own address This field specifies bits A6 through A0 of the slave address.

Source§

impl R<u32, Reg<u32, _STAT>>

Source

pub fn reserved29(&self) -> RESERVED29_R

Bits 3:31 - 31:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn fbr(&self) -> FBR_R

Bit 2 - 2:2] First byte received 1: The first byte following the slave’s own address has been received. 0: The first byte has not been received. This bit is only valid when the RREQ bit is set and is automatically cleared when data has been read from the I2CSDR register. Note: This bit is not used for slave transmit operations.

Source

pub fn treq(&self) -> TREQ_R

Bit 1 - 1:1] Transmit request 1: The I2C controller has been addressed as a slave transmitter and is using clock stretching to delay the master until data has been written to the I2CSDR register. 0: No outstanding transmit request.

Source

pub fn rreq(&self) -> RREQ_R

Bit 0 - 0:0] Receive request 1: The I2C controller has outstanding receive data from the I2C master and is using clock stretching to delay the master until data has been read from the I2CSDR register. 0: No outstanding receive data

Source§

impl R<u32, Reg<u32, _CTRL>>

Source

pub fn reserved31(&self) -> RESERVED31_R

Bits 1:31 - 31:1] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn da(&self) -> DA_R

Bit 0 - 0:0] Device active 0: Disables the I2C slave operation 1: Enables the I2C slave operation

Source§

impl R<u32, Reg<u32, _DR>>

Source

pub fn reserved24(&self) -> RESERVED24_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn data(&self) -> DATA_R

Bits 0:7 - 7:0] Data for transfer This field contains the data for transfer during a slave receive or transmit operation.

Source§

impl R<u32, Reg<u32, _IMR>>

Source

pub fn reserved29(&self) -> RESERVED29_R

Bits 3:31 - 31:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn stopim(&self) -> STOPIM_R

Bit 2 - 2:2] Stop condition interrupt mask 1: The STOP condition interrupt is sent to the interrupt controller when the STOPRIS bit in the I2CSRIS register is set. 0: The STOPRIS interrupt is supressed and not sent to the interrupt controller.

Source

pub fn startim(&self) -> STARTIM_R

Bit 1 - 1:1] Start condition interrupt mask 1: The START condition interrupt is sent to the interrupt controller when the STARTRIS bit in the I2CSRIS register is set. 0: The STARTRIS interrupt is supressed and not sent to the interrupt controller.

Source

pub fn dataim(&self) -> DATAIM_R

Bit 0 - 0:0] Data interrupt mask 1: The data received or data requested interrupt is sent to the interrupt controller when the DATARIS bit in the I2CSRIS register is set. 0: The DATARIS interrupt is surpressed and not sent to the interrupt controller.

Source§

impl R<u32, Reg<u32, _RIS>>

Source

pub fn reserved29(&self) -> RESERVED29_R

Bits 3:31 - 31:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn stopris(&self) -> STOPRIS_R

Bit 2 - 2:2] Stop condition raw interrupt status 1: A STOP condition interrupt is pending. 0: No interrupt This bit is cleared by writing 1 to the STOPIC bit in the I2CSICR register.

Source

pub fn startris(&self) -> STARTRIS_R

Bit 1 - 1:1] Start condition raw interrupt status 1: A START condition interrupt is pending. 0: No interrupt This bit is cleared by writing 1 to the STARTIC bit in the I2CSICR register.

Source

pub fn dataris(&self) -> DATARIS_R

Bit 0 - 0:0] Data raw interrupt status 1: A data received or data requested interrupt is pending. 0: No interrupt This bit is cleared by writing 1 to the DATAIC bit in the I2CSICR register.

Source§

impl R<u32, Reg<u32, _MIS>>

Source

pub fn reserved29(&self) -> RESERVED29_R

Bits 3:31 - 31:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn stopmis(&self) -> STOPMIS_R

Bit 2 - 2:2] Stop condition masked interrupt status 1: An unmasked STOP condition interrupt is pending. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the STOPIC bit in the I2CSICR register.

Source

pub fn startmis(&self) -> STARTMIS_R

Bit 1 - 1:1] Start condition masked interrupt status 1: An unmasked START condition interrupt is pending. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the STARTIC bit in the I2CSICR register.

Source

pub fn datamis(&self) -> DATAMIS_R

Bit 0 - 0:0] Data masked interrupt status 1: An unmasked data received or data requested interrupt is pending. 0: An interrupt has not occurred or is masked. This bit is cleared by writing 1 to the DATAIC bit in the I2CSICR register.

Source§

impl R<u32, Reg<u32, _ICR>>

Source

pub fn reserved29(&self) -> RESERVED29_R

Bits 3:31 - 31:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn stopic(&self) -> STOPIC_R

Bit 2 - 2:2] Stop condition interrupt clear Writing 1 to this bit clears the STOPRIS bit in the I2CSRIS register and the STOPMIS bit in the I2CSMIS register. A read of this register returns no meaningful data.

Source

pub fn startic(&self) -> STARTIC_R

Bit 1 - 1:1] Start condition interrupt vlear Writing 1 to this bit clears the STARTRIS bit in the I2CSRIS register and the STARTMIS bit in the I2CSMIS register. A read of this register returns no meaningful data.

Source

pub fn dataic(&self) -> DATAIC_R

Bit 0 - 0:0] Data interrupt clear Writing 1 to this bit clears the DATARIS bit in the I2CSRIS register and the DATAMIS bit in the I2CSMIS register. A read of this register returns no meaningful data.

Source§

impl R<u32, Reg<u32, _CFG>>

Source

pub fn gptmcfg(&self) -> GPTMCFG_R

Bits 0:2 - 2:0] GPTM configuration The GPTMCFG values are defined as follows: 0x0: 32-bit timer configuration. 0x1: 32-bit real-time clock 0x2: Reserved 0x3: Reserved 0x4: 16-bit timer configuration. The function is controlled by bits [1:0] of GPTMTAMR and GPTMTBMR. 0x5-0x7: Reserved

Source§

impl R<u32, Reg<u32, _TAMR>>

Source

pub fn reserved12(&self) -> RESERVED12_R

Bits 12:31 - 31:12] Reserved

Source

pub fn taplo(&self) -> TAPLO_R

Bit 11 - 11:11] Legacy PWM operation 0: Legacy operation 1: CCP is set to 1 on time-out.

Source

pub fn tamrsu(&self) -> TAMRSU_R

Bit 10 - 10:10] Timer A match register update mode 0: Update GPTMAMATCHR and GPTMAPR if used on the next cycle. 1: Update GPTMAMATCHR and GPTMAPR if used on the next time-out. If the timer is disabled (TAEN is clear) when this bit is set, GPTMTAMATCHR and GPTMTAPR are updated when the timer is enabled. If the timer is stalled (TASTALL is set), GPTMTAMATCHR and GPTMTAPR are updated according to the configuration of this bit.

Source

pub fn tapwmie(&self) -> TAPWMIE_R

Bit 9 - 9:9] GPTM Timer A PWM interrupt enable This bit enables interrupts in PWM mode on rising, falling, or both edges of the CCP output. 0: Interrupt is disabled. 1: Interrupt is enabled. This bit is valid only in PWM mode.

Source

pub fn taild(&self) -> TAILD_R

Bit 8 - 8:8] GPTM Timer A PWM interval load write 0: Update the GPTMTAR register with the value in the GPTMTAILR register on the next cycle. If the prescaler is used, update the GPTMTAPS register with the value in the GPTMTAPR register on the next cycle. 1: Update the GPTMTAR register with the value in the GPTMTAILR register on the next cycle. If the prescaler is used, update the GPTMTAPS register with the value in the GPTMTAPR register on the next time-out.

Source

pub fn tasnaps(&self) -> TASNAPS_R

Bit 7 - 7:7] GPTM Timer A snap-shot mode 0: Snap-shot mode is disabled. 1: If Timer A is configured in periodic mode, the actual free-running value of Timer A is loaded at the time-out event into the GPTM Timer A (GPTMTAR) register.

Source

pub fn tawot(&self) -> TAWOT_R

Bit 6 - 6:6] GPTM Timer A wait-on-trigger 0: Timer A begins counting as soon as it is enabled. 1: If Timer A is enabled (TAEN is set in the GPTMCTL register), Timer A does not begin counting until it receives a trigger from the Timer in the previous position in the daisy-chain. This bit must be clear for GP Timer module 0, Timer A.

Source

pub fn tamie(&self) -> TAMIE_R

Bit 5 - 5:5] GPTM Timer A match interrupt enable 0: The match interrupt is disabled. 1: An interrupt is generated when the match value in the GPTMTAMATCHR register is reached in the one-shot and periodic modes.

Source

pub fn tacdir(&self) -> TACDIR_R

Bit 4 - 4:4] GPTM Timer A count direction 0: The timer counts down. 1: The timer counts up. When counting up, the timer starts from a value of 0x0.

Source

pub fn taams(&self) -> TAAMS_R

Bit 3 - 3:3] GPTM Timer A alternate mode 0: Capture mode is enabled. 1: PWM mode is enabled. Note: To enable PWM mode, the TACM bit must be cleared and the TAMR field must be configured to 0x2.

Source

pub fn tacmr(&self) -> TACMR_R

Bit 2 - 2:2] GPTM Timer A capture mode 0: Edge-count mode 1: Edge-time mode

Source

pub fn tamr(&self) -> TAMR_R

Bits 0:1 - 1:0] GPTM Timer A mode 0x0: Reserved 0x1: One-shot mode 0x2: Periodic mode 0x3: Capture mode The timer mode is based on the timer configuration defined by bits [2:0] in the GPTMCFG register.

Source§

impl R<u32, Reg<u32, _TBMR>>

Source

pub fn reserved12(&self) -> RESERVED12_R

Bits 12:31 - 31:12] Reserved

Source

pub fn tbplo(&self) -> TBPLO_R

Bit 11 - 11:11] Legacy PWM operation 0: Legacy operation 1: CCP is set to 1 on time-out.

Source

pub fn tbmrsu(&self) -> TBMRSU_R

Bit 10 - 10:10] Timer B match register update mode 0: Update the GPTMBMATCHR and the GPTMBPR, if used on the next cycle. 1: Update the GPTMBMATCHR and the GPTMBPR, if used on the next time-out. If the timer is disabled (TAEN is clear) when this bit is set, GPTMTBMATCHR and GPTMTBPR are updated when the timer is enabled. If the timer is stalled (TBSTALL is set), GPTMTBMATCHR and GPTMTBPR are updated according to the configuration of this bit.

Source

pub fn tbpwmie(&self) -> TBPWMIE_R

Bit 9 - 9:9] GPTM Timer B PWM interrupt enable This bit enables interrupts in PWM mode on rising, falling, or both edges of the CCP output. 0: Interrupt is disabled. 1: Interrupt is enabled. This bit is valid only in PWM mode.

Source

pub fn tbild(&self) -> TBILD_R

Bit 8 - 8:8] GPTM Timer B PWM interval load write 0: Update the GPTMTBR register with the value in the GPTMTBILR register on the next cycle. If the prescaler is used, update the GPTMTBPS register with the value in the GPTMTBPR register on the next cycle. 1: Update the GPTMTBR register with the value in the GPTMTBILR register on the next cycle. If the prescaler is used, update the GPTMTBPS register with the value in the GPTMTBPR register on the next time-out.

Source

pub fn tbsnaps(&self) -> TBSNAPS_R

Bit 7 - 7:7] GPTM Timer B snap-shot mode 0: Snap-shot mode is disabled. 1: If Timer B is configured in the periodic mode, the actual free-running value of Timer A is loaded into the GPTM Timer B (GPTMTBR) register at the time-out event.

Source

pub fn tbwot(&self) -> TBWOT_R

Bit 6 - 6:6] GPTM Timer B wait-on-trigger 0: Timer B begins counting as soon as it is enabled. 1: If Timer B is enabled (TBEN is set in the GPTMCTL register), Timer B does not begin counting until it receives a trigger from the timer in the previous position in the daisy-chain.

Source

pub fn tbmie(&self) -> TBMIE_R

Bit 5 - 5:5] GPTM Timer B match interrupt enable 0: The match interrupt is disabled. 1: An interrupt is generated when the match value in the GPTMTBMATCHR register is reached in the one-shot and periodic modes.

Source

pub fn tbcdir(&self) -> TBCDIR_R

Bit 4 - 4:4] GPTM Timer B count direction 0: The timer counts down. 1: The timer counts up. When counting up, the timer starts from a value of 0x0.

Source

pub fn tbams(&self) -> TBAMS_R

Bit 3 - 3:3] GPTM Timer B alternate mode 0: Capture mode is enabled. 1: PWM mode is enabled. Note: To enable PWM mode, the TBCM bit must be cleared and the TBMR field must be configured to 0x2.

Source

pub fn tbcmr(&self) -> TBCMR_R

Bit 2 - 2:2] GPTM Timer B capture mode 0: Edge-count mode 1: Edge-time mode

Source

pub fn tbmr(&self) -> TBMR_R

Bits 0:1 - 1:0] GPTM Timer B mode 0x0: Reserved 0x1: One-shot timer mode 0x2: Periodic timer mode 0x3: Capture mode The timer mode is based on the timer configuration defined by bits [2:0] in the GPTMCFG register.

Source§

impl R<u32, Reg<u32, _CTL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 15:31 - 31:15] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbpwml(&self) -> TBPWML_R

Bit 14 - 14:14] GPTM Timer B PWM output level 0: Output is unaffected. 1: Output is inverted.

Source

pub fn tbote(&self) -> TBOTE_R

Bit 13 - 13:13] GPTM Timer B output trigger enable 0: The ADC trigger of output Timer B is disabled. 1: The ADC trigger of output Timer B is enabled.

Source

pub fn reserved13(&self) -> RESERVED13_R

Bit 12 - 12:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbevent(&self) -> TBEVENT_R

Bits 10:11 - 11:10] GPTM Timer B event mode 0x0: Positive edge 0x1: Negative edge 0x2: Reserved 0x3: Both edges

Source

pub fn tbstall(&self) -> TBSTALL_R

Bit 9 - 9:9] GPTM Timer B stall enable 0: Timer B continues counting while the processor is halted by the debugger. 1: Timer B freezes counting while the processor is halted by the debugger.

Source

pub fn tben(&self) -> TBEN_R

Bit 8 - 8:8] GPTM Timer B enable 0: Timer B is disabled. 1: Timer B is enabled and begins counting or the capture logic is enabled based on the GPTMCFG register.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bit 7 - 7:7] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tapwml(&self) -> TAPWML_R

Bit 6 - 6:6] GPTM Timer A PWM output level 0: Output is unaffected. 1: Output is inverted.

Source

pub fn taote(&self) -> TAOTE_R

Bit 5 - 5:5] GPTM Timer A output trigger enable 0: The ADC trigger of output Timer A is disabled. 1: The ADC trigger of output Timer A is enabled.

Source

pub fn reserved4(&self) -> RESERVED4_R

Bit 4 - 4:4] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn taevent(&self) -> TAEVENT_R

Bits 2:3 - 3:2] GPTM Timer A event mode 0x0: Positive edge 0x1: Negative edge 0x2: Reserved 0x3: Both edges

Source

pub fn tastall(&self) -> TASTALL_R

Bit 1 - 1:1] GPTM Timer A stall enable 0: Timer A continues counting while the processor is halted by the debugger. 1: Timer A freezes counting while the processor is halted by the debugger.

Source

pub fn taen(&self) -> TAEN_R

Bit 0 - 0:0] GPTM Timer A enable 0: Timer A is disabled. 1: Timer A is enabled and begins counting or the capture logic is enabled based on the GPTMCFG register.

Source§

impl R<u32, Reg<u32, _SYNC>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn sync3(&self) -> SYNC3_R

Bits 6:7 - 7:6] Synchronize GPTM3 0x0: GPTM3 is not affected. 0x1: A time-out event for Timer A of GPTM3 is triggered. 0x2: A time-out event for Timer B of GPTM3 is triggered. 0x3: A time-out event for Timer A and Timer B of GPTM3 is triggered.

Source

pub fn sync2(&self) -> SYNC2_R

Bits 4:5 - 5:4] Synchronize GPTM2 0x0: GPTM2 is not affected. 0x1: A time-out event for Timer A of GPTM2 is triggered. 0x2: A time-out event for Timer B of GPTM2 is triggered. 0x3: A time-out event for Timer A and Timer B of GPTM2 is triggered.

Source

pub fn sync1(&self) -> SYNC1_R

Bits 2:3 - 3:2] Synchronize GPTM1 0x0: GPTM1 is not affected. 0x1: A time-out event for Timer A of GPTM1 is triggered. 0x2: A time-out event for Timer B of GPTM1 is triggered. 0x3: A time-out event for Timer A and Timer B of GPTM1 is triggered.

Source

pub fn sync0(&self) -> SYNC0_R

Bits 0:1 - 1:0] Synchronize GPTM0 0x0: GPTM0 is not affected. 0x1: A time-out event for Timer A of GPTM0 is triggered. 0x2: A time-out event for Timer B of GPTM0 is triggered. 0x3: A time-out event for Timer A and Timer B of GPTM0 is triggered.

Source§

impl R<u32, Reg<u32, _IMR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 12:31 - 31:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbmim(&self) -> TBMIM_R

Bit 11 - 11:11] GPTM Timer B match interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn cbeim(&self) -> CBEIM_R

Bit 10 - 10:10] GPTM Timer B capture event interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn cbmim(&self) -> CBMIM_R

Bit 9 - 9:9] GPTM Timer B capture match interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn tbtoim(&self) -> TBTOIM_R

Bit 8 - 8:8] GPTM Timer B time-out interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 5:7 - 7:5] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tamim(&self) -> TAMIM_R

Bit 4 - 4:4] GPTM Timer A match interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn reserved3(&self) -> RESERVED3_R

Bit 3 - 3:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn caeim(&self) -> CAEIM_R

Bit 2 - 2:2] GPTM Timer A capture event interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn camim(&self) -> CAMIM_R

Bit 1 - 1:1] GPTM Timer A capture match interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn tatoim(&self) -> TATOIM_R

Bit 0 - 0:0] GPTM Timer A time-out interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source§

impl R<u32, Reg<u32, _RIS>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 12:31 - 31:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbmris(&self) -> TBMRIS_R

Bit 11 - 11:11] GPTM Timer B match raw interrupt

Source

pub fn cberis(&self) -> CBERIS_R

Bit 10 - 10:10] GPTM Timer B capture event raw interrupt

Source

pub fn cbmris(&self) -> CBMRIS_R

Bit 9 - 9:9] GPTM Timer B capture match raw interrupt

Source

pub fn tbtoris(&self) -> TBTORIS_R

Bit 8 - 8:8] GPTM Timer B time-out raw interrupt

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 5:7 - 7:5] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tamris(&self) -> TAMRIS_R

Bit 4 - 4:4] GPTM Timer A match raw interrupt

Source

pub fn reserved3(&self) -> RESERVED3_R

Bit 3 - 3:3] Reserved

Source

pub fn caeris(&self) -> CAERIS_R

Bit 2 - 2:2] GPTM Timer A capture event raw interrupt

Source

pub fn camris(&self) -> CAMRIS_R

Bit 1 - 1:1] GPTM Timer A capture match raw interrupt

Source

pub fn tatoris(&self) -> TATORIS_R

Bit 0 - 0:0] GPTM Timer A time-out raw interrupt

Source§

impl R<u32, Reg<u32, _MIS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 12:31 - 31:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbmmis(&self) -> TBMMIS_R

Bit 11 - 11:11] GPTM Timer B match masked interrupt

Source

pub fn cbemis(&self) -> CBEMIS_R

Bit 10 - 10:10] GPTM Timer B capture event masked interrupt

Source

pub fn cbmmis(&self) -> CBMMIS_R

Bit 9 - 9:9] GPTM Timer B capture match masked interrupt

Source

pub fn tbtomis(&self) -> TBTOMIS_R

Bit 8 - 8:8] GPTM Timer B time-out masked interrupt

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 5:7 - 7:5] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tamris(&self) -> TAMRIS_R

Bit 4 - 4:4] GPTM Timer A match raw interrupt

Source

pub fn reserved3(&self) -> RESERVED3_R

Bit 3 - 3:3] Reserved

Source

pub fn caemis(&self) -> CAEMIS_R

Bit 2 - 2:2] GPTM Timer A capture event raw interrupt

Source

pub fn cammis(&self) -> CAMMIS_R

Bit 1 - 1:1] GPTM Timer A capture match raw interrupt

Source

pub fn tatomis(&self) -> TATOMIS_R

Bit 0 - 0:0] GPTM Timer A time-out raw interrupt

Source§

impl R<u32, Reg<u32, _ICR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 17:31 - 31:17] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn wuecint(&self) -> WUECINT_R

Bit 16 - 16:16] GPTM write update error interrupt clear

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 12:15 - 15:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbmcint(&self) -> TBMCINT_R

Bit 11 - 11:11] GPTM Timer B match interrupt clear

Source

pub fn cbecint(&self) -> CBECINT_R

Bit 10 - 10:10] GPTM Timer B capture event Interrupt clear

Source

pub fn cbmcint(&self) -> CBMCINT_R

Bit 9 - 9:9] GPTM Timer B capture match interrupt clear

Source

pub fn tbtocint(&self) -> TBTOCINT_R

Bit 8 - 8:8] GPTM Timer B time-out interrupt clear

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 5:7 - 7:5] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tamcint(&self) -> TAMCINT_R

Bit 4 - 4:4] GPTM Timer A match interrupt clear

Source

pub fn reserved3(&self) -> RESERVED3_R

Bit 3 - 3:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn caecint(&self) -> CAECINT_R

Bit 2 - 2:2] GPTM Timer A capture event Interrupt clear

Source

pub fn camcint(&self) -> CAMCINT_R

Bit 1 - 1:1] GPTM Timer A capture match interrupt clear

Source

pub fn tatocint(&self) -> TATOCINT_R

Bit 0 - 0:0] GPTM Timer A time-out interrupt clear

Source§

impl R<u32, Reg<u32, _TAILR>>

Source

pub fn tailr(&self) -> TAILR_R

Bits 0:31 - 31:0] GPTM A interval load register

Source§

impl R<u32, Reg<u32, _TBILR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbilr(&self) -> TBILR_R

Bits 0:15 - 15:0] GPTM B interval load register

Source§

impl R<u32, Reg<u32, _TAMATCHR>>

Source

pub fn tamr(&self) -> TAMR_R

Bits 0:31 - 31:0] GPTM Timer A match register

Source§

impl R<u32, Reg<u32, _TBMATCHR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbmr(&self) -> TBMR_R

Bits 0:15 - 15:0] GPTM Timer B match register

Source§

impl R<u32, Reg<u32, _TAPR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tapsr(&self) -> TAPSR_R

Bits 0:7 - 7:0] GPTM Timer A prescale

Source§

impl R<u32, Reg<u32, _TBPR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbpsr(&self) -> TBPSR_R

Bits 0:7 - 7:0] GPTM Timer B prescale

Source§

impl R<u32, Reg<u32, _TAPMR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tapsr(&self) -> TAPSR_R

Bits 0:7 - 7:0] GPTM Timer A prescale match

Source§

impl R<u32, Reg<u32, _TBPMR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbpsr(&self) -> TBPSR_R

Bits 0:7 - 7:0] GPTM Timer B prescale match

Source§

impl R<u32, Reg<u32, _TAR>>

Source

pub fn tar(&self) -> TAR_R

Bits 0:31 - 31:0] GPTM Timer A register

Source§

impl R<u32, Reg<u32, _TBR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbr(&self) -> TBR_R

Bits 0:15 - 15:0] GPTM Timer B register

Source§

impl R<u32, Reg<u32, _TAV>>

Source

pub fn tav(&self) -> TAV_R

Bits 0:31 - 31:0] GPTM Timer A register

Source§

impl R<u32, Reg<u32, _TBV>>

Source

pub fn pre(&self) -> PRE_R

Bits 16:23 - 23:16] GPTM Timer B prescale register (16-bit mode)

Source

pub fn tbv(&self) -> TBV_R

Bits 0:15 - 15:0] GPTM Timer B register

Source§

impl R<u32, Reg<u32, _TAPS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn pss(&self) -> PSS_R

Bits 0:15 - 15:0] GPTM Timer A prescaler

Source§

impl R<u32, Reg<u32, _TBPS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn pss(&self) -> PSS_R

Bits 0:15 - 15:0] GPTM Timer B prescaler

Source§

impl R<u32, Reg<u32, _TAPV>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn psv(&self) -> PSV_R

Bits 0:15 - 15:0] GPTM Timer A prescaler value

Source§

impl R<u32, Reg<u32, _TBPV>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn psv(&self) -> PSV_R

Bits 0:15 - 15:0] GPTM Timer B prescaler value

Source§

impl R<u32, Reg<u32, _PP>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 7:31 - 31:7] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn altclk(&self) -> ALTCLK_R

Bit 6 - 6:6] Alternate clock source 0: Timer is not capable of using an alternate clock. 1: Timer is capable of using an alternate clock.

Source

pub fn syncnt(&self) -> SYNCNT_R

Bit 5 - 5:5] Synchronized start 0: Timer is not capable of synchronizing the count value with other timers. 1: Timer is capable of synchronizing the count value with other timers.

Source

pub fn chain(&self) -> CHAIN_R

Bit 4 - 4:4] Chain with other timers 0: Timer is not capable of chaining with previously numbered Timers. 1: Timer is capable of chaining with previously numbered timers.

Source

pub fn size(&self) -> SIZE_R

Bits 0:3 - 3:0] Timer size 0: Timer A and Timer B are 16 bits wide with 8-bit prescale. 1: Timer A and Timer B are 32 bits wide with 16-bit prescale.

Source§

impl R<u32, Reg<u32, _CFG>>

Source

pub fn gptmcfg(&self) -> GPTMCFG_R

Bits 0:2 - 2:0] GPTM configuration The GPTMCFG values are defined as follows: 0x0: 32-bit timer configuration. 0x1: 32-bit real-time clock 0x2: Reserved 0x3: Reserved 0x4: 16-bit timer configuration. The function is controlled by bits [1:0] of GPTMTAMR and GPTMTBMR. 0x5-0x7: Reserved

Source§

impl R<u32, Reg<u32, _TAMR>>

Source

pub fn reserved12(&self) -> RESERVED12_R

Bits 12:31 - 31:12] Reserved

Source

pub fn taplo(&self) -> TAPLO_R

Bit 11 - 11:11] Legacy PWM operation 0: Legacy operation 1: CCP is set to 1 on time-out.

Source

pub fn tamrsu(&self) -> TAMRSU_R

Bit 10 - 10:10] Timer A match register update mode 0: Update GPTMAMATCHR and GPTMAPR if used on the next cycle. 1: Update GPTMAMATCHR and GPTMAPR if used on the next time-out. If the timer is disabled (TAEN is clear) when this bit is set, GPTMTAMATCHR and GPTMTAPR are updated when the timer is enabled. If the timer is stalled (TASTALL is set), GPTMTAMATCHR and GPTMTAPR are updated according to the configuration of this bit.

Source

pub fn tapwmie(&self) -> TAPWMIE_R

Bit 9 - 9:9] GPTM Timer A PWM interrupt enable This bit enables interrupts in PWM mode on rising, falling, or both edges of the CCP output. 0: Interrupt is disabled. 1: Interrupt is enabled. This bit is valid only in PWM mode.

Source

pub fn taild(&self) -> TAILD_R

Bit 8 - 8:8] GPTM Timer A PWM interval load write 0: Update the GPTMTAR register with the value in the GPTMTAILR register on the next cycle. If the prescaler is used, update the GPTMTAPS register with the value in the GPTMTAPR register on the next cycle. 1: Update the GPTMTAR register with the value in the GPTMTAILR register on the next cycle. If the prescaler is used, update the GPTMTAPS register with the value in the GPTMTAPR register on the next time-out.

Source

pub fn tasnaps(&self) -> TASNAPS_R

Bit 7 - 7:7] GPTM Timer A snap-shot mode 0: Snap-shot mode is disabled. 1: If Timer A is configured in periodic mode, the actual free-running value of Timer A is loaded at the time-out event into the GPTM Timer A (GPTMTAR) register.

Source

pub fn tawot(&self) -> TAWOT_R

Bit 6 - 6:6] GPTM Timer A wait-on-trigger 0: Timer A begins counting as soon as it is enabled. 1: If Timer A is enabled (TAEN is set in the GPTMCTL register), Timer A does not begin counting until it receives a trigger from the Timer in the previous position in the daisy-chain. This bit must be clear for GP Timer module 0, Timer A.

Source

pub fn tamie(&self) -> TAMIE_R

Bit 5 - 5:5] GPTM Timer A match interrupt enable 0: The match interrupt is disabled. 1: An interrupt is generated when the match value in the GPTMTAMATCHR register is reached in the one-shot and periodic modes.

Source

pub fn tacdir(&self) -> TACDIR_R

Bit 4 - 4:4] GPTM Timer A count direction 0: The timer counts down. 1: The timer counts up. When counting up, the timer starts from a value of 0x0.

Source

pub fn taams(&self) -> TAAMS_R

Bit 3 - 3:3] GPTM Timer A alternate mode 0: Capture mode is enabled. 1: PWM mode is enabled. Note: To enable PWM mode, the TACM bit must be cleared and the TAMR field must be configured to 0x2.

Source

pub fn tacmr(&self) -> TACMR_R

Bit 2 - 2:2] GPTM Timer A capture mode 0: Edge-count mode 1: Edge-time mode

Source

pub fn tamr(&self) -> TAMR_R

Bits 0:1 - 1:0] GPTM Timer A mode 0x0: Reserved 0x1: One-shot mode 0x2: Periodic mode 0x3: Capture mode The timer mode is based on the timer configuration defined by bits [2:0] in the GPTMCFG register.

Source§

impl R<u32, Reg<u32, _TBMR>>

Source

pub fn reserved12(&self) -> RESERVED12_R

Bits 12:31 - 31:12] Reserved

Source

pub fn tbplo(&self) -> TBPLO_R

Bit 11 - 11:11] Legacy PWM operation 0: Legacy operation 1: CCP is set to 1 on time-out.

Source

pub fn tbmrsu(&self) -> TBMRSU_R

Bit 10 - 10:10] Timer B match register update mode 0: Update the GPTMBMATCHR and the GPTMBPR, if used on the next cycle. 1: Update the GPTMBMATCHR and the GPTMBPR, if used on the next time-out. If the timer is disabled (TAEN is clear) when this bit is set, GPTMTBMATCHR and GPTMTBPR are updated when the timer is enabled. If the timer is stalled (TBSTALL is set), GPTMTBMATCHR and GPTMTBPR are updated according to the configuration of this bit.

Source

pub fn tbpwmie(&self) -> TBPWMIE_R

Bit 9 - 9:9] GPTM Timer B PWM interrupt enable This bit enables interrupts in PWM mode on rising, falling, or both edges of the CCP output. 0: Interrupt is disabled. 1: Interrupt is enabled. This bit is valid only in PWM mode.

Source

pub fn tbild(&self) -> TBILD_R

Bit 8 - 8:8] GPTM Timer B PWM interval load write 0: Update the GPTMTBR register with the value in the GPTMTBILR register on the next cycle. If the prescaler is used, update the GPTMTBPS register with the value in the GPTMTBPR register on the next cycle. 1: Update the GPTMTBR register with the value in the GPTMTBILR register on the next cycle. If the prescaler is used, update the GPTMTBPS register with the value in the GPTMTBPR register on the next time-out.

Source

pub fn tbsnaps(&self) -> TBSNAPS_R

Bit 7 - 7:7] GPTM Timer B snap-shot mode 0: Snap-shot mode is disabled. 1: If Timer B is configured in the periodic mode, the actual free-running value of Timer A is loaded into the GPTM Timer B (GPTMTBR) register at the time-out event.

Source

pub fn tbwot(&self) -> TBWOT_R

Bit 6 - 6:6] GPTM Timer B wait-on-trigger 0: Timer B begins counting as soon as it is enabled. 1: If Timer B is enabled (TBEN is set in the GPTMCTL register), Timer B does not begin counting until it receives a trigger from the timer in the previous position in the daisy-chain.

Source

pub fn tbmie(&self) -> TBMIE_R

Bit 5 - 5:5] GPTM Timer B match interrupt enable 0: The match interrupt is disabled. 1: An interrupt is generated when the match value in the GPTMTBMATCHR register is reached in the one-shot and periodic modes.

Source

pub fn tbcdir(&self) -> TBCDIR_R

Bit 4 - 4:4] GPTM Timer B count direction 0: The timer counts down. 1: The timer counts up. When counting up, the timer starts from a value of 0x0.

Source

pub fn tbams(&self) -> TBAMS_R

Bit 3 - 3:3] GPTM Timer B alternate mode 0: Capture mode is enabled. 1: PWM mode is enabled. Note: To enable PWM mode, the TBCM bit must be cleared and the TBMR field must be configured to 0x2.

Source

pub fn tbcmr(&self) -> TBCMR_R

Bit 2 - 2:2] GPTM Timer B capture mode 0: Edge-count mode 1: Edge-time mode

Source

pub fn tbmr(&self) -> TBMR_R

Bits 0:1 - 1:0] GPTM Timer B mode 0x0: Reserved 0x1: One-shot timer mode 0x2: Periodic timer mode 0x3: Capture mode The timer mode is based on the timer configuration defined by bits [2:0] in the GPTMCFG register.

Source§

impl R<u32, Reg<u32, _CTL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 15:31 - 31:15] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbpwml(&self) -> TBPWML_R

Bit 14 - 14:14] GPTM Timer B PWM output level 0: Output is unaffected. 1: Output is inverted.

Source

pub fn tbote(&self) -> TBOTE_R

Bit 13 - 13:13] GPTM Timer B output trigger enable 0: The ADC trigger of output Timer B is disabled. 1: The ADC trigger of output Timer B is enabled.

Source

pub fn reserved13(&self) -> RESERVED13_R

Bit 12 - 12:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbevent(&self) -> TBEVENT_R

Bits 10:11 - 11:10] GPTM Timer B event mode 0x0: Positive edge 0x1: Negative edge 0x2: Reserved 0x3: Both edges

Source

pub fn tbstall(&self) -> TBSTALL_R

Bit 9 - 9:9] GPTM Timer B stall enable 0: Timer B continues counting while the processor is halted by the debugger. 1: Timer B freezes counting while the processor is halted by the debugger.

Source

pub fn tben(&self) -> TBEN_R

Bit 8 - 8:8] GPTM Timer B enable 0: Timer B is disabled. 1: Timer B is enabled and begins counting or the capture logic is enabled based on the GPTMCFG register.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bit 7 - 7:7] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tapwml(&self) -> TAPWML_R

Bit 6 - 6:6] GPTM Timer A PWM output level 0: Output is unaffected. 1: Output is inverted.

Source

pub fn taote(&self) -> TAOTE_R

Bit 5 - 5:5] GPTM Timer A output trigger enable 0: The ADC trigger of output Timer A is disabled. 1: The ADC trigger of output Timer A is enabled.

Source

pub fn reserved4(&self) -> RESERVED4_R

Bit 4 - 4:4] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn taevent(&self) -> TAEVENT_R

Bits 2:3 - 3:2] GPTM Timer A event mode 0x0: Positive edge 0x1: Negative edge 0x2: Reserved 0x3: Both edges

Source

pub fn tastall(&self) -> TASTALL_R

Bit 1 - 1:1] GPTM Timer A stall enable 0: Timer A continues counting while the processor is halted by the debugger. 1: Timer A freezes counting while the processor is halted by the debugger.

Source

pub fn taen(&self) -> TAEN_R

Bit 0 - 0:0] GPTM Timer A enable 0: Timer A is disabled. 1: Timer A is enabled and begins counting or the capture logic is enabled based on the GPTMCFG register.

Source§

impl R<u32, Reg<u32, _SYNC>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn sync3(&self) -> SYNC3_R

Bits 6:7 - 7:6] Synchronize GPTM3 0x0: GPTM3 is not affected. 0x1: A time-out event for Timer A of GPTM3 is triggered. 0x2: A time-out event for Timer B of GPTM3 is triggered. 0x3: A time-out event for Timer A and Timer B of GPTM3 is triggered.

Source

pub fn sync2(&self) -> SYNC2_R

Bits 4:5 - 5:4] Synchronize GPTM2 0x0: GPTM2 is not affected. 0x1: A time-out event for Timer A of GPTM2 is triggered. 0x2: A time-out event for Timer B of GPTM2 is triggered. 0x3: A time-out event for Timer A and Timer B of GPTM2 is triggered.

Source

pub fn sync1(&self) -> SYNC1_R

Bits 2:3 - 3:2] Synchronize GPTM1 0x0: GPTM1 is not affected. 0x1: A time-out event for Timer A of GPTM1 is triggered. 0x2: A time-out event for Timer B of GPTM1 is triggered. 0x3: A time-out event for Timer A and Timer B of GPTM1 is triggered.

Source

pub fn sync0(&self) -> SYNC0_R

Bits 0:1 - 1:0] Synchronize GPTM0 0x0: GPTM0 is not affected. 0x1: A time-out event for Timer A of GPTM0 is triggered. 0x2: A time-out event for Timer B of GPTM0 is triggered. 0x3: A time-out event for Timer A and Timer B of GPTM0 is triggered.

Source§

impl R<u32, Reg<u32, _IMR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 12:31 - 31:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbmim(&self) -> TBMIM_R

Bit 11 - 11:11] GPTM Timer B match interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn cbeim(&self) -> CBEIM_R

Bit 10 - 10:10] GPTM Timer B capture event interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn cbmim(&self) -> CBMIM_R

Bit 9 - 9:9] GPTM Timer B capture match interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn tbtoim(&self) -> TBTOIM_R

Bit 8 - 8:8] GPTM Timer B time-out interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 5:7 - 7:5] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tamim(&self) -> TAMIM_R

Bit 4 - 4:4] GPTM Timer A match interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn reserved3(&self) -> RESERVED3_R

Bit 3 - 3:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn caeim(&self) -> CAEIM_R

Bit 2 - 2:2] GPTM Timer A capture event interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn camim(&self) -> CAMIM_R

Bit 1 - 1:1] GPTM Timer A capture match interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn tatoim(&self) -> TATOIM_R

Bit 0 - 0:0] GPTM Timer A time-out interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source§

impl R<u32, Reg<u32, _RIS>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 12:31 - 31:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbmris(&self) -> TBMRIS_R

Bit 11 - 11:11] GPTM Timer B match raw interrupt

Source

pub fn cberis(&self) -> CBERIS_R

Bit 10 - 10:10] GPTM Timer B capture event raw interrupt

Source

pub fn cbmris(&self) -> CBMRIS_R

Bit 9 - 9:9] GPTM Timer B capture match raw interrupt

Source

pub fn tbtoris(&self) -> TBTORIS_R

Bit 8 - 8:8] GPTM Timer B time-out raw interrupt

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 5:7 - 7:5] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tamris(&self) -> TAMRIS_R

Bit 4 - 4:4] GPTM Timer A match raw interrupt

Source

pub fn reserved3(&self) -> RESERVED3_R

Bit 3 - 3:3] Reserved

Source

pub fn caeris(&self) -> CAERIS_R

Bit 2 - 2:2] GPTM Timer A capture event raw interrupt

Source

pub fn camris(&self) -> CAMRIS_R

Bit 1 - 1:1] GPTM Timer A capture match raw interrupt

Source

pub fn tatoris(&self) -> TATORIS_R

Bit 0 - 0:0] GPTM Timer A time-out raw interrupt

Source§

impl R<u32, Reg<u32, _MIS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 12:31 - 31:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbmmis(&self) -> TBMMIS_R

Bit 11 - 11:11] GPTM Timer B match masked interrupt

Source

pub fn cbemis(&self) -> CBEMIS_R

Bit 10 - 10:10] GPTM Timer B capture event masked interrupt

Source

pub fn cbmmis(&self) -> CBMMIS_R

Bit 9 - 9:9] GPTM Timer B capture match masked interrupt

Source

pub fn tbtomis(&self) -> TBTOMIS_R

Bit 8 - 8:8] GPTM Timer B time-out masked interrupt

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 5:7 - 7:5] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tamris(&self) -> TAMRIS_R

Bit 4 - 4:4] GPTM Timer A match raw interrupt

Source

pub fn reserved3(&self) -> RESERVED3_R

Bit 3 - 3:3] Reserved

Source

pub fn caemis(&self) -> CAEMIS_R

Bit 2 - 2:2] GPTM Timer A capture event raw interrupt

Source

pub fn cammis(&self) -> CAMMIS_R

Bit 1 - 1:1] GPTM Timer A capture match raw interrupt

Source

pub fn tatomis(&self) -> TATOMIS_R

Bit 0 - 0:0] GPTM Timer A time-out raw interrupt

Source§

impl R<u32, Reg<u32, _ICR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 17:31 - 31:17] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn wuecint(&self) -> WUECINT_R

Bit 16 - 16:16] GPTM write update error interrupt clear

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 12:15 - 15:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbmcint(&self) -> TBMCINT_R

Bit 11 - 11:11] GPTM Timer B match interrupt clear

Source

pub fn cbecint(&self) -> CBECINT_R

Bit 10 - 10:10] GPTM Timer B capture event Interrupt clear

Source

pub fn cbmcint(&self) -> CBMCINT_R

Bit 9 - 9:9] GPTM Timer B capture match interrupt clear

Source

pub fn tbtocint(&self) -> TBTOCINT_R

Bit 8 - 8:8] GPTM Timer B time-out interrupt clear

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 5:7 - 7:5] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tamcint(&self) -> TAMCINT_R

Bit 4 - 4:4] GPTM Timer A match interrupt clear

Source

pub fn reserved3(&self) -> RESERVED3_R

Bit 3 - 3:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn caecint(&self) -> CAECINT_R

Bit 2 - 2:2] GPTM Timer A capture event Interrupt clear

Source

pub fn camcint(&self) -> CAMCINT_R

Bit 1 - 1:1] GPTM Timer A capture match interrupt clear

Source

pub fn tatocint(&self) -> TATOCINT_R

Bit 0 - 0:0] GPTM Timer A time-out interrupt clear

Source§

impl R<u32, Reg<u32, _TAILR>>

Source

pub fn tailr(&self) -> TAILR_R

Bits 0:31 - 31:0] GPTM A interval load register

Source§

impl R<u32, Reg<u32, _TBILR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbilr(&self) -> TBILR_R

Bits 0:15 - 15:0] GPTM B interval load register

Source§

impl R<u32, Reg<u32, _TAMATCHR>>

Source

pub fn tamr(&self) -> TAMR_R

Bits 0:31 - 31:0] GPTM Timer A match register

Source§

impl R<u32, Reg<u32, _TBMATCHR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbmr(&self) -> TBMR_R

Bits 0:15 - 15:0] GPTM Timer B match register

Source§

impl R<u32, Reg<u32, _TAPR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tapsr(&self) -> TAPSR_R

Bits 0:7 - 7:0] GPTM Timer A prescale

Source§

impl R<u32, Reg<u32, _TBPR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbpsr(&self) -> TBPSR_R

Bits 0:7 - 7:0] GPTM Timer B prescale

Source§

impl R<u32, Reg<u32, _TAPMR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tapsr(&self) -> TAPSR_R

Bits 0:7 - 7:0] GPTM Timer A prescale match

Source§

impl R<u32, Reg<u32, _TBPMR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbpsr(&self) -> TBPSR_R

Bits 0:7 - 7:0] GPTM Timer B prescale match

Source§

impl R<u32, Reg<u32, _TAR>>

Source

pub fn tar(&self) -> TAR_R

Bits 0:31 - 31:0] GPTM Timer A register

Source§

impl R<u32, Reg<u32, _TBR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbr(&self) -> TBR_R

Bits 0:15 - 15:0] GPTM Timer B register

Source§

impl R<u32, Reg<u32, _TAV>>

Source

pub fn tav(&self) -> TAV_R

Bits 0:31 - 31:0] GPTM Timer A register

Source§

impl R<u32, Reg<u32, _TBV>>

Source

pub fn pre(&self) -> PRE_R

Bits 16:23 - 23:16] GPTM Timer B prescale register (16-bit mode)

Source

pub fn tbv(&self) -> TBV_R

Bits 0:15 - 15:0] GPTM Timer B register

Source§

impl R<u32, Reg<u32, _TAPS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn pss(&self) -> PSS_R

Bits 0:15 - 15:0] GPTM Timer A prescaler

Source§

impl R<u32, Reg<u32, _TBPS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn pss(&self) -> PSS_R

Bits 0:15 - 15:0] GPTM Timer B prescaler

Source§

impl R<u32, Reg<u32, _TAPV>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn psv(&self) -> PSV_R

Bits 0:15 - 15:0] GPTM Timer A prescaler value

Source§

impl R<u32, Reg<u32, _TBPV>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn psv(&self) -> PSV_R

Bits 0:15 - 15:0] GPTM Timer B prescaler value

Source§

impl R<u32, Reg<u32, _PP>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 7:31 - 31:7] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn altclk(&self) -> ALTCLK_R

Bit 6 - 6:6] Alternate clock source 0: Timer is not capable of using an alternate clock. 1: Timer is capable of using an alternate clock.

Source

pub fn syncnt(&self) -> SYNCNT_R

Bit 5 - 5:5] Synchronized start 0: Timer is not capable of synchronizing the count value with other timers. 1: Timer is capable of synchronizing the count value with other timers.

Source

pub fn chain(&self) -> CHAIN_R

Bit 4 - 4:4] Chain with other timers 0: Timer is not capable of chaining with previously numbered Timers. 1: Timer is capable of chaining with previously numbered timers.

Source

pub fn size(&self) -> SIZE_R

Bits 0:3 - 3:0] Timer size 0: Timer A and Timer B are 16 bits wide with 8-bit prescale. 1: Timer A and Timer B are 32 bits wide with 16-bit prescale.

Source§

impl R<u32, Reg<u32, _CFG>>

Source

pub fn gptmcfg(&self) -> GPTMCFG_R

Bits 0:2 - 2:0] GPTM configuration The GPTMCFG values are defined as follows: 0x0: 32-bit timer configuration. 0x1: 32-bit real-time clock 0x2: Reserved 0x3: Reserved 0x4: 16-bit timer configuration. The function is controlled by bits [1:0] of GPTMTAMR and GPTMTBMR. 0x5-0x7: Reserved

Source§

impl R<u32, Reg<u32, _TAMR>>

Source

pub fn reserved12(&self) -> RESERVED12_R

Bits 12:31 - 31:12] Reserved

Source

pub fn taplo(&self) -> TAPLO_R

Bit 11 - 11:11] Legacy PWM operation 0: Legacy operation 1: CCP is set to 1 on time-out.

Source

pub fn tamrsu(&self) -> TAMRSU_R

Bit 10 - 10:10] Timer A match register update mode 0: Update GPTMAMATCHR and GPTMAPR if used on the next cycle. 1: Update GPTMAMATCHR and GPTMAPR if used on the next time-out. If the timer is disabled (TAEN is clear) when this bit is set, GPTMTAMATCHR and GPTMTAPR are updated when the timer is enabled. If the timer is stalled (TASTALL is set), GPTMTAMATCHR and GPTMTAPR are updated according to the configuration of this bit.

Source

pub fn tapwmie(&self) -> TAPWMIE_R

Bit 9 - 9:9] GPTM Timer A PWM interrupt enable This bit enables interrupts in PWM mode on rising, falling, or both edges of the CCP output. 0: Interrupt is disabled. 1: Interrupt is enabled. This bit is valid only in PWM mode.

Source

pub fn taild(&self) -> TAILD_R

Bit 8 - 8:8] GPTM Timer A PWM interval load write 0: Update the GPTMTAR register with the value in the GPTMTAILR register on the next cycle. If the prescaler is used, update the GPTMTAPS register with the value in the GPTMTAPR register on the next cycle. 1: Update the GPTMTAR register with the value in the GPTMTAILR register on the next cycle. If the prescaler is used, update the GPTMTAPS register with the value in the GPTMTAPR register on the next time-out.

Source

pub fn tasnaps(&self) -> TASNAPS_R

Bit 7 - 7:7] GPTM Timer A snap-shot mode 0: Snap-shot mode is disabled. 1: If Timer A is configured in periodic mode, the actual free-running value of Timer A is loaded at the time-out event into the GPTM Timer A (GPTMTAR) register.

Source

pub fn tawot(&self) -> TAWOT_R

Bit 6 - 6:6] GPTM Timer A wait-on-trigger 0: Timer A begins counting as soon as it is enabled. 1: If Timer A is enabled (TAEN is set in the GPTMCTL register), Timer A does not begin counting until it receives a trigger from the Timer in the previous position in the daisy-chain. This bit must be clear for GP Timer module 0, Timer A.

Source

pub fn tamie(&self) -> TAMIE_R

Bit 5 - 5:5] GPTM Timer A match interrupt enable 0: The match interrupt is disabled. 1: An interrupt is generated when the match value in the GPTMTAMATCHR register is reached in the one-shot and periodic modes.

Source

pub fn tacdir(&self) -> TACDIR_R

Bit 4 - 4:4] GPTM Timer A count direction 0: The timer counts down. 1: The timer counts up. When counting up, the timer starts from a value of 0x0.

Source

pub fn taams(&self) -> TAAMS_R

Bit 3 - 3:3] GPTM Timer A alternate mode 0: Capture mode is enabled. 1: PWM mode is enabled. Note: To enable PWM mode, the TACM bit must be cleared and the TAMR field must be configured to 0x2.

Source

pub fn tacmr(&self) -> TACMR_R

Bit 2 - 2:2] GPTM Timer A capture mode 0: Edge-count mode 1: Edge-time mode

Source

pub fn tamr(&self) -> TAMR_R

Bits 0:1 - 1:0] GPTM Timer A mode 0x0: Reserved 0x1: One-shot mode 0x2: Periodic mode 0x3: Capture mode The timer mode is based on the timer configuration defined by bits [2:0] in the GPTMCFG register.

Source§

impl R<u32, Reg<u32, _TBMR>>

Source

pub fn reserved12(&self) -> RESERVED12_R

Bits 12:31 - 31:12] Reserved

Source

pub fn tbplo(&self) -> TBPLO_R

Bit 11 - 11:11] Legacy PWM operation 0: Legacy operation 1: CCP is set to 1 on time-out.

Source

pub fn tbmrsu(&self) -> TBMRSU_R

Bit 10 - 10:10] Timer B match register update mode 0: Update the GPTMBMATCHR and the GPTMBPR, if used on the next cycle. 1: Update the GPTMBMATCHR and the GPTMBPR, if used on the next time-out. If the timer is disabled (TAEN is clear) when this bit is set, GPTMTBMATCHR and GPTMTBPR are updated when the timer is enabled. If the timer is stalled (TBSTALL is set), GPTMTBMATCHR and GPTMTBPR are updated according to the configuration of this bit.

Source

pub fn tbpwmie(&self) -> TBPWMIE_R

Bit 9 - 9:9] GPTM Timer B PWM interrupt enable This bit enables interrupts in PWM mode on rising, falling, or both edges of the CCP output. 0: Interrupt is disabled. 1: Interrupt is enabled. This bit is valid only in PWM mode.

Source

pub fn tbild(&self) -> TBILD_R

Bit 8 - 8:8] GPTM Timer B PWM interval load write 0: Update the GPTMTBR register with the value in the GPTMTBILR register on the next cycle. If the prescaler is used, update the GPTMTBPS register with the value in the GPTMTBPR register on the next cycle. 1: Update the GPTMTBR register with the value in the GPTMTBILR register on the next cycle. If the prescaler is used, update the GPTMTBPS register with the value in the GPTMTBPR register on the next time-out.

Source

pub fn tbsnaps(&self) -> TBSNAPS_R

Bit 7 - 7:7] GPTM Timer B snap-shot mode 0: Snap-shot mode is disabled. 1: If Timer B is configured in the periodic mode, the actual free-running value of Timer A is loaded into the GPTM Timer B (GPTMTBR) register at the time-out event.

Source

pub fn tbwot(&self) -> TBWOT_R

Bit 6 - 6:6] GPTM Timer B wait-on-trigger 0: Timer B begins counting as soon as it is enabled. 1: If Timer B is enabled (TBEN is set in the GPTMCTL register), Timer B does not begin counting until it receives a trigger from the timer in the previous position in the daisy-chain.

Source

pub fn tbmie(&self) -> TBMIE_R

Bit 5 - 5:5] GPTM Timer B match interrupt enable 0: The match interrupt is disabled. 1: An interrupt is generated when the match value in the GPTMTBMATCHR register is reached in the one-shot and periodic modes.

Source

pub fn tbcdir(&self) -> TBCDIR_R

Bit 4 - 4:4] GPTM Timer B count direction 0: The timer counts down. 1: The timer counts up. When counting up, the timer starts from a value of 0x0.

Source

pub fn tbams(&self) -> TBAMS_R

Bit 3 - 3:3] GPTM Timer B alternate mode 0: Capture mode is enabled. 1: PWM mode is enabled. Note: To enable PWM mode, the TBCM bit must be cleared and the TBMR field must be configured to 0x2.

Source

pub fn tbcmr(&self) -> TBCMR_R

Bit 2 - 2:2] GPTM Timer B capture mode 0: Edge-count mode 1: Edge-time mode

Source

pub fn tbmr(&self) -> TBMR_R

Bits 0:1 - 1:0] GPTM Timer B mode 0x0: Reserved 0x1: One-shot timer mode 0x2: Periodic timer mode 0x3: Capture mode The timer mode is based on the timer configuration defined by bits [2:0] in the GPTMCFG register.

Source§

impl R<u32, Reg<u32, _CTL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 15:31 - 31:15] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbpwml(&self) -> TBPWML_R

Bit 14 - 14:14] GPTM Timer B PWM output level 0: Output is unaffected. 1: Output is inverted.

Source

pub fn tbote(&self) -> TBOTE_R

Bit 13 - 13:13] GPTM Timer B output trigger enable 0: The ADC trigger of output Timer B is disabled. 1: The ADC trigger of output Timer B is enabled.

Source

pub fn reserved13(&self) -> RESERVED13_R

Bit 12 - 12:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbevent(&self) -> TBEVENT_R

Bits 10:11 - 11:10] GPTM Timer B event mode 0x0: Positive edge 0x1: Negative edge 0x2: Reserved 0x3: Both edges

Source

pub fn tbstall(&self) -> TBSTALL_R

Bit 9 - 9:9] GPTM Timer B stall enable 0: Timer B continues counting while the processor is halted by the debugger. 1: Timer B freezes counting while the processor is halted by the debugger.

Source

pub fn tben(&self) -> TBEN_R

Bit 8 - 8:8] GPTM Timer B enable 0: Timer B is disabled. 1: Timer B is enabled and begins counting or the capture logic is enabled based on the GPTMCFG register.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bit 7 - 7:7] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tapwml(&self) -> TAPWML_R

Bit 6 - 6:6] GPTM Timer A PWM output level 0: Output is unaffected. 1: Output is inverted.

Source

pub fn taote(&self) -> TAOTE_R

Bit 5 - 5:5] GPTM Timer A output trigger enable 0: The ADC trigger of output Timer A is disabled. 1: The ADC trigger of output Timer A is enabled.

Source

pub fn reserved4(&self) -> RESERVED4_R

Bit 4 - 4:4] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn taevent(&self) -> TAEVENT_R

Bits 2:3 - 3:2] GPTM Timer A event mode 0x0: Positive edge 0x1: Negative edge 0x2: Reserved 0x3: Both edges

Source

pub fn tastall(&self) -> TASTALL_R

Bit 1 - 1:1] GPTM Timer A stall enable 0: Timer A continues counting while the processor is halted by the debugger. 1: Timer A freezes counting while the processor is halted by the debugger.

Source

pub fn taen(&self) -> TAEN_R

Bit 0 - 0:0] GPTM Timer A enable 0: Timer A is disabled. 1: Timer A is enabled and begins counting or the capture logic is enabled based on the GPTMCFG register.

Source§

impl R<u32, Reg<u32, _SYNC>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn sync3(&self) -> SYNC3_R

Bits 6:7 - 7:6] Synchronize GPTM3 0x0: GPTM3 is not affected. 0x1: A time-out event for Timer A of GPTM3 is triggered. 0x2: A time-out event for Timer B of GPTM3 is triggered. 0x3: A time-out event for Timer A and Timer B of GPTM3 is triggered.

Source

pub fn sync2(&self) -> SYNC2_R

Bits 4:5 - 5:4] Synchronize GPTM2 0x0: GPTM2 is not affected. 0x1: A time-out event for Timer A of GPTM2 is triggered. 0x2: A time-out event for Timer B of GPTM2 is triggered. 0x3: A time-out event for Timer A and Timer B of GPTM2 is triggered.

Source

pub fn sync1(&self) -> SYNC1_R

Bits 2:3 - 3:2] Synchronize GPTM1 0x0: GPTM1 is not affected. 0x1: A time-out event for Timer A of GPTM1 is triggered. 0x2: A time-out event for Timer B of GPTM1 is triggered. 0x3: A time-out event for Timer A and Timer B of GPTM1 is triggered.

Source

pub fn sync0(&self) -> SYNC0_R

Bits 0:1 - 1:0] Synchronize GPTM0 0x0: GPTM0 is not affected. 0x1: A time-out event for Timer A of GPTM0 is triggered. 0x2: A time-out event for Timer B of GPTM0 is triggered. 0x3: A time-out event for Timer A and Timer B of GPTM0 is triggered.

Source§

impl R<u32, Reg<u32, _IMR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 12:31 - 31:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbmim(&self) -> TBMIM_R

Bit 11 - 11:11] GPTM Timer B match interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn cbeim(&self) -> CBEIM_R

Bit 10 - 10:10] GPTM Timer B capture event interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn cbmim(&self) -> CBMIM_R

Bit 9 - 9:9] GPTM Timer B capture match interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn tbtoim(&self) -> TBTOIM_R

Bit 8 - 8:8] GPTM Timer B time-out interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 5:7 - 7:5] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tamim(&self) -> TAMIM_R

Bit 4 - 4:4] GPTM Timer A match interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn reserved3(&self) -> RESERVED3_R

Bit 3 - 3:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn caeim(&self) -> CAEIM_R

Bit 2 - 2:2] GPTM Timer A capture event interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn camim(&self) -> CAMIM_R

Bit 1 - 1:1] GPTM Timer A capture match interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn tatoim(&self) -> TATOIM_R

Bit 0 - 0:0] GPTM Timer A time-out interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source§

impl R<u32, Reg<u32, _RIS>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 12:31 - 31:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbmris(&self) -> TBMRIS_R

Bit 11 - 11:11] GPTM Timer B match raw interrupt

Source

pub fn cberis(&self) -> CBERIS_R

Bit 10 - 10:10] GPTM Timer B capture event raw interrupt

Source

pub fn cbmris(&self) -> CBMRIS_R

Bit 9 - 9:9] GPTM Timer B capture match raw interrupt

Source

pub fn tbtoris(&self) -> TBTORIS_R

Bit 8 - 8:8] GPTM Timer B time-out raw interrupt

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 5:7 - 7:5] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tamris(&self) -> TAMRIS_R

Bit 4 - 4:4] GPTM Timer A match raw interrupt

Source

pub fn reserved3(&self) -> RESERVED3_R

Bit 3 - 3:3] Reserved

Source

pub fn caeris(&self) -> CAERIS_R

Bit 2 - 2:2] GPTM Timer A capture event raw interrupt

Source

pub fn camris(&self) -> CAMRIS_R

Bit 1 - 1:1] GPTM Timer A capture match raw interrupt

Source

pub fn tatoris(&self) -> TATORIS_R

Bit 0 - 0:0] GPTM Timer A time-out raw interrupt

Source§

impl R<u32, Reg<u32, _MIS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 12:31 - 31:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbmmis(&self) -> TBMMIS_R

Bit 11 - 11:11] GPTM Timer B match masked interrupt

Source

pub fn cbemis(&self) -> CBEMIS_R

Bit 10 - 10:10] GPTM Timer B capture event masked interrupt

Source

pub fn cbmmis(&self) -> CBMMIS_R

Bit 9 - 9:9] GPTM Timer B capture match masked interrupt

Source

pub fn tbtomis(&self) -> TBTOMIS_R

Bit 8 - 8:8] GPTM Timer B time-out masked interrupt

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 5:7 - 7:5] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tamris(&self) -> TAMRIS_R

Bit 4 - 4:4] GPTM Timer A match raw interrupt

Source

pub fn reserved3(&self) -> RESERVED3_R

Bit 3 - 3:3] Reserved

Source

pub fn caemis(&self) -> CAEMIS_R

Bit 2 - 2:2] GPTM Timer A capture event raw interrupt

Source

pub fn cammis(&self) -> CAMMIS_R

Bit 1 - 1:1] GPTM Timer A capture match raw interrupt

Source

pub fn tatomis(&self) -> TATOMIS_R

Bit 0 - 0:0] GPTM Timer A time-out raw interrupt

Source§

impl R<u32, Reg<u32, _ICR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 17:31 - 31:17] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn wuecint(&self) -> WUECINT_R

Bit 16 - 16:16] GPTM write update error interrupt clear

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 12:15 - 15:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbmcint(&self) -> TBMCINT_R

Bit 11 - 11:11] GPTM Timer B match interrupt clear

Source

pub fn cbecint(&self) -> CBECINT_R

Bit 10 - 10:10] GPTM Timer B capture event Interrupt clear

Source

pub fn cbmcint(&self) -> CBMCINT_R

Bit 9 - 9:9] GPTM Timer B capture match interrupt clear

Source

pub fn tbtocint(&self) -> TBTOCINT_R

Bit 8 - 8:8] GPTM Timer B time-out interrupt clear

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 5:7 - 7:5] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tamcint(&self) -> TAMCINT_R

Bit 4 - 4:4] GPTM Timer A match interrupt clear

Source

pub fn reserved3(&self) -> RESERVED3_R

Bit 3 - 3:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn caecint(&self) -> CAECINT_R

Bit 2 - 2:2] GPTM Timer A capture event Interrupt clear

Source

pub fn camcint(&self) -> CAMCINT_R

Bit 1 - 1:1] GPTM Timer A capture match interrupt clear

Source

pub fn tatocint(&self) -> TATOCINT_R

Bit 0 - 0:0] GPTM Timer A time-out interrupt clear

Source§

impl R<u32, Reg<u32, _TAILR>>

Source

pub fn tailr(&self) -> TAILR_R

Bits 0:31 - 31:0] GPTM A interval load register

Source§

impl R<u32, Reg<u32, _TBILR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbilr(&self) -> TBILR_R

Bits 0:15 - 15:0] GPTM B interval load register

Source§

impl R<u32, Reg<u32, _TAMATCHR>>

Source

pub fn tamr(&self) -> TAMR_R

Bits 0:31 - 31:0] GPTM Timer A match register

Source§

impl R<u32, Reg<u32, _TBMATCHR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbmr(&self) -> TBMR_R

Bits 0:15 - 15:0] GPTM Timer B match register

Source§

impl R<u32, Reg<u32, _TAPR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tapsr(&self) -> TAPSR_R

Bits 0:7 - 7:0] GPTM Timer A prescale

Source§

impl R<u32, Reg<u32, _TBPR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbpsr(&self) -> TBPSR_R

Bits 0:7 - 7:0] GPTM Timer B prescale

Source§

impl R<u32, Reg<u32, _TAPMR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tapsr(&self) -> TAPSR_R

Bits 0:7 - 7:0] GPTM Timer A prescale match

Source§

impl R<u32, Reg<u32, _TBPMR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbpsr(&self) -> TBPSR_R

Bits 0:7 - 7:0] GPTM Timer B prescale match

Source§

impl R<u32, Reg<u32, _TAR>>

Source

pub fn tar(&self) -> TAR_R

Bits 0:31 - 31:0] GPTM Timer A register

Source§

impl R<u32, Reg<u32, _TBR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbr(&self) -> TBR_R

Bits 0:15 - 15:0] GPTM Timer B register

Source§

impl R<u32, Reg<u32, _TAV>>

Source

pub fn tav(&self) -> TAV_R

Bits 0:31 - 31:0] GPTM Timer A register

Source§

impl R<u32, Reg<u32, _TBV>>

Source

pub fn pre(&self) -> PRE_R

Bits 16:23 - 23:16] GPTM Timer B prescale register (16-bit mode)

Source

pub fn tbv(&self) -> TBV_R

Bits 0:15 - 15:0] GPTM Timer B register

Source§

impl R<u32, Reg<u32, _TAPS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn pss(&self) -> PSS_R

Bits 0:15 - 15:0] GPTM Timer A prescaler

Source§

impl R<u32, Reg<u32, _TBPS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn pss(&self) -> PSS_R

Bits 0:15 - 15:0] GPTM Timer B prescaler

Source§

impl R<u32, Reg<u32, _TAPV>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn psv(&self) -> PSV_R

Bits 0:15 - 15:0] GPTM Timer A prescaler value

Source§

impl R<u32, Reg<u32, _TBPV>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn psv(&self) -> PSV_R

Bits 0:15 - 15:0] GPTM Timer B prescaler value

Source§

impl R<u32, Reg<u32, _PP>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 7:31 - 31:7] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn altclk(&self) -> ALTCLK_R

Bit 6 - 6:6] Alternate clock source 0: Timer is not capable of using an alternate clock. 1: Timer is capable of using an alternate clock.

Source

pub fn syncnt(&self) -> SYNCNT_R

Bit 5 - 5:5] Synchronized start 0: Timer is not capable of synchronizing the count value with other timers. 1: Timer is capable of synchronizing the count value with other timers.

Source

pub fn chain(&self) -> CHAIN_R

Bit 4 - 4:4] Chain with other timers 0: Timer is not capable of chaining with previously numbered Timers. 1: Timer is capable of chaining with previously numbered timers.

Source

pub fn size(&self) -> SIZE_R

Bits 0:3 - 3:0] Timer size 0: Timer A and Timer B are 16 bits wide with 8-bit prescale. 1: Timer A and Timer B are 32 bits wide with 16-bit prescale.

Source§

impl R<u32, Reg<u32, _CFG>>

Source

pub fn gptmcfg(&self) -> GPTMCFG_R

Bits 0:2 - 2:0] GPTM configuration The GPTMCFG values are defined as follows: 0x0: 32-bit timer configuration. 0x1: 32-bit real-time clock 0x2: Reserved 0x3: Reserved 0x4: 16-bit timer configuration. The function is controlled by bits [1:0] of GPTMTAMR and GPTMTBMR. 0x5-0x7: Reserved

Source§

impl R<u32, Reg<u32, _TAMR>>

Source

pub fn reserved12(&self) -> RESERVED12_R

Bits 12:31 - 31:12] Reserved

Source

pub fn taplo(&self) -> TAPLO_R

Bit 11 - 11:11] Legacy PWM operation 0: Legacy operation 1: CCP is set to 1 on time-out.

Source

pub fn tamrsu(&self) -> TAMRSU_R

Bit 10 - 10:10] Timer A match register update mode 0: Update GPTMAMATCHR and GPTMAPR if used on the next cycle. 1: Update GPTMAMATCHR and GPTMAPR if used on the next time-out. If the timer is disabled (TAEN is clear) when this bit is set, GPTMTAMATCHR and GPTMTAPR are updated when the timer is enabled. If the timer is stalled (TASTALL is set), GPTMTAMATCHR and GPTMTAPR are updated according to the configuration of this bit.

Source

pub fn tapwmie(&self) -> TAPWMIE_R

Bit 9 - 9:9] GPTM Timer A PWM interrupt enable This bit enables interrupts in PWM mode on rising, falling, or both edges of the CCP output. 0: Interrupt is disabled. 1: Interrupt is enabled. This bit is valid only in PWM mode.

Source

pub fn taild(&self) -> TAILD_R

Bit 8 - 8:8] GPTM Timer A PWM interval load write 0: Update the GPTMTAR register with the value in the GPTMTAILR register on the next cycle. If the prescaler is used, update the GPTMTAPS register with the value in the GPTMTAPR register on the next cycle. 1: Update the GPTMTAR register with the value in the GPTMTAILR register on the next cycle. If the prescaler is used, update the GPTMTAPS register with the value in the GPTMTAPR register on the next time-out.

Source

pub fn tasnaps(&self) -> TASNAPS_R

Bit 7 - 7:7] GPTM Timer A snap-shot mode 0: Snap-shot mode is disabled. 1: If Timer A is configured in periodic mode, the actual free-running value of Timer A is loaded at the time-out event into the GPTM Timer A (GPTMTAR) register.

Source

pub fn tawot(&self) -> TAWOT_R

Bit 6 - 6:6] GPTM Timer A wait-on-trigger 0: Timer A begins counting as soon as it is enabled. 1: If Timer A is enabled (TAEN is set in the GPTMCTL register), Timer A does not begin counting until it receives a trigger from the Timer in the previous position in the daisy-chain. This bit must be clear for GP Timer module 0, Timer A.

Source

pub fn tamie(&self) -> TAMIE_R

Bit 5 - 5:5] GPTM Timer A match interrupt enable 0: The match interrupt is disabled. 1: An interrupt is generated when the match value in the GPTMTAMATCHR register is reached in the one-shot and periodic modes.

Source

pub fn tacdir(&self) -> TACDIR_R

Bit 4 - 4:4] GPTM Timer A count direction 0: The timer counts down. 1: The timer counts up. When counting up, the timer starts from a value of 0x0.

Source

pub fn taams(&self) -> TAAMS_R

Bit 3 - 3:3] GPTM Timer A alternate mode 0: Capture mode is enabled. 1: PWM mode is enabled. Note: To enable PWM mode, the TACM bit must be cleared and the TAMR field must be configured to 0x2.

Source

pub fn tacmr(&self) -> TACMR_R

Bit 2 - 2:2] GPTM Timer A capture mode 0: Edge-count mode 1: Edge-time mode

Source

pub fn tamr(&self) -> TAMR_R

Bits 0:1 - 1:0] GPTM Timer A mode 0x0: Reserved 0x1: One-shot mode 0x2: Periodic mode 0x3: Capture mode The timer mode is based on the timer configuration defined by bits [2:0] in the GPTMCFG register.

Source§

impl R<u32, Reg<u32, _TBMR>>

Source

pub fn reserved12(&self) -> RESERVED12_R

Bits 12:31 - 31:12] Reserved

Source

pub fn tbplo(&self) -> TBPLO_R

Bit 11 - 11:11] Legacy PWM operation 0: Legacy operation 1: CCP is set to 1 on time-out.

Source

pub fn tbmrsu(&self) -> TBMRSU_R

Bit 10 - 10:10] Timer B match register update mode 0: Update the GPTMBMATCHR and the GPTMBPR, if used on the next cycle. 1: Update the GPTMBMATCHR and the GPTMBPR, if used on the next time-out. If the timer is disabled (TAEN is clear) when this bit is set, GPTMTBMATCHR and GPTMTBPR are updated when the timer is enabled. If the timer is stalled (TBSTALL is set), GPTMTBMATCHR and GPTMTBPR are updated according to the configuration of this bit.

Source

pub fn tbpwmie(&self) -> TBPWMIE_R

Bit 9 - 9:9] GPTM Timer B PWM interrupt enable This bit enables interrupts in PWM mode on rising, falling, or both edges of the CCP output. 0: Interrupt is disabled. 1: Interrupt is enabled. This bit is valid only in PWM mode.

Source

pub fn tbild(&self) -> TBILD_R

Bit 8 - 8:8] GPTM Timer B PWM interval load write 0: Update the GPTMTBR register with the value in the GPTMTBILR register on the next cycle. If the prescaler is used, update the GPTMTBPS register with the value in the GPTMTBPR register on the next cycle. 1: Update the GPTMTBR register with the value in the GPTMTBILR register on the next cycle. If the prescaler is used, update the GPTMTBPS register with the value in the GPTMTBPR register on the next time-out.

Source

pub fn tbsnaps(&self) -> TBSNAPS_R

Bit 7 - 7:7] GPTM Timer B snap-shot mode 0: Snap-shot mode is disabled. 1: If Timer B is configured in the periodic mode, the actual free-running value of Timer A is loaded into the GPTM Timer B (GPTMTBR) register at the time-out event.

Source

pub fn tbwot(&self) -> TBWOT_R

Bit 6 - 6:6] GPTM Timer B wait-on-trigger 0: Timer B begins counting as soon as it is enabled. 1: If Timer B is enabled (TBEN is set in the GPTMCTL register), Timer B does not begin counting until it receives a trigger from the timer in the previous position in the daisy-chain.

Source

pub fn tbmie(&self) -> TBMIE_R

Bit 5 - 5:5] GPTM Timer B match interrupt enable 0: The match interrupt is disabled. 1: An interrupt is generated when the match value in the GPTMTBMATCHR register is reached in the one-shot and periodic modes.

Source

pub fn tbcdir(&self) -> TBCDIR_R

Bit 4 - 4:4] GPTM Timer B count direction 0: The timer counts down. 1: The timer counts up. When counting up, the timer starts from a value of 0x0.

Source

pub fn tbams(&self) -> TBAMS_R

Bit 3 - 3:3] GPTM Timer B alternate mode 0: Capture mode is enabled. 1: PWM mode is enabled. Note: To enable PWM mode, the TBCM bit must be cleared and the TBMR field must be configured to 0x2.

Source

pub fn tbcmr(&self) -> TBCMR_R

Bit 2 - 2:2] GPTM Timer B capture mode 0: Edge-count mode 1: Edge-time mode

Source

pub fn tbmr(&self) -> TBMR_R

Bits 0:1 - 1:0] GPTM Timer B mode 0x0: Reserved 0x1: One-shot timer mode 0x2: Periodic timer mode 0x3: Capture mode The timer mode is based on the timer configuration defined by bits [2:0] in the GPTMCFG register.

Source§

impl R<u32, Reg<u32, _CTL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 15:31 - 31:15] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbpwml(&self) -> TBPWML_R

Bit 14 - 14:14] GPTM Timer B PWM output level 0: Output is unaffected. 1: Output is inverted.

Source

pub fn tbote(&self) -> TBOTE_R

Bit 13 - 13:13] GPTM Timer B output trigger enable 0: The ADC trigger of output Timer B is disabled. 1: The ADC trigger of output Timer B is enabled.

Source

pub fn reserved13(&self) -> RESERVED13_R

Bit 12 - 12:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbevent(&self) -> TBEVENT_R

Bits 10:11 - 11:10] GPTM Timer B event mode 0x0: Positive edge 0x1: Negative edge 0x2: Reserved 0x3: Both edges

Source

pub fn tbstall(&self) -> TBSTALL_R

Bit 9 - 9:9] GPTM Timer B stall enable 0: Timer B continues counting while the processor is halted by the debugger. 1: Timer B freezes counting while the processor is halted by the debugger.

Source

pub fn tben(&self) -> TBEN_R

Bit 8 - 8:8] GPTM Timer B enable 0: Timer B is disabled. 1: Timer B is enabled and begins counting or the capture logic is enabled based on the GPTMCFG register.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bit 7 - 7:7] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tapwml(&self) -> TAPWML_R

Bit 6 - 6:6] GPTM Timer A PWM output level 0: Output is unaffected. 1: Output is inverted.

Source

pub fn taote(&self) -> TAOTE_R

Bit 5 - 5:5] GPTM Timer A output trigger enable 0: The ADC trigger of output Timer A is disabled. 1: The ADC trigger of output Timer A is enabled.

Source

pub fn reserved4(&self) -> RESERVED4_R

Bit 4 - 4:4] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn taevent(&self) -> TAEVENT_R

Bits 2:3 - 3:2] GPTM Timer A event mode 0x0: Positive edge 0x1: Negative edge 0x2: Reserved 0x3: Both edges

Source

pub fn tastall(&self) -> TASTALL_R

Bit 1 - 1:1] GPTM Timer A stall enable 0: Timer A continues counting while the processor is halted by the debugger. 1: Timer A freezes counting while the processor is halted by the debugger.

Source

pub fn taen(&self) -> TAEN_R

Bit 0 - 0:0] GPTM Timer A enable 0: Timer A is disabled. 1: Timer A is enabled and begins counting or the capture logic is enabled based on the GPTMCFG register.

Source§

impl R<u32, Reg<u32, _SYNC>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn sync3(&self) -> SYNC3_R

Bits 6:7 - 7:6] Synchronize GPTM3 0x0: GPTM3 is not affected. 0x1: A time-out event for Timer A of GPTM3 is triggered. 0x2: A time-out event for Timer B of GPTM3 is triggered. 0x3: A time-out event for Timer A and Timer B of GPTM3 is triggered.

Source

pub fn sync2(&self) -> SYNC2_R

Bits 4:5 - 5:4] Synchronize GPTM2 0x0: GPTM2 is not affected. 0x1: A time-out event for Timer A of GPTM2 is triggered. 0x2: A time-out event for Timer B of GPTM2 is triggered. 0x3: A time-out event for Timer A and Timer B of GPTM2 is triggered.

Source

pub fn sync1(&self) -> SYNC1_R

Bits 2:3 - 3:2] Synchronize GPTM1 0x0: GPTM1 is not affected. 0x1: A time-out event for Timer A of GPTM1 is triggered. 0x2: A time-out event for Timer B of GPTM1 is triggered. 0x3: A time-out event for Timer A and Timer B of GPTM1 is triggered.

Source

pub fn sync0(&self) -> SYNC0_R

Bits 0:1 - 1:0] Synchronize GPTM0 0x0: GPTM0 is not affected. 0x1: A time-out event for Timer A of GPTM0 is triggered. 0x2: A time-out event for Timer B of GPTM0 is triggered. 0x3: A time-out event for Timer A and Timer B of GPTM0 is triggered.

Source§

impl R<u32, Reg<u32, _IMR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 12:31 - 31:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbmim(&self) -> TBMIM_R

Bit 11 - 11:11] GPTM Timer B match interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn cbeim(&self) -> CBEIM_R

Bit 10 - 10:10] GPTM Timer B capture event interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn cbmim(&self) -> CBMIM_R

Bit 9 - 9:9] GPTM Timer B capture match interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn tbtoim(&self) -> TBTOIM_R

Bit 8 - 8:8] GPTM Timer B time-out interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 5:7 - 7:5] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tamim(&self) -> TAMIM_R

Bit 4 - 4:4] GPTM Timer A match interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn reserved3(&self) -> RESERVED3_R

Bit 3 - 3:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn caeim(&self) -> CAEIM_R

Bit 2 - 2:2] GPTM Timer A capture event interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn camim(&self) -> CAMIM_R

Bit 1 - 1:1] GPTM Timer A capture match interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source

pub fn tatoim(&self) -> TATOIM_R

Bit 0 - 0:0] GPTM Timer A time-out interrupt mask 0: Interrupt is disabled. 1: Interrupt is enabled.

Source§

impl R<u32, Reg<u32, _RIS>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 12:31 - 31:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbmris(&self) -> TBMRIS_R

Bit 11 - 11:11] GPTM Timer B match raw interrupt

Source

pub fn cberis(&self) -> CBERIS_R

Bit 10 - 10:10] GPTM Timer B capture event raw interrupt

Source

pub fn cbmris(&self) -> CBMRIS_R

Bit 9 - 9:9] GPTM Timer B capture match raw interrupt

Source

pub fn tbtoris(&self) -> TBTORIS_R

Bit 8 - 8:8] GPTM Timer B time-out raw interrupt

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 5:7 - 7:5] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tamris(&self) -> TAMRIS_R

Bit 4 - 4:4] GPTM Timer A match raw interrupt

Source

pub fn reserved3(&self) -> RESERVED3_R

Bit 3 - 3:3] Reserved

Source

pub fn caeris(&self) -> CAERIS_R

Bit 2 - 2:2] GPTM Timer A capture event raw interrupt

Source

pub fn camris(&self) -> CAMRIS_R

Bit 1 - 1:1] GPTM Timer A capture match raw interrupt

Source

pub fn tatoris(&self) -> TATORIS_R

Bit 0 - 0:0] GPTM Timer A time-out raw interrupt

Source§

impl R<u32, Reg<u32, _MIS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 12:31 - 31:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbmmis(&self) -> TBMMIS_R

Bit 11 - 11:11] GPTM Timer B match masked interrupt

Source

pub fn cbemis(&self) -> CBEMIS_R

Bit 10 - 10:10] GPTM Timer B capture event masked interrupt

Source

pub fn cbmmis(&self) -> CBMMIS_R

Bit 9 - 9:9] GPTM Timer B capture match masked interrupt

Source

pub fn tbtomis(&self) -> TBTOMIS_R

Bit 8 - 8:8] GPTM Timer B time-out masked interrupt

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 5:7 - 7:5] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tamris(&self) -> TAMRIS_R

Bit 4 - 4:4] GPTM Timer A match raw interrupt

Source

pub fn reserved3(&self) -> RESERVED3_R

Bit 3 - 3:3] Reserved

Source

pub fn caemis(&self) -> CAEMIS_R

Bit 2 - 2:2] GPTM Timer A capture event raw interrupt

Source

pub fn cammis(&self) -> CAMMIS_R

Bit 1 - 1:1] GPTM Timer A capture match raw interrupt

Source

pub fn tatomis(&self) -> TATOMIS_R

Bit 0 - 0:0] GPTM Timer A time-out raw interrupt

Source§

impl R<u32, Reg<u32, _ICR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 17:31 - 31:17] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn wuecint(&self) -> WUECINT_R

Bit 16 - 16:16] GPTM write update error interrupt clear

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 12:15 - 15:12] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbmcint(&self) -> TBMCINT_R

Bit 11 - 11:11] GPTM Timer B match interrupt clear

Source

pub fn cbecint(&self) -> CBECINT_R

Bit 10 - 10:10] GPTM Timer B capture event Interrupt clear

Source

pub fn cbmcint(&self) -> CBMCINT_R

Bit 9 - 9:9] GPTM Timer B capture match interrupt clear

Source

pub fn tbtocint(&self) -> TBTOCINT_R

Bit 8 - 8:8] GPTM Timer B time-out interrupt clear

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 5:7 - 7:5] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tamcint(&self) -> TAMCINT_R

Bit 4 - 4:4] GPTM Timer A match interrupt clear

Source

pub fn reserved3(&self) -> RESERVED3_R

Bit 3 - 3:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn caecint(&self) -> CAECINT_R

Bit 2 - 2:2] GPTM Timer A capture event Interrupt clear

Source

pub fn camcint(&self) -> CAMCINT_R

Bit 1 - 1:1] GPTM Timer A capture match interrupt clear

Source

pub fn tatocint(&self) -> TATOCINT_R

Bit 0 - 0:0] GPTM Timer A time-out interrupt clear

Source§

impl R<u32, Reg<u32, _TAILR>>

Source

pub fn tailr(&self) -> TAILR_R

Bits 0:31 - 31:0] GPTM A interval load register

Source§

impl R<u32, Reg<u32, _TBILR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbilr(&self) -> TBILR_R

Bits 0:15 - 15:0] GPTM B interval load register

Source§

impl R<u32, Reg<u32, _TAMATCHR>>

Source

pub fn tamr(&self) -> TAMR_R

Bits 0:31 - 31:0] GPTM Timer A match register

Source§

impl R<u32, Reg<u32, _TBMATCHR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbmr(&self) -> TBMR_R

Bits 0:15 - 15:0] GPTM Timer B match register

Source§

impl R<u32, Reg<u32, _TAPR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tapsr(&self) -> TAPSR_R

Bits 0:7 - 7:0] GPTM Timer A prescale

Source§

impl R<u32, Reg<u32, _TBPR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbpsr(&self) -> TBPSR_R

Bits 0:7 - 7:0] GPTM Timer B prescale

Source§

impl R<u32, Reg<u32, _TAPMR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tapsr(&self) -> TAPSR_R

Bits 0:7 - 7:0] GPTM Timer A prescale match

Source§

impl R<u32, Reg<u32, _TBPMR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbpsr(&self) -> TBPSR_R

Bits 0:7 - 7:0] GPTM Timer B prescale match

Source§

impl R<u32, Reg<u32, _TAR>>

Source

pub fn tar(&self) -> TAR_R

Bits 0:31 - 31:0] GPTM Timer A register

Source§

impl R<u32, Reg<u32, _TBR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn tbr(&self) -> TBR_R

Bits 0:15 - 15:0] GPTM Timer B register

Source§

impl R<u32, Reg<u32, _TAV>>

Source

pub fn tav(&self) -> TAV_R

Bits 0:31 - 31:0] GPTM Timer A register

Source§

impl R<u32, Reg<u32, _TBV>>

Source

pub fn pre(&self) -> PRE_R

Bits 16:23 - 23:16] GPTM Timer B prescale register (16-bit mode)

Source

pub fn tbv(&self) -> TBV_R

Bits 0:15 - 15:0] GPTM Timer B register

Source§

impl R<u32, Reg<u32, _TAPS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn pss(&self) -> PSS_R

Bits 0:15 - 15:0] GPTM Timer A prescaler

Source§

impl R<u32, Reg<u32, _TBPS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn pss(&self) -> PSS_R

Bits 0:15 - 15:0] GPTM Timer B prescaler

Source§

impl R<u32, Reg<u32, _TAPV>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn psv(&self) -> PSV_R

Bits 0:15 - 15:0] GPTM Timer A prescaler value

Source§

impl R<u32, Reg<u32, _TBPV>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn psv(&self) -> PSV_R

Bits 0:15 - 15:0] GPTM Timer B prescaler value

Source§

impl R<u32, Reg<u32, _PP>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 7:31 - 31:7] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn altclk(&self) -> ALTCLK_R

Bit 6 - 6:6] Alternate clock source 0: Timer is not capable of using an alternate clock. 1: Timer is capable of using an alternate clock.

Source

pub fn syncnt(&self) -> SYNCNT_R

Bit 5 - 5:5] Synchronized start 0: Timer is not capable of synchronizing the count value with other timers. 1: Timer is capable of synchronizing the count value with other timers.

Source

pub fn chain(&self) -> CHAIN_R

Bit 4 - 4:4] Chain with other timers 0: Timer is not capable of chaining with previously numbered Timers. 1: Timer is capable of chaining with previously numbered timers.

Source

pub fn size(&self) -> SIZE_R

Bits 0:3 - 3:0] Timer size 0: Timer A and Timer B are 16 bits wide with 8-bit prescale. 1: Timer A and Timer B are 32 bits wide with 16-bit prescale.

Source§

impl R<u32, Reg<u32, _SRCRESMASK0>>

Source

pub fn srcresmask0(&self) -> SRCRESMASK0_R

Bits 0:7 - 7:0] Extended address matching When there is a match on entry ext_n, bits 2n and 2n + 1 are set in SRCRESMASK.

Source§

impl R<u32, Reg<u32, _SRCRESMASK1>>

Source

pub fn srcresmask1(&self) -> SRCRESMASK1_R

Bits 0:7 - 7:0] Short address matching When there is a match on entry panid_n + short_n, bit n is set in SRCRESMASK.

Source§

impl R<u32, Reg<u32, _SRCRESMASK2>>

Source

pub fn srcresmask2(&self) -> SRCRESMASK2_R

Bits 0:7 - 7:0] 24-bit mask that indicates source address match for each individual entry in the source address table

Source§

impl R<u32, Reg<u32, _SRCRESINDEX>>

Source

pub fn srcresindex(&self) -> SRCRESINDEX_R

Bits 0:7 - 7:0] The bit index of the least-significant entry (0-23 for short addresses or 0-11 for extended addresses) in SRCRESMASK, or 0x3F when there is no source match On a match, bit 5 is 0 when the match is on a short address and 1 when it is on an extended address. On a match, bit 6 is 1 when the conditions for automatic pending bit in acknowledgment have been met (see the description of SRCMATCH.AUTOPEND). The bit does not indicate if the acknowledgment is actually transmitted, and does not consider the PENDING_OR register bit and the SACK/SACKPEND/SNACK strobes.

Source§

impl R<u32, Reg<u32, _SRCEXTPENDEN0>>

Source

pub fn srcextpenden0(&self) -> SRCEXTPENDEN0_R

Bits 0:7 - 7:0] 8 LSBs of the 24-bit mask that enables or disables automatic pending for each of the 12 extended addresses. Entry n is mapped to SRCEXTPENDEN[2n]. All SRCEXTPENDEN[2n + 1] bits are don’t care.

Source§

impl R<u32, Reg<u32, _SRCEXTPENDEN1>>

Source

pub fn srcextpenden1(&self) -> SRCEXTPENDEN1_R

Bits 0:7 - 7:0] 8 middle bits of the 24-bit mask that enables or disables automatic pending for each of the 12 extended addresses Entry n is mapped to SRCEXTPENDEN[2n]. All SRCEXTPENDEN[2n + 1] bits are don’t care.

Source§

impl R<u32, Reg<u32, _SRCEXTPENDEN2>>

Source

pub fn srcextpenden2(&self) -> SRCEXTPENDEN2_R

Bits 0:7 - 7:0] 8 MSBs of the 24-bit mask that enables or disables automatic pending for each of the 12 extended addresses Entry n is mapped to SRCEXTPENDEN[2n]. All SRCEXTPENDEN[2n + 1] bits are don’t care.

Source§

impl R<u32, Reg<u32, _SRCSHORTPENDEN0>>

Source

pub fn srcshortpenden0(&self) -> SRCSHORTPENDEN0_R

Bits 0:7 - 7:0] 8 LSBs of the 24-bit mask that enables or disables automatic pending for each of the 24 short addresses

Source§

impl R<u32, Reg<u32, _SRCSHORTPENDEN1>>

Source

pub fn srcshortpenden1(&self) -> SRCSHORTPENDEN1_R

Bits 0:7 - 7:0] 8 middle bits of the 24-bit mask that enables or disables automatic pending for each of the 24 short addresses

Source§

impl R<u32, Reg<u32, _SRCSHORTPENDEN2>>

Source

pub fn srcshortpenden2(&self) -> SRCSHORTPENDEN2_R

Bits 0:7 - 7:0] 8 MSBs of the 24-bit mask that enables or disables automatic pending for each of the 24 short addresses

Source§

impl R<u32, Reg<u32, _EXT_ADDR0>>

Source

pub fn ext_addr0(&self) -> EXT_ADDR0_R

Bits 0:7 - 7:0] EXT_ADDR[7:0] The IEEE extended address used during destination address filtering

Source§

impl R<u32, Reg<u32, _EXT_ADDR1>>

Source

pub fn ext_addr1(&self) -> EXT_ADDR1_R

Bits 0:7 - 7:0] EXT_ADDR[15:8] The IEEE extended address used during destination address filtering

Source§

impl R<u32, Reg<u32, _EXT_ADDR2>>

Source

pub fn ext_addr2(&self) -> EXT_ADDR2_R

Bits 0:7 - 7:0] EXT_ADDR[23:16] The IEEE extended address used during destination address filtering

Source§

impl R<u32, Reg<u32, _EXT_ADDR3>>

Source

pub fn ext_addr3(&self) -> EXT_ADDR3_R

Bits 0:7 - 7:0] EXT_ADDR[31:24] The IEEE extended address used during destination address filtering

Source§

impl R<u32, Reg<u32, _EXT_ADDR4>>

Source

pub fn ext_addr4(&self) -> EXT_ADDR4_R

Bits 0:7 - 7:0] EXT_ADDR[39:32] The IEEE extended address used during destination address filtering

Source§

impl R<u32, Reg<u32, _EXT_ADDR5>>

Source

pub fn ext_addr5(&self) -> EXT_ADDR5_R

Bits 0:7 - 7:0] EXT_ADDR[47:40] The IEEE extended address used during destination address filtering

Source§

impl R<u32, Reg<u32, _EXT_ADDR6>>

Source

pub fn ext_addr6(&self) -> EXT_ADDR6_R

Bits 0:7 - 7:0] EXT_ADDR[55:48] The IEEE extended address used during destination address filtering

Source§

impl R<u32, Reg<u32, _EXT_ADDR7>>

Source

pub fn ext_addr7(&self) -> EXT_ADDR7_R

Bits 0:7 - 7:0] EXT_ADDR[63:56] The IEEE extended address used during destination address filtering

Source§

impl R<u32, Reg<u32, _PAN_ID0>>

Source

pub fn pan_id0(&self) -> PAN_ID0_R

Bits 0:7 - 7:0] PAN_ID[7:0] The PAN ID used during destination address filtering

Source§

impl R<u32, Reg<u32, _PAN_ID1>>

Source

pub fn pan_id1(&self) -> PAN_ID1_R

Bits 0:7 - 7:0] PAN_ID[15:8] The PAN ID used during destination address filtering

Source§

impl R<u32, Reg<u32, _SHORT_ADDR0>>

Source

pub fn short_addr0(&self) -> SHORT_ADDR0_R

Bits 0:7 - 7:0] SHORT_ADDR[7:0] The short address used during destination address filtering

Source§

impl R<u32, Reg<u32, _SHORT_ADDR1>>

Source

pub fn short_addr1(&self) -> SHORT_ADDR1_R

Bits 0:7 - 7:0] SHORT_ADDR[15:8] The short address used during destination address filtering

Source§

impl R<u32, Reg<u32, _FRMFILT0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bit 7 - 7:7] Reserved. Always read 0.

Source

pub fn fcf_reserved_mask(&self) -> FCF_RESERVED_MASK_R

Bits 4:6 - 6:4] Used for filtering on the reserved part of the frame control field (FCF) FCF_RESERVED_MASK[2:0] is ANDed with FCF[9:7]. If the result is nonzero and frame filtering is enabled, the frame is rejected.

Source

pub fn max_frame_version(&self) -> MAX_FRAME_VERSION_R

Bits 2:3 - 3:2] Used for filtering on the frame version field of the frame control field (FCF) If FCF[13:12] (the frame version subfield) is higher than MAX_FRAME_VERSION[1:0] and frame filtering is enabled, the frame is rejected.

Source

pub fn pan_coordinator(&self) -> PAN_COORDINATOR_R

Bit 1 - 1:1] Should be set high when the device is a PAN coordinator, to accept frames with no destination address (as specified in Section 7.5.6.2 in IEEE 802.15.4) 0: Device is not a PAN coordinator 1: Device is a PAN coordinator

Source

pub fn frame_filter_en(&self) -> FRAME_FILTER_EN_R

Bit 0 - 0:0] Enables frame filtering When this bit is set, the radio performs frame filtering as specified in section 7.5.6.2 of IEEE 802.15.4(b), third filtering level. FRMFILT0[6:1] and FRMFILT1[7:1], together with the local address information, define the behavior of the filtering algorithm. 0: Frame filtering off. (FRMFILT0[6:1], FRMFILT1[7:1] and SRCMATCH[2:0] are don’t care.) 1: Frame filtering on.

Source§

impl R<u32, Reg<u32, _FRMFILT1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn accept_ft_4to7_reserved(&self) -> ACCEPT_FT_4TO7_RESERVED_R

Bit 7 - 7:7] Defines whether reserved frames are accepted or not. Reserved frames have frame type = 100, 101, 110, or 111. 0: Reject 1: Accept

Source

pub fn accept_ft_3_mac_cmd(&self) -> ACCEPT_FT_3_MAC_CMD_R

Bit 6 - 6:6] Defines whether MAC command frames are accepted or not. MAC command frames have frame type = 011. 0: Reject 1: Accept

Source

pub fn accept_ft_2_ack(&self) -> ACCEPT_FT_2_ACK_R

Bit 5 - 5:5] Defines whether acknowledgment frames are accepted or not. Acknowledgement frames have frame type = 010. 0: Reject 1: Accept

Source

pub fn accept_ft_1_data(&self) -> ACCEPT_FT_1_DATA_R

Bit 4 - 4:4] Defines whether data frames are accepted or not. Data frames have frame type = 001. 0: Reject 1: Accept

Source

pub fn accept_ft_0_beacon(&self) -> ACCEPT_FT_0_BEACON_R

Bit 3 - 3:3] Defines whether beacon frames are accepted or not. Beacon frames have frame type = 000. 0: Reject 1: Accept

Source

pub fn modify_ft_filter(&self) -> MODIFY_FT_FILTER_R

Bits 1:2 - 2:1] These bits are used to modify the frame type field of a received frame before frame type filtering is performed. The modification does not influence the frame that is written to the RX FIFO. 00: Leave the frame type as it is. 01: Invert MSB of the frame type. 10: Set MSB of the frame type to 0. 11: Set MSB of the frame type to 1.

Source

pub fn frm_reserved(&self) -> FRM_RESERVED_R

Bit 0 - 0:0] Reserved. Always write 0.

Source§

impl R<u32, Reg<u32, _SRCMATCH>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 3:7 - 7:3] Reserved. Always read 0.

Source

pub fn pend_datareq_only(&self) -> PEND_DATAREQ_ONLY_R

Bit 2 - 2:2] When this bit is set, the AUTOPEND function also requires that the received frame is a DATA REQUEST MAC command frame.

Source

pub fn autopend(&self) -> AUTOPEND_R

Bit 1 - 1:1] Automatic acknowledgment pending flag enable When a frame is received, the pending bit in the (possibly) returned acknowledgment is set automatically when the following conditions are met: - FRMFILT.FRAME_FILTER_EN is set. - SRCMATCH.SRC_MATCH_EN is set. - SRCMATCH.AUTOPEND is set. - The received frame matches the current SRCMATCH.PEND_DATAREQ_ONLY setting. - The received source address matches at least one source match table entry, which is enabled in SHORT_ADDR_EN and SHORT_PEND_EN or in EXT_ADDR_EN and EXT_PEND_EN.

Source

pub fn src_match_en(&self) -> SRC_MATCH_EN_R

Bit 0 - 0:0] Source address matching enable (requires that FRMFILT.FRAME_FILTER_EN = 1)

Source§

impl R<u32, Reg<u32, _SRCSHORTEN0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn short_addr_en(&self) -> SHORT_ADDR_EN_R

Bits 0:7 - 7:0] 7:0 part of the 24-bit word SHORT_ADDR_EN that enables or disables source address matching for each of the 24 short address table entries Optional safety feature: To ensure that an entry in the source matching table is not used while it is being updated, set the corresponding SHORT_ADDR_EN bit to 0 while updating.

Source§

impl R<u32, Reg<u32, _SRCSHORTEN1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn short_addr_en(&self) -> SHORT_ADDR_EN_R

Bits 0:7 - 7:0] 15:8 part of the 24-bit word SHORT_ADDR_EN See description of SRCSHORTEN0.SHORT_ADDR_EN.

Source§

impl R<u32, Reg<u32, _SRCSHORTEN2>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn short_addr_en(&self) -> SHORT_ADDR_EN_R

Bits 0:7 - 7:0] 23:16 part of the 24-bit word SHORT_ADDR_EN See description of SRCSHORTEN0.SHORT_ADDR_EN.

Source§

impl R<u32, Reg<u32, _SRCEXTEN0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn ext_addr_en(&self) -> EXT_ADDR_EN_R

Bits 0:7 - 7:0] 7:0 part of the 24-bit word EXT_ADDR_EN that enables or disables source address matching for each of the 12 extended address table entries Write access: Extended address enable for table entry n (0 to 11) is mapped to EXT_ADDR_EN[2n]. All EXT_ADDR_EN[2n + 1] bits are read only. Read access: Extended address enable for table entry n (0 to 11) is mapped to EXT_ADDR_EN[2n] and EXT_ADDR_EN[2n + 1]. Optional safety feature: To ensure that an entry in the source matching table is not used while it is being updated, set the corresponding EXT_ADDR_EN bit to 0 while updating.

Source§

impl R<u32, Reg<u32, _SRCEXTEN1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn ext_addr_en(&self) -> EXT_ADDR_EN_R

Bits 0:7 - 7:0] 15:8 part of the 24-bit word EXT_ADDR_EN See description of SRCEXTEN0.EXT_ADDR_EN.

Source§

impl R<u32, Reg<u32, _SRCEXTEN2>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn ext_addr_en(&self) -> EXT_ADDR_EN_R

Bits 0:7 - 7:0] 23:16 part of the 24-bit word EXT_ADDR_EN See description of SRCEXTEN0.EXT_ADDR_EN.

Source§

impl R<u32, Reg<u32, _FRMCTRL0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn append_data_mode(&self) -> APPEND_DATA_MODE_R

Bit 7 - 7:7] When AUTOCRC = 0: Don’t care When AUTOCRC = 1: 0: RSSI + The CRC_OK bit and the 7-bit correlation value are appended at the end of each received frame 1: RSSI + The CRC_OK bit and the 7-bit SRCRESINDEX are appended at the end of each received frame.

Source

pub fn autocrc(&self) -> AUTOCRC_R

Bit 6 - 6:6] In TX 1: A CRC-16 (ITU-T) is generated in hardware and appended to the transmitted frame. There is no need to write the last 2 bytes to TXBUF. 0: No CRC-16 is appended to the frame. The last 2 bytes of the frame must be generated manually and written to TXBUF (if not, TX_UNDERFLOW occurs). In RX 1: The CRC-16 is checked in hardware, and replaced in the RXFIFO by a 16-bit status word which contains a CRC OK bit. The status word is controllable through APPEND_DATA_MODE. 0: The last 2 bytes of the frame (CRC-16 field) are stored in the RX FIFO. The CRC (if any) must be done manually. This setting does not influence acknowledgment transmission (including AUTOACK).

Source

pub fn autoack(&self) -> AUTOACK_R

Bit 5 - 5:5] Defines whether the radio automatically transmits acknowledge frames or not. When autoack is enabled, all frames that are accepted by address filtering, have the acknowledge request flag set, and have a valid CRC are automatically acknowledged 12 symbol periods after being received. 0: Autoack disabled 1: Autoack enabled

Source

pub fn energy_scan(&self) -> ENERGY_SCAN_R

Bit 4 - 4:4] Defines whether the RSSI register contains the most-recent signal strength or the peak signal strength since the energy scan was enabled. 0: Most-recent signal strength 1: Peak signal strength

Source

pub fn rx_mode(&self) -> RX_MODE_R

Bits 2:3 - 3:2] Set RX modes. 00: Normal operation, use RX FIFO 01: Receive serial mode, output received data on to IOC; infinite RX 10: RX FIFO looping ignore overflow in RX FIFO; infinite reception 11: Same as normal operation except that symbol search is disabled. Can be used for RSSI or CCA measurements when finding symbol is not desired.

Source

pub fn tx_mode(&self) -> TX_MODE_R

Bits 0:1 - 1:0] Set test modes for TX. 00: Normal operation, transmit TX FIFO 01: Reserved, should not be used 10: TX FIFO looping ignore underflow in TX FIFO and read cyclic; infinite transmission 11: Send random data from CRC; infinite transmission

Source§

impl R<u32, Reg<u32, _FRMCTRL1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 3:7 - 7:3] Reserved. Read as 0.

Source

pub fn pending_or(&self) -> PENDING_OR_R

Bit 2 - 2:2] Defines whether the pending data bit in outgoing acknowledgment frames is always set to 1 or controlled by the main FSM and the address filtering 0: Pending data bit is controlled by main FSM and address filtering. 1: Pending data bit is always 1.

Source

pub fn ignore_tx_underf(&self) -> IGNORE_TX_UNDERF_R

Bit 1 - 1:1] Defines whether or not TX underflow should be ignored 0: Normal TX operation. TX underflow is detected and TX is aborted if underflow occurs. 1: Ignore TX underflow. Transmit the number of bytes given by the frame-length field.

Source

pub fn set_rxenmask_on_tx(&self) -> SET_RXENMASK_ON_TX_R

Bit 0 - 0:0] Defines whether STXON sets bit 6 in the RXENABLE register or leaves it unchanged 0: Does not affect RXENABLE 1: Sets bit 6 in RXENABLE. Used for backward compatibility with the CC2420.

Source§

impl R<u32, Reg<u32, _RXENABLE>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn rxenmask(&self) -> RXENMASK_R

Bits 0:7 - 7:0] RXENABLE enables the receiver. A nonzero value in this register causes FFCTRL to enable the receiver when in idle, after transmission and after acknowledgement transmission. The following strobes can modify RXENMASK: SRXON: Set bit 7 in RXENMASK. STXON: Set bit 6 in RXENMASK if SET_RXENMASK_ON_TX = 1. SRFOFF: Clears all bits in RXENMASK. SRXMASKBITSET: Set bit 5 in RXENMASK. SRXMASKBITCLR: Clear bit 5 in RXENMASK. There could be conflicts between the CSP and xreg_bus write operations if both operations try to modify RXENMASK simultaneously. To handle the case of simultaneous access to RXENMASK the following rules apply: - If the two sources agree (they modify different parts of the register) both of their requests to modify RXENMASK are processed. - If both operations try to modify the mask simultaneously, bus write operations to RXMASKSET and RXMASKCLR have priority over the CSP. This situation must be avoided.

Source§

impl R<u32, Reg<u32, _RXMASKSET>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn rxenmaskset(&self) -> RXENMASKSET_R

Bits 0:7 - 7:0] When written, the written data is ORed with the RXENMASK and stored in RXENMASK.

Source§

impl R<u32, Reg<u32, _RXMASKCLR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn rxenmaskclr(&self) -> RXENMASKCLR_R

Bits 0:7 - 7:0] When written, the written data is inverted and ANDed with the RXENMASK and stored in RXENMASK. For example, if 1 is written to one or more bit positions in this register, the corresponding bits are cleared in RXENMASK.

Source§

impl R<u32, Reg<u32, _FREQTUNE>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 4:7 - 7:4] Reserved. Always read 0.

Source

pub fn xosc32m_tune(&self) -> XOSC32M_TUNE_R

Bits 0:3 - 3:0] Tune crystal oscillator The default setting 1111 leaves the XOSC untuned. Changing the setting from the default setting (1111) switches in extra capacitance to the oscillator, effectively lowering the XOSC frequency. Hence, a higher setting gives a higher frequency.

Source§

impl R<u32, Reg<u32, _FREQCTRL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bit 7 - 7:7] Reserved. Always read 0.

Source

pub fn freq(&self) -> FREQ_R

Bits 0:6 - 6:0] Frequency control word The frequency word in FREQ[6:0] is an offset value from 2394 (fRF = FREQ[6 0] + 2394). The RF-frequency is specified from 2405 to 2480 MHz in 1-MHz steps; hence, the only valid settings for FREQ[6:0] are 11 to 86 (11 + 2394 = 2405 and 86 + 2394 = 2480). The device supports the frequency range from 2394 to 2507 MHz. Consequently, the usable settings for FREQ[6:0] are 0 to 113. Settings outside of the usable range (114 to 127) give a frequency of 2507 MHz. IEEE 802.15.4-2006 specifies a frequency range from 2405 MHz to 2480 MHz with 16 channels 5 MHz apart. The channels are numbered 11 through 26. For an IEEE 802.15.4-2006 compliant system, the only valid settings are thus FREQ[6:0] = 11 + 5 (channel number - 11).

Source§

impl R<u32, Reg<u32, _TXPOWER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn pa_power(&self) -> PA_POWER_R

Bits 4:7 - 7:4] PA power control

Source

pub fn pa_bias(&self) -> PA_BIAS_R

Bits 0:3 - 3:0] PA bias control

Source§

impl R<u32, Reg<u32, _TXCTRL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bit 7 - 7:7] Reserved. Always read 0.

Source

pub fn dac_curr(&self) -> DAC_CURR_R

Bits 4:6 - 6:4] Change the current in the DAC.

Source

pub fn dac_dc(&self) -> DAC_DC_R

Bits 2:3 - 3:2] Adjusts the DC level to the TX mixer.

Source

pub fn txmix_current(&self) -> TXMIX_CURRENT_R

Bits 0:1 - 1:0] Transmit mixers core current Current increases with increasing setting.

Source§

impl R<u32, Reg<u32, _FSMSTAT0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn cal_done(&self) -> CAL_DONE_R

Bit 7 - 7:7] Frequency synthesis calibration has been performed since the last time the FS was turned on.

Source

pub fn cal_running(&self) -> CAL_RUNNING_R

Bit 6 - 6:6] Frequency synthesis calibration status 0: Calibration is complete or not started. 1: Calibration is in progress.

Source

pub fn fsm_ffctrl_state(&self) -> FSM_FFCTRL_STATE_R

Bits 0:5 - 5:0] Gives the current state of the FIFO and frame control (FFCTRL) finite state-machine.

Source§

impl R<u32, Reg<u32, _FSMSTAT1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn fifo(&self) -> FIFO_R

Bit 7 - 7:7] FIFO is high when there is data in the RX FIFO. FIFO is low during RX FIFO overflow.

Source

pub fn fifop(&self) -> FIFOP_R

Bit 6 - 6:6] FIFOP is set high when there are at more than FIFOP_THR bytes of data in the RX FIFO that has passed frame filtering. FIFOP is set high when there is at least one complete frame in the RX FIFO. FIFOP is high during RX FIFO overflow.

Source

pub fn sfd(&self) -> SFD_R

Bit 5 - 5:5] In TX 0: When a complete frame with SFD was sent or no SFD was sent 1: SFD was sent. In RX 0: When a complete frame was received or no SFD was received 1: SFD was received.

Source

pub fn cca(&self) -> CCA_R

Bit 4 - 4:4] Clear channel assessment Dependent on CCA_MODE settings. See CCACTRL1 for details.

Source

pub fn sampled_cca(&self) -> SAMPLED_CCA_R

Bit 3 - 3:3] Contains a sampled value of the CCA The value is updated when a SSAMPLECCA or STXONCCA strobe is issued.

Source

pub fn lock_status(&self) -> LOCK_STATUS_R

Bit 2 - 2:2] 1 when PLL is in lock; otherwise 0

Source

pub fn tx_active(&self) -> TX_ACTIVE_R

Bit 1 - 1:1] Status signal Active when FFC is in one of the transmit states

Source

pub fn rx_active(&self) -> RX_ACTIVE_R

Bit 0 - 0:0] Status signal Active when FFC is in one of the receive states

Source§

impl R<u32, Reg<u32, _FIFOPCTRL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bit 7 - 7:7] Reserved. Always read 0.

Source

pub fn fifop_thr(&self) -> FIFOP_THR_R

Bits 0:6 - 6:0] Threshold used when generating FIFOP signal

Source§

impl R<u32, Reg<u32, _FSMCTRL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 2:7 - 7:2] Reserved. Always read 0.

Source

pub fn slotted_ack(&self) -> SLOTTED_ACK_R

Bit 1 - 1:1] Controls timing of transmission of acknowledge frames 0: The acknowledge frame is sent 12 symbol periods after the end of the received frame which requests the aknowledge. 1: The acknowledge frame is sent at the first backoff-slot boundary more than 12 symbol periods after the end of the received frame which requests the aknowledge.

Source

pub fn rx2rx_time_off(&self) -> RX2RX_TIME_OFF_R

Bit 0 - 0:0] Defines whether or not a 12-symbol time-out should be used after frame reception has ended. 0: No time-out 1: 12-symbol-period time-out

Source§

impl R<u32, Reg<u32, _CCACTRL0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn cca_thr(&self) -> CCA_THR_R

Bits 0:7 - 7:0] Clear-channel-assessment threshold value, signed 2’s-complement number for comparison with the RSSI. The unit is 1 dB, offset is 73dB The CCA signal goes high when the received signal is below this value. The CCA signal is available on the CCA pin and in the FSMSTAT1 register. The value must never be set lower than CCA_HYST - 128 to avoid erroneous behavior of the CCA signal. Note: The reset value translates to an input level of approximately -32 - 73 = -105 dBm, which is well below the sensitivity limit. This means that the CCA signal never indicates a clear channel. This register should be updated to 0xF8, which translates to an input level of about -8 - 73 = -81 dBm.

Source§

impl R<u32, Reg<u32, _CCACTRL1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 5:7 - 7:5] Reserved. Always read 0.

Source

pub fn cca_mode(&self) -> CCA_MODE_R

Bits 3:4 - 4:3] 00: CCA always set to 1 01: CCA = 1 when RSSI < CCA_THR - CCA_HYST; CCA = 0 when RSSI >= CCA_THR 10: CCA = 1 when not receiving a frame, else CCA = 0 11: CCA = 1 when RSSI < CCA_THR - CCA_HYST and not receiving a frame; CCA = 0 when RSSI >= CCA_THR or when receiving a frame

Source

pub fn cca_hyst(&self) -> CCA_HYST_R

Bits 0:2 - 2:0] Sets the level of CCA hysteresis. Unsigned values given in dB

Source§

impl R<u32, Reg<u32, _RSSI>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn rssi_val(&self) -> RSSI_VAL_R

Bits 0:7 - 7:0] RSSI estimate on a logarithmic scale, signed number on 2’s complement Unit is 1 dB, offset is 73dB. The RSSI value is averaged over eight symbol periods. The RSSI_VALID status bit should be checked before reading RSSI_VAL for the first time. The reset value of -128 also indicates that the RSSI value is invalid.

Source§

impl R<u32, Reg<u32, _RSSISTAT>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 1:7 - 7:1] Reserved. Always read 0.

Source

pub fn rssi_valid(&self) -> RSSI_VALID_R

Bit 0 - 0:0] RSSI value is valid. Occurs eight symbol periods after entering RX.

Source§

impl R<u32, Reg<u32, _RXFIRST>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn data(&self) -> DATA_R

Bits 0:7 - 7:0] First byte of the RX FIFO Note: Reading this register does not modify the contents of the FIFO.

Source§

impl R<u32, Reg<u32, _RXFIFOCNT>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn rxfifocnt(&self) -> RXFIFOCNT_R

Bits 0:7 - 7:0] Number of bytes in the RX FIFO (unsigned integer)

Source§

impl R<u32, Reg<u32, _TXFIFOCNT>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn txfifocnt(&self) -> TXFIFOCNT_R

Bits 0:7 - 7:0] Number of bytes in the TX FIFO (unsigned integer)

Source§

impl R<u32, Reg<u32, _RXFIRST_PTR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn rxfirst_ptr(&self) -> RXFIRST_PTR_R

Bits 0:7 - 7:0] RAM address offset of the first byte in the RX FIFO

Source§

impl R<u32, Reg<u32, _RXLAST_PTR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn rxlast_ptr(&self) -> RXLAST_PTR_R

Bits 0:7 - 7:0] RAM address offset of the last byte + 1 byte in the RX FIFO

Source§

impl R<u32, Reg<u32, _RXP1_PTR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn rxp1_ptr(&self) -> RXP1_PTR_R

Bits 0:7 - 7:0] RAM address offset of the first byte of the first frame in the RX FIFO

Source§

impl R<u32, Reg<u32, _TXFIRST_PTR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn txfirst_ptr(&self) -> TXFIRST_PTR_R

Bits 0:7 - 7:0] RAM address offset of the next byte to be transmitted from the TX FIFO

Source§

impl R<u32, Reg<u32, _TXLAST_PTR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn txlast_ptr(&self) -> TXLAST_PTR_R

Bits 0:7 - 7:0] RAM address offset of the last byte + 1 byte of the TX FIFO

Source§

impl R<u32, Reg<u32, _RFIRQM0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn rfirqm(&self) -> RFIRQM_R

Bits 0:7 - 7:0] Bit mask is masking out interrupt sources. Bit position: 7: RXMASKZERO 6: RXPKTDONE 5: FRAME_ACCEPTED 4: SRC_MATCH_FOUND 3: SRC_MATCH_DONE 2: FIFOP 1: SFD 0: ACT_UNUSED

Source§

impl R<u32, Reg<u32, _RFIRQM1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 6:7 - 7:6] 7: Reserved 6: Reserved

Source

pub fn rfirqm(&self) -> RFIRQM_R

Bits 0:5 - 5:0] Bit mask is masking out interrupt sources. Bit position: 5: CSP_WAIT 4: CSP_STOP 3: CSP_MANINT 2: RF_IDLE 1: TXDONE 0: TXACKDONE

Source§

impl R<u32, Reg<u32, _RFERRM>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bit 7 - 7:7] 7: Reserved

Source

pub fn rferrm(&self) -> RFERRM_R

Bits 0:6 - 6:0] Bit mask is masking out interrupt sources. Bit position: 6: STROBE_ERR 5: TXUNDERF 4: TXOVERF 3: RXUNDERF 2: RXOVERF 1: RXABO 0: NLOCK

Source§

impl R<u32, Reg<u32, _RFRND>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 2:7 - 7:2] Reserved. Always read 0.

Source

pub fn qrnd(&self) -> QRND_R

Bit 1 - 1:1] Random bit from the Q channel of the receiver

Source

pub fn irnd(&self) -> IRND_R

Bit 0 - 0:0] Random bit from the I channel of the receiver

Source§

impl R<u32, Reg<u32, _MDMCTRL0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn dem_num_zeros(&self) -> DEM_NUM_ZEROS_R

Bits 6:7 - 7:6] Sets how many zero symbols must be detected before the sync word when searching for sync. Only one zero symbol is required to have a correlation value above the correlation threshold set in the MDMCTRL1 register. 00: Reserved 01: 1 zero symbol 10: 2 zero symbols 11: 3 zero symbols

Source

pub fn demod_avg_mode(&self) -> DEMOD_AVG_MODE_R

Bit 5 - 5:5] Defines the behavior or the frequency offset averaging filter. 0: Lock average level after preamble match. Restart frequency offset calibration when searching for the next frame. 1: Continuously update average level.

Source

pub fn preamble_length(&self) -> PREAMBLE_LENGTH_R

Bits 1:4 - 4:1] The number of preamble bytes (two zero-symbols) to be sent in TX mode before the SFD, encoded in steps of 2 symbols (1 byte). The reset value of 2 is compliant with IEEE 802.15.4. 0000: 2 leading-zero bytes 0001: 3 leading-zero bytes 0010: 4 leading-zero bytes … 1111: 17 leading-zero bytes

Source

pub fn tx_filter(&self) -> TX_FILTER_R

Bit 0 - 0:0] Defines the kind of TX filter that is used. The normal TX filter is as defined by the IEEE 802.15.4 standard. Extra filtering may be applied to lower the out-of-band emissions. 0: Normal TX filtering 1: Enable extra filtering

Source§

impl R<u32, Reg<u32, _MDMCTRL1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 6:7 - 7:6] Reserved. Always read 0.

Source

pub fn corr_thr_sfd(&self) -> CORR_THR_SFD_R

Bit 5 - 5:5] Defines requirements for SFD detection: 0: The correlation value of one of the zero symbols of the preamble must be above the correlation threshold. 1: The correlation value of one zero symbol of the preamble and both symbols in the SFD must be above the correlation threshold.

Source

pub fn corr_thr(&self) -> CORR_THR_R

Bits 0:4 - 4:0] Demodulator correlator threshold value, required before SFD search. Threshold value adjusts how the receiver synchronizes to data from the radio. If the threshold is set too low, sync can more easily be found on noise. If set too high, the sensitivity is reduced, but sync is not likely to be found on noise. In combination with DEM_NUM_ZEROS, the system can be tuned so sensitivity is high with less sync found on noise.

Source§

impl R<u32, Reg<u32, _FREQEST>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn freqest(&self) -> FREQEST_R

Bits 0:7 - 7:0] Signed 2’s-complement value. Contains an estimate of the frequency offset between carrier and the receiver LO. The offset frequency is FREQEST x 7800 Hz. DEM_AVG_MODE controls when this estimate is updated. If DEM_AVG_MODE = 0, it is updated until sync is found. Then the frequency offset estimate is frozen until the end of the received frame. If DEM_AVG_MODE = 1, it is updated as long as the demodulator is enabled. To calculate the correct value, one must use an offset (FREQEST_offset), which can be found in the device data sheet. Real FREQEST value = FREQEST - FREQEST_offset.

Source§

impl R<u32, Reg<u32, _RXCTRL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 6:7 - 7:6] Reserved. Always read 0.

Source

pub fn gbias_lna2_ref(&self) -> GBIAS_LNA2_REF_R

Bits 4:5 - 5:4] Adjusts front-end LNA2/mixer PTAT current output (from M = 3 to M = 6), default: M = 5

Source

pub fn gbias_lna_ref(&self) -> GBIAS_LNA_REF_R

Bits 2:3 - 3:2] Adjusts front-end LNA PTAT current output (from M = 3 to M = 6), default: M = 5

Source

pub fn mix_current(&self) -> MIX_CURRENT_R

Bits 0:1 - 1:0] Control of the output current from the receiver mixers The current increases with increasing setting set.

Source§

impl R<u32, Reg<u32, _FSCTRL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn pre_current(&self) -> PRE_CURRENT_R

Bits 6:7 - 7:6] Prescaler current setting

Source

pub fn lodiv_buf_current_tx(&self) -> LODIV_BUF_CURRENT_TX_R

Bits 4:5 - 5:4] Adjusts current in mixer and PA buffers Used when TX_ACTIVE = 1

Source

pub fn lodiv_buf_current_rx(&self) -> LODIV_BUF_CURRENT_RX_R

Bits 2:3 - 3:2] Adjusts current in mixer and PA buffers Used when TX_ACTIVE = 0

Source

pub fn lodiv_current(&self) -> LODIV_CURRENT_R

Bits 0:1 - 1:0] Adjusts divider currents, except mixer and PA buffers

Source§

impl R<u32, Reg<u32, _FSCAL0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn vco_curr_comp_en_ov(&self) -> VCO_CURR_COMP_EN_OV_R

Bit 7 - 7:7] Force on the current comparator in the VCO. This signal is ORed with the signal coming from the calibration module.

Source

pub fn chp_disable(&self) -> CHP_DISABLE_R

Bit 6 - 6:6] Set this bit to manually disable charge pump by masking the up and down pulses from the phase detector.

Source

pub fn chp_current(&self) -> CHP_CURRENT_R

Bits 2:5 - 5:2] Digital bit vector defining the charge-pump output current on an exponential scale If FFC_BW_BOOST = 0, the read value is the value stored in CHP_CURRENT. If FFC_BW_BOOST = 1, the read value is CHP_CURRENT + 4. If the addition causes overflow, the signal is saturated.

Source

pub fn bw_boost_mode(&self) -> BW_BOOST_MODE_R

Bits 0:1 - 1:0] Control signal Defines the synthesizer boost mode 00: No BW_BOOST 01: BW_BOOST is high during calibration and approximately 30 us into the settling. 10: BW_BOOST is always on (or high). 11: Reserved

Source§

impl R<u32, Reg<u32, _FSCAL1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn vco_curr_cal_oe(&self) -> VCO_CURR_CAL_OE_R

Bit 7 - 7:7] Override current calibration

Source

pub fn vco_curr_cal(&self) -> VCO_CURR_CAL_R

Bits 2:6 - 6:2] Calibration result Override value if VCO_CURR_CAL_OE = 1

Source

pub fn vco_curr(&self) -> VCO_CURR_R

Bits 0:1 - 1:0] Defines current in VCO core Sets the multiplier between calibrated current and VCO current.

Source§

impl R<u32, Reg<u32, _FSCAL2>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bit 7 - 7:7] Reserved. Always read 0.

Source

pub fn vco_caparr_oe(&self) -> VCO_CAPARR_OE_R

Bit 6 - 6:6] Override the calibration result with the value from VCO_CAPARR[5:0].

Source

pub fn vco_caparr(&self) -> VCO_CAPARR_R

Bits 0:5 - 5:0] VCO capacitor array setting Programmed during calibration Override value when VCO_CAPARR_OE = 1

Source§

impl R<u32, Reg<u32, _FSCAL3>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bit 7 - 7:7] Reserved. Always read 0.

Source

pub fn vco_dac_en_ov(&self) -> VCO_DAC_EN_OV_R

Bit 6 - 6:6] Enables the VCO DAC when 1

Source

pub fn vco_vc_dac(&self) -> VCO_VC_DAC_R

Bits 2:5 - 5:2] Bit vector for programming varactor control voltage from VC DAC

Source

pub fn vco_caparr_cal_ctrl(&self) -> VCO_CAPARR_CAL_CTRL_R

Bits 0:1 - 1:0] Calibration accuracy setting for the cap_array calibration part of the calibration 00: 80 XOSC periods 01: 100 XOSC periods 10: 125 XOSC periods 11: 250 XOSC periods

Source§

impl R<u32, Reg<u32, _AGCCTRL0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bit 7 - 7:7] Reserved. Always read 0.

Source

pub fn agc_dr_xtnd_en(&self) -> AGC_DR_XTND_EN_R

Bit 6 - 6:6] 0: The AGC performs no adjustment of attenuation in the AAF. 1: The AGC adjusts the gain in the AAF to achieve extra dynamic range for the receiver.

Source

pub fn agc_dr_xtnd_thr(&self) -> AGC_DR_XTND_THR_R

Bits 0:5 - 5:0] If the measured error between the AGC reference magnitude and the actual magnitude in dB is larger than this threshold, the extra attenuation is enabled in the front end. This threshold must be set higher than 0x0C. This feature is enabled by AGC_DR_XTND_EN.

Source§

impl R<u32, Reg<u32, _AGCCTRL1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 6:7 - 7:6] Reserved. Always read 0.

Source

pub fn agc_ref(&self) -> AGC_REF_R

Bits 0:5 - 5:0] Target value for the AGC control loop, given in 1-dB steps

Source§

impl R<u32, Reg<u32, _AGCCTRL2>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn lna1_current(&self) -> LNA1_CURRENT_R

Bits 6:7 - 7:6] Overrride value for LNA 1 Used only when LNA_CURRENT_OE = 1 When read, this register returns the current applied gain setting. 00: 0-dB gain (reference level) 01: 3-dB gain 10: Reserved 11: 6-dB gain

Source

pub fn lna2_current(&self) -> LNA2_CURRENT_R

Bits 3:5 - 5:3] Overrride value for LNA 2 Used only when LNA_CURRENT_OE = 1 When read, this register returns the current applied gain setting. 000: 0-dB gain (reference level) 001: 3-dB gain 010: 6-dB gain 011: 9-dB gain 100: 12-dB gain 101: 15-dB gain 110: 18-dB gain 111: 21-dB gain

Source

pub fn lna3_current(&self) -> LNA3_CURRENT_R

Bits 1:2 - 2:1] Overrride value for LNA 3 Used only when LNA_CURRENT_OE = 1 When read, this register returns the current applied gain setting. 00: 0-dB gain (reference level) 01: 3-dB gain 10: 6-dB gain 11: 9-dB gain

Source

pub fn lna_current_oe(&self) -> LNA_CURRENT_OE_R

Bit 0 - 0:0] Write 1 to override the AGC LNA current setting with the values above (LNA1_CURRENT, LNA2_CURRENT, and LNA3_CURRENT).

Source§

impl R<u32, Reg<u32, _AGCCTRL3>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bit 7 - 7:7] Reserved. Always read 0.

Source

pub fn agc_settle_wait(&self) -> AGC_SETTLE_WAIT_R

Bits 5:6 - 6:5] Timing for AGC to wait for analog gain to settle after a gain change. During this period, the energy measurement in the AGC is paused. 00: 15 periods 01: 20 periods 10: 25 periods 11: 30 periods

Source

pub fn agc_win_size(&self) -> AGC_WIN_SIZE_R

Bits 3:4 - 4:3] Window size for the accumulate-and-dump function in the AGC. 00: 16 samples 01: 32 samples 10: 64 samples 11: 128 samples

Source

pub fn aaf_rp(&self) -> AAF_RP_R

Bits 1:2 - 2:1] Overrides the control signals of the AGC to AAF when AAF_RP_OE = 1. When read, it returns the applied signal to the AAF. 00: 9-dB attenuation in AAF 01: 6-dB attenuation in AAF 10: 3-dB attenuation in AAF 11: 0-dB attenuation in AAF (reference level)

Source

pub fn aaf_rp_oe(&self) -> AAF_RP_OE_R

Bit 0 - 0:0] Override the AAF control signals of the AGC with the values stored in AAF_RP.

Source§

impl R<u32, Reg<u32, _ADCTEST0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn adc_vref_adj(&self) -> ADC_VREF_ADJ_R

Bits 6:7 - 7:6] Quantizer threshold control for test and debug

Source

pub fn adc_quant_adj(&self) -> ADC_QUANT_ADJ_R

Bits 4:5 - 5:4] Quantizer threshold control for test and debug

Source

pub fn adc_gm_adj(&self) -> ADC_GM_ADJ_R

Bits 1:3 - 3:1] Gm-control for test and debug

Source

pub fn adc_dac2_en(&self) -> ADC_DAC2_EN_R

Bit 0 - 0:0] Enables DAC2 for enhanced ADC stability

Source§

impl R<u32, Reg<u32, _ADCTEST1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn adc_test_ctrl(&self) -> ADC_TEST_CTRL_R

Bits 4:7 - 7:4] ADC test mode selector

Source

pub fn adc_c2_adj(&self) -> ADC_C2_ADJ_R

Bits 2:3 - 3:2] Used to adjust capacitor values in ADC

Source

pub fn adc_c3_adj(&self) -> ADC_C3_ADJ_R

Bits 0:1 - 1:0] Used to adjust capacitor values in ADC

Source§

impl R<u32, Reg<u32, _ADCTEST2>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bit 7 - 7:7] Reserved. Always read 0.

Source

pub fn adc_test_mode(&self) -> ADC_TEST_MODE_R

Bits 5:6 - 6:5] Test mode to enable output of ADC data from demodulator. When enabled, raw ADC data is clocked out on the GPIO pins. 00: Test mode disabled 01: Data from the I and Q ADCs are output (data rate 76 MHz) 10: Data from the I ADC is output. Two and two ADC samples grouped (data rate 38 MHz) 11: Data from the Q ADC is output. Two and two ADC samples grouped (data rate 38 MHz)

Source

pub fn aaf_rs(&self) -> AAF_RS_R

Bits 3:4 - 4:3] Controls series resistance of AAF

Source

pub fn adc_ff_adj(&self) -> ADC_FF_ADJ_R

Bits 1:2 - 2:1] Adjust feed forward

Source

pub fn adc_dac_rot(&self) -> ADC_DAC_ROT_R

Bit 0 - 0:0] Control of DAC DWA scheme 0 = DWA (scrambling) disabled 1 = DWA enabled

Source§

impl R<u32, Reg<u32, _MDMTEST0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn tx_tone(&self) -> TX_TONE_R

Bits 4:7 - 7:4] Enables the possibility to transmit a baseband tone by picking samples from the sine tables with a controllable phase step between the samples. The step size is controlled by TX_TONE. If MDMTEST1.MOD_IF is 0, the tone is superpositioned on the modulated data, effectively giving modulation with an IF. If MDMTEST1.MOD_IF is 1, only the tone is transmitted. 0000: -6 MHz 0001: -4 MHz 0010: -3 MHz 0011: -2 MHz 0100: -1 MHz 0101: -500 kHz 0110: -4 kHz 0111: 0 1000: 4 kHz 1001: 500 kHz 1010: 1 MHz 1011: 2 MHz 1100: 3 MHz 1101: 4 MHz 1110: 6 MHz Others: Reserved

Source

pub fn dc_win_size(&self) -> DC_WIN_SIZE_R

Bits 2:3 - 3:2] Controls the numbers of samples to be accumulated between each dump of the accumulate-and-dump filter used in DC removal 00: 32 samples 01: 64 samples 10: 128 samples 11: 256 samples

Source

pub fn dc_block_mode(&self) -> DC_BLOCK_MODE_R

Bits 0:1 - 1:0] Selects the mode of operation 00: The input signal to the DC blocker is passed to the output without any attempt to remove DC. 01: Enable DC cancellation. Normal operation 10: Freeze estimates of DC when sync is found. Resume estimating DC when searching for the next frame. 11: Reserved

Source§

impl R<u32, Reg<u32, _MDMTEST1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 6:7 - 7:6] Reserved. Always read 0.

Source

pub fn usemirror_if(&self) -> USEMIRROR_IF_R

Bit 5 - 5:5] 0: Use the normal IF frequency (MDMTEST0.TX_TONE) for automatic IF compensation of channel frequency on TX. 1: Use mirror IF frequency for automatic compensation of channel frequency on TX.

Source

pub fn mod_if(&self) -> MOD_IF_R

Bit 4 - 4:4] 0: Modulation is performed at an IF set by MDMTEST0.TX_TONE. The tone set by MDMTEST0.TX_TONE is superimposed on the data. 1: Modulate a tone set by MDMTEST0.TX_TONE. A tone is transmitted with frequency set by MDMTEST0.TX_TONE.

Source

pub fn ramp_amp(&self) -> RAMP_AMP_R

Bit 3 - 3:3] 1: Enable ramping of DAC output amplitude during startup and finish. 0: Disable ramping of DAC output amplitude.

Source

pub fn rfc_sniff_en(&self) -> RFC_SNIFF_EN_R

Bit 2 - 2:2] 0: Packet sniffer module disabled 1: Packet sniffer module enabled. The received and transmitted data can be observed on GPIO pins.

Source

pub fn loopback_en(&self) -> LOOPBACK_EN_R

Bit 0 - 0:0] Enables loopback of modulated data into the receiver chain 0: An STXCAL instruction calibrates for TX. Use STXON to continue to active TX. 1: An STXCAL instruction enables the loopback mode.

Source§

impl R<u32, Reg<u32, _DACTEST0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn dac_q_o(&self) -> DAC_Q_O_R

Bits 0:7 - 7:0] Q-branch DAC override value when DAC_SRC = 001 If DAC_SRC is set to be ADC data, CORDIC magnitude, or channel filtered data, then DAC_Q_O controls the part of the word in question that is actually multiplexed to the DAC, as described below. 000111: Bits 7:0 001000: Bits 8:1 001001: Bits 9:2 … If an invalid setting is chosen, the DAC outputs only zeros (minimum value).

Source§

impl R<u32, Reg<u32, _DACTEST1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn dac_i_o(&self) -> DAC_I_O_R

Bits 0:7 - 7:0] I-branch DAC override value when DAC_SRC = 001 If DAC_SRC is set to be ADC data, CORDIC magnitude, channel filtered data, or DC filtered data, then DAC_I_O controls the part of the word in question that is actually multiplexed to the DAC as described below. 000111: Bits 7:0 001000: Bits 8:1 001001: Bits 9:2 … If an invalid setting is chosen, then the DAC outputs only zeros (minimum value).

Source§

impl R<u32, Reg<u32, _DACTEST2>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 6:7 - 7:6] Reserved. Always read 0.

Source

pub fn dac_dem_en(&self) -> DAC_DEM_EN_R

Bit 5 - 5:5] Enable and disable dynamic element matching Drives RFR_DAC_DEM_EN

Source

pub fn dac_casc_ctrl(&self) -> DAC_CASC_CTRL_R

Bits 3:4 - 4:3] Adjustment of output stage Drives RFR_DAC_CASC_CTRL

Source

pub fn dac_src(&self) -> DAC_SRC_R

Bits 0:2 - 2:0] The TX DACs data source is selected by DAC_SRC according to: 000: Normal operation (from modulator) 001: The DAC_I_O and DAC_Q_O override values 010: ADC data after decimation, magnitude controlled by DAC_I_O and DAC_Q_O 011: I/Q after decimation, channel and DC filtering, magnitude controlled by DAC_I_O and DAC_Q_O 100: CORDIC magnitude output and front-end gain is output, magnitude controlled by DAC_I_O and DAC_Q_O 101: RSSI I output on the I DAC 111: Reserved

Source§

impl R<u32, Reg<u32, _ATEST>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 6:7 - 7:6] Reserved. Always read 0.

Source

pub fn atest_ctrl(&self) -> ATEST_CTRL_R

Bits 0:5 - 5:0] Controls the analog test mode: 00 0000: Disabled 00 0001: Enables the temperature sensor (see also the CCTEST_TR0 register description). Other values reserved.

Source§

impl R<u32, Reg<u32, _PTEST0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn pre_pd(&self) -> PRE_PD_R

Bit 7 - 7:7] Prescaler power-down signal When PD_OVERRIDE = 1

Source

pub fn chp_pd(&self) -> CHP_PD_R

Bit 6 - 6:6] Charge pump power-down signal When PD_OVERRIDE = 1

Source

pub fn adc_pd(&self) -> ADC_PD_R

Bit 5 - 5:5] ADC power-down signal When PD_OVERRIDE = 1

Source

pub fn dac_pd(&self) -> DAC_PD_R

Bit 4 - 4:4] DAC power-down signal When PD_OVERRIDE = 1

Source

pub fn lna_pd(&self) -> LNA_PD_R

Bits 2:3 - 3:2] Low-noise amplifier power-down signal Defines LNA/mixer power-down modes: 00: Power up 01: LNA off, mixer/regulator on 10: LNA/mixer off, regulator on 11: PD When PD_OVERRIDE = 1

Source

pub fn txmix_pd(&self) -> TXMIX_PD_R

Bit 1 - 1:1] Transmit mixer power-down signal When PD_OVERRIDE = 1

Source

pub fn aaf_pd(&self) -> AAF_PD_R

Bit 0 - 0:0] Antialiasing filter power-down signal When PD_OVERRIDE = 1

Source§

impl R<u32, Reg<u32, _PTEST1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 4:7 - 7:4] Reserved. Always read 0.

Source

pub fn pd_override(&self) -> PD_OVERRIDE_R

Bit 3 - 3:3] Override enabling and disabling of various modules (for debug and testing only) It is impossible to override hard-coded BIAS_PD[1:0] depenancy.

Source

pub fn pa_pd(&self) -> PA_PD_R

Bit 2 - 2:2] Power amplifier power-down signal When PD_OVERRIDE = 1

Source

pub fn vco_pd(&self) -> VCO_PD_R

Bit 1 - 1:1] VCO power-down signal When PD_OVERRIDE = 1

Source

pub fn lodiv_pd(&self) -> LODIV_PD_R

Bit 0 - 0:0] LO power-down signal When PD_OVERRIDE = 1

Source§

impl R<u32, Reg<u32, _CSPPROG_0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_2>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_3>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_4>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_5>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_6>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_7>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_8>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_9>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_10>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_11>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_12>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_13>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_14>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_15>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_16>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_17>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_18>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_19>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_20>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_21>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_22>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPPROG_23>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_instr(&self) -> CSP_INSTR_R

Bits 0:7 - 7:0] Byte N of the CSP program memory

Source§

impl R<u32, Reg<u32, _CSPCTRL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 1:7 - 7:1] Reserved. Always read 0.

Source

pub fn mcu_ctrl(&self) -> MCU_CTRL_R

Bit 0 - 0:0] CSP MCU control input

Source§

impl R<u32, Reg<u32, _CSPSTAT>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 6:7 - 7:6] Reserved. Always read 0.

Source

pub fn csp_running(&self) -> CSP_RUNNING_R

Bit 5 - 5:5] 1: CSP is running. 0: CSP is idle.

Source

pub fn csp_pc(&self) -> CSP_PC_R

Bits 0:4 - 4:0] CSP program counter

Source§

impl R<u32, Reg<u32, _CSPX>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn cspx(&self) -> CSPX_R

Bits 0:7 - 7:0] Used by CSP instructions WAITX, RANDXY, INCX, DECX, and conditional instructions.

Source§

impl R<u32, Reg<u32, _CSPY>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn cspy(&self) -> CSPY_R

Bits 0:7 - 7:0] Used by CSP instructions RANDXY, INCY, DECY, and conditional instructions.

Source§

impl R<u32, Reg<u32, _CSPZ>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn cspz(&self) -> CSPZ_R

Bits 0:7 - 7:0] Used by CSP instructions INCZ, DECZ, and conditional instructions.

Source§

impl R<u32, Reg<u32, _CSPT>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn cspt(&self) -> CSPT_R

Bits 0:7 - 7:0] Content is decremented each time the MAC Timer overflows while the CSP program is running. The SCP program stops when decremented to 0. Setting CSPT = 0xFF prevents the register from being decremented.

Source§

impl R<u32, Reg<u32, _RFC_OBS_CTRL0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bit 7 - 7:7] Reserved. Always read 0.

Source

pub fn rfc_obs_pol0(&self) -> RFC_OBS_POL0_R

Bit 6 - 6:6] The signal chosen by RFC_OBS_MUX0 is XORed with this bit.

Source

pub fn rfc_obs_mux0(&self) -> RFC_OBS_MUX0_R

Bits 0:5 - 5:0] Controls which observable signal from RF Core is to be muxed out to rfc_obs_sigs[0]. 00 0000: 0 - Constant value 00 0001: 1 - Constant value 00 1000: rfc_sniff_data - Data from packet sniffer. Sample data on rising edges of sniff_clk. 00 1001: rfc_sniff_clk - 250kHz clock for packet sniffer data. 00 1100: rssi_valid - Pin is high when the RSSI value has been updated at least once since RX was started. Cleared when leaving RX. 00 1101: demod_cca - Clear channel assessment. See FSMSTAT1 register for details on how to configure the behavior of this signal. 00 1110: sampled_cca - A sampled version of the CCA bit from demodulator. The value is updated whenever a SSAMPLECCA or STXONCCA strobe is issued. 00 1111: sfd_sync - Pin is high when a SFD has been received or transmitted. Cleared when leaving RX/TX respectively. Not to be confused with the SFD exception. 01 0000: tx_active - Indicates that FFCTRL is in one of the TX states. Active-high. Note: This signal might have glitches, because it has no output flip-flop and is based on the current state register of the FFCTRL FSM. 01 0001: rx_active - Indicates that FFCTRL is in one of the RX states. Active-high. Note: This signal might have glitches, because it has no output flip-flop and is based on the current state register of the FFCTRL FSM. 01 0010: ffctrl_fifo - Pin is high when one or more bytes are in the RXFIFO. Low during RXFIFO overflow. 01 0011: ffctrl_fifop - Pin is high when the number of bytes in the RXFIFO exceeds the programmable threshold or at least one complete frame is in the RXFIFO. Also high during RXFIFO overflow. Not to be confused with the FIFOP exception. 01 0100: packet_done - A complete frame has been received. I.e., the number of bytes set by the frame-length field has been received. 01 0110: rfc_xor_rand_i_q - XOR between I and Q random outputs. Updated at 8 MHz. 01 0111: rfc_rand_q - Random data output from the Q channel of the receiver. Updated at 8 MHz. 01 1000: rfc_rand_i - Random data output from the I channel of the receiver. Updated at 8 MHz 01 1001: lock_status - 1 when PLL is in lock, otherwise 0 10 1000: pa_pd - Power amplifier power-down signal 10 1010: lna_pd - LNA power-down signal Others: Reserved

Source§

impl R<u32, Reg<u32, _RFC_OBS_CTRL1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bit 7 - 7:7] Reserved. Always read 0.

Source

pub fn rfc_obs_pol1(&self) -> RFC_OBS_POL1_R

Bit 6 - 6:6] The signal chosen by RFC_OBS_MUX1 is XORed with this bit.

Source

pub fn rfc_obs_mux1(&self) -> RFC_OBS_MUX1_R

Bits 0:5 - 5:0] Controls which observable signal from RF Core is to be muxed out to rfc_obs_sigs[1]. See description of RFC_OBS_CTRL0 for details.

Source§

impl R<u32, Reg<u32, _RFC_OBS_CTRL2>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bit 7 - 7:7] Reserved. Always read 0.

Source

pub fn rfc_obs_pol2(&self) -> RFC_OBS_POL2_R

Bit 6 - 6:6] The signal chosen by RFC_OBS_MUX2 is XORed with this bit.

Source

pub fn rfc_obs_mux2(&self) -> RFC_OBS_MUX2_R

Bits 0:5 - 5:0] Controls which observable signal from RF Core is to be muxed out to rfc_obs_sigs[2]. See description of RFC_OBS_CTRL0 for details.

Source§

impl R<u32, Reg<u32, _TXFILTCFG>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 4:7 - 7:4] Reserved. Always read 0.

Source

pub fn fc(&self) -> FC_R

Bits 0:3 - 3:0] Drives signal rfr_txfilt_fc

Source§

impl R<u32, Reg<u32, _MTCSPCFG>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bit 7 - 7:7] Reserved. Always read 0.

Source

pub fn mactimer_evenmt_cfg(&self) -> MACTIMER_EVENMT_CFG_R

Bits 4:6 - 6:4] Selects the event that triggers an MT_EVENT2 pulse 000: MT_per_event 001: MT_cmp1_event 010: MT_cmp2_event 011: MTovf_per_event 100: MTovf_cmp1_event 101: MTovf_cmp2_event 110: Reserved 111: No event

Source

pub fn reserved3(&self) -> RESERVED3_R

Bit 3 - 3:3] Reserved. Always read 0.

Source

pub fn mactimer_event1_cfg(&self) -> MACTIMER_EVENT1_CFG_R

Bits 0:2 - 2:0] Selects the event that triggers an MT_EVENT1 pulse 000: MT_per_event 001: MT_cmp1_event 010: MT_cmp2_event 011: MTovf_per_event 100: MTovf_cmp1_event 101: MTovf_cmp2_event 110: Reserved 111: No event

Source§

impl R<u32, Reg<u32, _MTCTRL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 4:7 - 7:4] Reserved. Always read 0.

Source

pub fn latch_mode(&self) -> LATCH_MODE_R

Bit 3 - 3:3] 0: Reading MTM0 with MTMSEL.MTMSEL = 000 latches the high byte of the timer, making it ready to be read from MTM1. Reading MTMOVF0 with MTMSEL.MTMOVFSEL = 000 latches the two most-significant bytes of the overflow counter, making it possible to read these from MTMOVF1 and MTMOVF2. 1: Reading MTM0 with MTMSEL.MTMSEL = 000 latches the high byte of the timer and the entire overflow counter at once, making it possible to read the values from MTM1, MTMOVF0, MTMOVF1, and MTMOVF2.

Source

pub fn state(&self) -> STATE_R

Bit 2 - 2:2] State of MAC Timer 0: Timer idle 1: Timer running

Source

pub fn sync(&self) -> SYNC_R

Bit 1 - 1:1] 0: Starting and stopping of timer is immediate; that is, synchronous with clk_rf_32m. 1: Starting and stopping of timer occurs at the first positive edge of the 32-kHz clock. For more details regarding timer start and stop, see Section 22.4.

Source

pub fn run(&self) -> RUN_R

Bit 0 - 0:0] Write 1 to start timer, write 0 to stop timer. When read, it returns the last written value.

Source§

impl R<u32, Reg<u32, _MTIRQM>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 6:7 - 7:6] Reserved. Always read 0.

Source

pub fn mactimer_ovf_compare2m(&self) -> MACTIMER_OVF_COMPARE2M_R

Bit 5 - 5:5] Enables the MACTIMER_OVF_COMPARE2 interrupt

Source

pub fn mactimer_ovf_compare1m(&self) -> MACTIMER_OVF_COMPARE1M_R

Bit 4 - 4:4] Enables the MACTIMER_OVF_COMPARE1 interrupt

Source

pub fn mactimer_ovf_perm(&self) -> MACTIMER_OVF_PERM_R

Bit 3 - 3:3] Enables the MACTIMER_OVF_PER interrupt

Source

pub fn mactimer_compare2m(&self) -> MACTIMER_COMPARE2M_R

Bit 2 - 2:2] Enables the MACTIMER_COMPARE2 interrupt

Source

pub fn mactimer_compare1m(&self) -> MACTIMER_COMPARE1M_R

Bit 1 - 1:1] Enables the MACTIMER_COMPARE1 interrupt

Source

pub fn mactimer_perm(&self) -> MACTIMER_PERM_R

Bit 0 - 0:0] Enables the MACTIMER_PER interrupt

Source§

impl R<u32, Reg<u32, _MTIRQF>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 6:7 - 7:6] Reserved. Always read 0.

Source

pub fn mactimer_ovf_compare2f(&self) -> MACTIMER_OVF_COMPARE2F_R

Bit 5 - 5:5] Set when the MAC Timer overflow counter counts to the value set at MTovf_cmp2

Source

pub fn mactimer_ovf_compare1f(&self) -> MACTIMER_OVF_COMPARE1F_R

Bit 4 - 4:4] Set when the MAC Timer overflow counter counts to the value set at Timer 2 MTovf_cmp1

Source

pub fn mactimer_ovf_perf(&self) -> MACTIMER_OVF_PERF_R

Bit 3 - 3:3] Set when the MAC Timer overflow counter would have counted to a value equal to MTovf_per, but instead wraps to 0

Source

pub fn mactimer_compare2f(&self) -> MACTIMER_COMPARE2F_R

Bit 2 - 2:2] Set when the MAC Timer counter counts to the value set at MT_cmp2

Source

pub fn mactimer_compare1f(&self) -> MACTIMER_COMPARE1F_R

Bit 1 - 1:1] Set when the MAC Timer counter counts to the value set at MT_cmp1

Source

pub fn mactimer_perf(&self) -> MACTIMER_PERF_R

Bit 0 - 0:0] Set when the MAC Timer counter would have counted to a value equal to MT_per, but instead wraps to 0

Source§

impl R<u32, Reg<u32, _MTMSEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bit 7 - 7:7] Reserved. Always read 0.

Source

pub fn mtmovfsel(&self) -> MTMOVFSEL_R

Bits 4:6 - 6:4] The value of this register selects the internal registers that are modified or read when accessing MTMOVF0, MTMOVF1, and MTMOVF2. 000: MTovf (overflow counter) 001: MTovf_cap (overflow capture) 010: MTovf_per (overflow period) 011: MTovf_cmp1 (overflow compare 1) 100: MTovf_cmp2 (overflow compare 2) 101 to 111: Reserved

Source

pub fn reserved3(&self) -> RESERVED3_R

Bit 3 - 3:3] Reserved. Read as 0.

Source

pub fn mtmsel(&self) -> MTMSEL_R

Bits 0:2 - 2:0] The value of this register selects the internal registers that are modified or read when accessing MTM0 and MTM1. 000: MTtim (timer count value) 001: MT_cap (timer capture) 010: MT_per (timer period) 011: MT_cmp1 (timer compare 1) 100: MT_cmp2 (timer compare 2) 101 to 111: Reserved MTM0

Source§

impl R<u32, Reg<u32, _MTM0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn mtm0(&self) -> MTM0_R

Bits 0:7 - 7:0] Indirectly returns and modifies bits [7:0] of an internal register depending on the value of MTMSEL.MTMSEL. When reading the MTM0 register with MTMSEL.MTMSEL set to 000 and MTCTRL.LATCH_MODE set to 0, the timer (MTtim) value is latched. When reading the MTM0 register with MTMSEL.MTMSEL set to 000 and MTCTRL.LATCH_MODE set to 1, the timer (MTtim) and overflow counter (MTovf) values are latched.

Source§

impl R<u32, Reg<u32, _MTM1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn mtm1(&self) -> MTM1_R

Bits 0:7 - 7:0] Indirectly returns and modifies bits [15:8] of an internal register, depending on the value of MTMSEL.MTMSEL. When reading the MTM0 register with MTMSEL.MTMSEL set to 000, the timer (MTtim) value is latched. Reading this register with MTMSEL.MTMSEL set to 000 returns the latched value of MTtim[15:8].

Source§

impl R<u32, Reg<u32, _MTMOVF2>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn mtmovf2(&self) -> MTMOVF2_R

Bits 0:7 - 7:0] Indirectly returns and modifies bits [23:16] of an internal register, depending on the value of MTMSEL.MTMOVFSEL. Reading this register with MTMSEL.MTMOVFSEL set to 000 returns the latched value of MTovf[23:16].

Source§

impl R<u32, Reg<u32, _MTMOVF1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn mtmovf1(&self) -> MTMOVF1_R

Bits 0:7 - 7:0] Indirectly returns and modifies bits [15:8] of an internal register, depending on the value of MTMSEL.MTMSEL. Reading this register with MTMSEL.MTMOVFSEL set to 000 returns the latched value of MTovf[15:8].

Source§

impl R<u32, Reg<u32, _MTMOVF0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn mtmovf0(&self) -> MTMOVF0_R

Bits 0:7 - 7:0] Indirectly returns and modifies bits [7:0] of an internal register, depending on the value of MTMSEL.MTMOVFSEL. When reading the MTMOVF0 register with MTMSEL.MTMOVFSEL set to 000 and MTCTRL.LATCH_MODE set to 0, the overflow counter value (MTovf) is latched. When reading the MTM0 register with MTMSEL.MTMOVFSEL set to 000 and MTCTRL.LATCH_MODE set to 1, the overflow counter value (MTovf) is latched.

Source§

impl R<u32, Reg<u32, _RFDATA>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn rfd(&self) -> RFD_R

Bits 0:7 - 7:0] Data written to the register is written to the TX FIFO. When reading this register, data from the RX FIFO is read.

Source§

impl R<u32, Reg<u32, _RFERRF>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn strobeerr(&self) -> STROBEERR_R

Bit 6 - 6:6] A command strobe was issued when it could not be processed. Triggered if trying to disable the radio when it is already disabled, or when trying to do a SACK, SACKPEND, or SNACK command when not in active RX. 0: No interrupt pending 1: Interrupt pending

Source

pub fn txunderf(&self) -> TXUNDERF_R

Bit 5 - 5:5] TX FIFO underflowed. 0: No interrupt pending 1: Interrupt pending

Source

pub fn txoverf(&self) -> TXOVERF_R

Bit 4 - 4:4] TX FIFO overflowed. 0: No interrupt pending 1: Interrupt pending

Source

pub fn rxunderf(&self) -> RXUNDERF_R

Bit 3 - 3:3] RX FIFO underflowed. 0: No interrupt pending 1: Interrupt pending

Source

pub fn rxoverf(&self) -> RXOVERF_R

Bit 2 - 2:2] RX FIFO overflowed. 0: No interrupt pending 1: Interrupt pending

Source

pub fn rxabo(&self) -> RXABO_R

Bit 1 - 1:1] Reception of a frame was aborted. 0: No interrupt pending 1: Interrupt pending

Source

pub fn nlock(&self) -> NLOCK_R

Bit 0 - 0:0] The frequency synthesizer failed to achieve lock after time-out, or lock is lost during reception. The receiver must be restarted to clear this error situation. 0: No interrupt pending 1: Interrupt pending

Source§

impl R<u32, Reg<u32, _RFIRQF1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn csp_wait(&self) -> CSP_WAIT_R

Bit 5 - 5:5] Execution continued after a wait instruction in CSP. 0: No interrupt pending 1: Interrupt pending

Source

pub fn csp_stop(&self) -> CSP_STOP_R

Bit 4 - 4:4] CSP has stopped program execution. 0: No interrupt pending 1: Interrupt pending

Source

pub fn csp_manint(&self) -> CSP_MANINT_R

Bit 3 - 3:3] Manual interrupt generated from CSP 0: No interrupt pending 1: Interrupt pending

Source

pub fn rfidle(&self) -> RFIDLE_R

Bit 2 - 2:2] Radio state-machine has entered the IDLE state. 0: No interrupt pending 1: Interrupt pending

Source

pub fn txdone(&self) -> TXDONE_R

Bit 1 - 1:1] A complete frame has been transmitted. 0: No interrupt pending 1: Interrupt pending

Source

pub fn txackdone(&self) -> TXACKDONE_R

Bit 0 - 0:0] An acknowledgement frame has been completely transmitted. 0: No interrupt pending 1: Interrupt pending

Source§

impl R<u32, Reg<u32, _RFIRQF0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn rxmaskzero(&self) -> RXMASKZERO_R

Bit 7 - 7:7] The RXENABLE register has gone from a nonzero state to an all-zero state. 0: No interrupt pending 1: Interrupt pending

Source

pub fn rxpktdone(&self) -> RXPKTDONE_R

Bit 6 - 6:6] A complete frame has been received. 0: No interrupt pending 1: Interrupt pending

Source

pub fn frame_accepted(&self) -> FRAME_ACCEPTED_R

Bit 5 - 5:5] Frame has passed frame filtering. 0: No interrupt pending 1: Interrupt pending

Source

pub fn src_match_found(&self) -> SRC_MATCH_FOUND_R

Bit 4 - 4:4] Source match is found. 0: No interrupt pending 1: Interrupt pending

Source

pub fn src_match_done(&self) -> SRC_MATCH_DONE_R

Bit 3 - 3:3] Source matching is complete. 0: No interrupt pending 1: Interrupt pending

Source

pub fn fifop(&self) -> FIFOP_R

Bit 2 - 2:2] The number of bytes in the RX FIFO is greater than the threshold. Also raised when a complete frame is received, and when a packet is read out completely and more complete packets are available. 0: No interrupt pending 1: Interrupt pending

Source

pub fn sfd(&self) -> SFD_R

Bit 1 - 1:1] SFD has been received or transmitted. 0: No interrupt pending 1: Interrupt pending

Source

pub fn act_unused(&self) -> ACT_UNUSED_R

Bit 0 - 0:0] Reserved 0: No interrupt pending 1: Interrupt pending

Source§

impl R<u32, Reg<u32, _RFST>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn instr(&self) -> INSTR_R

Bits 0:7 - 7:0] Data written to this register is written to the CSP instruction memory. Reading this register returns the CSP instruction currently being executed.

Source§

impl R<u32, Reg<u32, _ADDR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn update(&self) -> UPDATE_R

Bit 7 - 7:7] This bit is set by hardware when writing to this register, and is cleared by hardware when the new address becomes effective.

Source

pub fn usbaddr(&self) -> USBADDR_R

Bits 0:6 - 6:0] Device address. The address shall be updated upon successful completion of the status stage of the SET_ADDRESS request.

Source§

impl R<u32, Reg<u32, _POW>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn isowaitsof(&self) -> ISOWAITSOF_R

Bit 7 - 7:7] For isochronous mode IN endpoints: When set, the USB controller will wait for an SOF token from the time USB_CSIL.INPKTRDY is set before sending the packet. If an IN token is received before an SOF token, then a zero length data packet will be sent.

Source

pub fn reserved7(&self) -> RESERVED7_R

Bits 4:6 - 6:4] Reserved

Source

pub fn rst(&self) -> RST_R

Bit 3 - 3:3] Indicates that reset signaling is present on the bus

Source

pub fn resume(&self) -> RESUME_R

Bit 2 - 2:2] Drives resume signaling for remote wakeup According to the USB Specification, the resume signal must be held active for at least 1 ms and no more than 15 ms. It is recommended to keep this bit set for approximately 10 ms.

Source

pub fn suspend(&self) -> SUSPEND_R

Bit 1 - 1:1] Indicates entry into suspend mode Suspend mode must be enabled by setting USB_POW.SUSPENDEN Software clears this bit by reading the USB_CIF register or by asserting USB_POW.RESUME

Source

pub fn suspenden(&self) -> SUSPENDEN_R

Bit 0 - 0:0] Enables detection of and entry into suspend mode.

Source§

impl R<u32, Reg<u32, _IIF>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 6:7 - 7:6] Reserved

Source

pub fn inep5if(&self) -> INEP5IF_R

Bit 5 - 5:5] Interrupt flag for IN endpoint 5 Cleared by hardware when read

Source

pub fn inep4if(&self) -> INEP4IF_R

Bit 4 - 4:4] Interrupt flag for IN endpoint 4 Cleared by hardware when read

Source

pub fn inep3if(&self) -> INEP3IF_R

Bit 3 - 3:3] Interrupt flag for IN endpoint 3 Cleared by hardware when read

Source

pub fn inep2if(&self) -> INEP2IF_R

Bit 2 - 2:2] Interrupt flag for IN endpoint 2 Cleared by hardware when read

Source

pub fn inep1if(&self) -> INEP1IF_R

Bit 1 - 1:1] Interrupt flag for IN endpoint 1 Cleared by hardware when read

Source

pub fn ep0if(&self) -> EP0IF_R

Bit 0 - 0:0] Interrupt flag for endpoint 0 Cleared by hardware when read

Source§

impl R<u32, Reg<u32, _OIF>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 6:7 - 7:6] Reserved

Source

pub fn outep5if(&self) -> OUTEP5IF_R

Bit 5 - 5:5] Interrupt flag for OUT endpoint 5 Cleared by hardware when read

Source

pub fn outep4if(&self) -> OUTEP4IF_R

Bit 4 - 4:4] Interrupt flag for OUT endpoint 4 Cleared by hardware when read

Source

pub fn outep3if(&self) -> OUTEP3IF_R

Bit 3 - 3:3] Interrupt flag for OUT endpoint 3 Cleared by hardware when read

Source

pub fn outep2if(&self) -> OUTEP2IF_R

Bit 2 - 2:2] Interrupt flag for OUT endpoint 2 Cleared by hardware when read

Source

pub fn outep1if(&self) -> OUTEP1IF_R

Bit 1 - 1:1] Interrupt flag for OUT endpoint 1 Cleared by hardware when read

Source

pub fn reserved1(&self) -> RESERVED1_R

Bit 0 - 0:0] Reserved

Source§

impl R<u32, Reg<u32, _CIF>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 4:7 - 7:4] Reserved

Source

pub fn sofif(&self) -> SOFIF_R

Bit 3 - 3:3] Start-of-frame interrupt flag Cleared by hardware when read

Source

pub fn rstif(&self) -> RSTIF_R

Bit 2 - 2:2] Reset interrupt flag Cleared by hardware when read

Source

pub fn resumeif(&self) -> RESUMEIF_R

Bit 1 - 1:1] Resume interrupt flag Cleared by hardware when read

Source

pub fn suspendif(&self) -> SUSPENDIF_R

Bit 0 - 0:0] Suspend interrupt flag Cleared by hardware when read

Source§

impl R<u32, Reg<u32, _IIE>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 6:7 - 7:6] Reserved

Source

pub fn inep5ie(&self) -> INEP5IE_R

Bit 5 - 5:5] Interrupt enable for IN endpoint 5 0: Interrupt disabled 1: Interrupt enabled

Source

pub fn inep4ie(&self) -> INEP4IE_R

Bit 4 - 4:4] Interrupt enable for IN endpoint 4 0: Interrupt disabled 1: Interrupt enabled

Source

pub fn inep3ie(&self) -> INEP3IE_R

Bit 3 - 3:3] Interrupt enable for IN endpoint 3 0: Interrupt disabled 1: Interrupt enabled

Source

pub fn inep2ie(&self) -> INEP2IE_R

Bit 2 - 2:2] Interrupt enable for IN endpoint 2 0: Interrupt disabled 1: Interrupt enabled

Source

pub fn inep1ie(&self) -> INEP1IE_R

Bit 1 - 1:1] Interrupt enable for IN endpoint 1 0: Interrupt disabled 1: Interrupt enabled

Source

pub fn ep0ie(&self) -> EP0IE_R

Bit 0 - 0:0] Interrupt enable for endpoint 0 0: Interrupt disabled 1: Interrupt enabled

Source§

impl R<u32, Reg<u32, _OIE>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 6:7 - 7:6] Reserved

Source

pub fn outep5ie(&self) -> OUTEP5IE_R

Bit 5 - 5:5] Interrupt enable for OUT endpoint 5 0: Interrupt disabled 1: Interrupt enabled

Source

pub fn outep4ie(&self) -> OUTEP4IE_R

Bit 4 - 4:4] Interrupt enable for OUT endpoint 4 0: Interrupt disabled 1: Interrupt enabled

Source

pub fn outep3ie(&self) -> OUTEP3IE_R

Bit 3 - 3:3] Interrupt enable for OUT endpoint 3 0: Interrupt disabled 1: Interrupt enabled

Source

pub fn outep2ie(&self) -> OUTEP2IE_R

Bit 2 - 2:2] Interrupt enable for OUT endpoint 2 0: Interrupt disabled 1: Interrupt enabled

Source

pub fn outep1ie(&self) -> OUTEP1IE_R

Bit 1 - 1:1] Interrupt enable for OUT endpoint 1 0: Interrupt disabled 1: Interrupt enabled

Source

pub fn reserved1(&self) -> RESERVED1_R

Bit 0 - 0:0] Reserved

Source§

impl R<u32, Reg<u32, _CIE>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 4:7 - 7:4] Reserved

Source

pub fn sofie(&self) -> SOFIE_R

Bit 3 - 3:3] Start-of-frame interrupt enable 0: Interrupt disabled 1: Interrupt enabled

Source

pub fn rstie(&self) -> RSTIE_R

Bit 2 - 2:2] Reset interrupt enable 0: Interrupt disabled 1: Interrupt enabled

Source

pub fn resumeie(&self) -> RESUMEIE_R

Bit 1 - 1:1] Resume interrupt enable 0: Interrupt disabled 1: Interrupt enabled

Source

pub fn suspendie(&self) -> SUSPENDIE_R

Bit 0 - 0:0] Suspend interrupt enable 0: Interrupt disabled 1: Interrupt enabled

Source§

impl R<u32, Reg<u32, _FRML>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn framel(&self) -> FRAMEL_R

Bits 0:7 - 7:0] Bits 7:0 of the 11-bit frame number The frame number is only updated upon successful reception of SOF tokens

Source§

impl R<u32, Reg<u32, _FRMH>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 3:7 - 7:3] Reserved

Source

pub fn frameh(&self) -> FRAMEH_R

Bits 0:2 - 2:0] Bits 10:8 of the 11-bit frame number The frame number is only updated upon successful reception of SOF tokens

Source§

impl R<u32, Reg<u32, _INDEX>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 4:7 - 7:4] Reserved

Source

pub fn usbindex(&self) -> USBINDEX_R

Bits 0:3 - 3:0] Index of the currently selected endpoint The index is set to 0 to enable access to endpoint 0 control and status registers The index is set to 1, 2, 3, 4 or 5 to enable access to IN/OUT endpoint 1, 2, 3, 4 or 5 control and status registers, respectively

Source§

impl R<u32, Reg<u32, _CTRL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn plllocked(&self) -> PLLLOCKED_R

Bit 7 - 7:7] PLL lock status. The PLL is locked when USB_CTRL.PLLLOCKED is 1.

Source

pub fn reserved7(&self) -> RESERVED7_R

Bits 3:6 - 6:3] Reserved

Source

pub fn reserved3(&self) -> RESERVED3_R

Bit 2 - 2:2] Reserved.

Source

pub fn pllen(&self) -> PLLEN_R

Bit 1 - 1:1] 48 MHz USB PLL enable When this bit is set, the 48 MHz PLL is started. Software must avoid access to other USB registers before the PLL has locked; that is, USB_CTRL.PLLLOCKED is 1. This bit can be set only when USB_CTRL.USBEN is 1. The PLL must be disabled before entering PM1 when suspended, and must be re-enabled when resuming operation.

Source

pub fn usben(&self) -> USBEN_R

Bit 0 - 0:0] USB enable The USB controller is reset when this bit is cleared

Source§

impl R<u32, Reg<u32, _MAXI>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn usbmaxi(&self) -> USBMAXI_R

Bits 0:7 - 7:0] Maximum packet size, in units of 8 bytes, for the selected IN endpoint The value of this register should match the wMaxPacketSize field in the standard endpoint descriptor for the endpoint. The value must not exceed the available memory.

Source§

impl R<u32, Reg<u32, _CS0_CSIL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn clrsetupend_or_reserved8(&self) -> CLRSETUPEND_OR_RESERVED8_R

Bit 7 - 7:7] USB_CS0.CLRSETUPEND [RW]: Software sets this bit to clear the USB_CS0.SETUPEND bit. It is cleared automatically. USB_CSIL.Reserved [RO]: Reserved

Source

pub fn clroutpktrdy_or_clrdatatog(&self) -> CLROUTPKTRDY_OR_CLRDATATOG_R

Bit 6 - 6:6] USB_CS0.CLROUTPKTRDY [RW]: Software sets this bit to clear the USB_CS0.OUTPKTRDY bit. It is cleared automatically. USB_CSIL.CLRDATATOG [RW]: Software sets this bit to reset the IN endpoint data toggle to 0.

Source

pub fn sendstall_or_sentstall(&self) -> SENDSTALL_OR_SENTSTALL_R

Bit 5 - 5:5] USB_CS0.SENDSTALL [RW]: Software sets this bit to terminate the current transaction with a STALL handshake. The bit is cleared automatically when the STALL handshake has been transmitted. USB_CSIL.SENTSTALL [RW]: For bulk/interrupt mode IN endpoints: This bit is set when a STALL handshake is transmitted. The FIFO is flushed and the USB_CSIL.INPKTRDY bit cleared. Software should clear this bit.

Source

pub fn setupend_or_sendstall(&self) -> SETUPEND_OR_SENDSTALL_R

Bit 4 - 4:4] USB_CS0.SETUPEND [RO]: This bit is set when a control transaction ends before the USB_CS0.DATAEND bit has been set. An interrupt is generated and the FIFO flushed at this time. Software clears this bit by setting USB_CS0.CLRSETUPEND. CSIL.SENDSTALL [RW]: For bulk/interrupt mode IN endpoints: Software sets this bit to issue a STALL handshake. Software clears this bit to terminate the stall condition.

Source

pub fn dataend_or_flushpacket(&self) -> DATAEND_OR_FLUSHPACKET_R

Bit 3 - 3:3] USB_CS0.DATAEND [RW]: This bit is used to signal the end of the data stage, and must be set: 1. When the last data packet is loaded and USB_CS0.INPKTRDY is set. 2. When the last data packet is unloaded and USB_CS0.CLROUTPKTRDY is set. 3. When USB_CS0.INPKTRDY is set to send a zero-length packet. The USB controller clears this bit automatically. USB_CSIL.FLUSHPACKET [RW]: Software sets this bit to flush the next packet to be transmitted from the IN endpoint FIFO. The FIFO pointer is reset and the USB_CSIL.INPKTRDY bit is cleared. Note: If the FIFO contains two packets, USB_CSIL.FLUSHPACKET will need to be set twice to completely clear the FIFO.

Source

pub fn sentstall_or_underrun(&self) -> SENTSTALL_OR_UNDERRUN_R

Bit 2 - 2:2] USB_CS0.SENTSTALL [RW]: This bit is set when a STALL handshake is sent. An interrupt is generated is generated when this bit is set. Software must clear this bit. USB_CSIL.UNDERRUN [RW]: In isochronous mode, this bit is set when a zero length data packet is sent after receiving an IN token with USB_CSIL.INPKTRDY not set. In bulk/interrupt mode, this bit is set when a NAK is returned in response to an IN token. Software should clear this bit.

Source

pub fn inpktrdy_or_pktpresent(&self) -> INPKTRDY_OR_PKTPRESENT_R

Bit 1 - 1:1] USB_CS0. INPKTRDY [RW]: Software sets this bit after loading a data packet into the endpoint 0 FIFO. It is cleared automatically when the data packet has been transmitted. An interrupt is generated when the bit is cleared. USB_CSIL.PKTPRESENT [RO]: This bit is set when there is at least one packet in the IN endpoint FIFO.

Source

pub fn outpktrdy_or_inpktrdy(&self) -> OUTPKTRDY_OR_INPKTRDY_R

Bit 0 - 0:0] USB_CS0.OUTPKTRDY [RO]: Endpoint 0 data packet received An interrupt request (EP0) is generated if the interrupt is enabled. Software must read the endpoint 0 FIFO empty, and clear this bit by setting USB_CS0.CLROUTPKTRDY USB_CSIL.INPKTRDY [RW]: IN endpoint {1-5} packet transfer pending Software sets this bit after loading a data packet into the FIFO. It is cleared automatically when a data packet has been transmitted. An interrupt is generated (if enabled) when the bit is cleared. When using double-buffering, the bit is cleared immediately if the other FIFO is empty.

Source§

impl R<u32, Reg<u32, _CSIH>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn autiset(&self) -> AUTISET_R

Bit 7 - 7:7] If set by software, the USB_CSIL.INPKTRDY bit is automatically set when a data packet of maximum size (specified by USBMAXI) is loaded into the IN endpoint FIFO. If a packet of less than the maximum packet size is loaded, then USB_CSIL.INPKTRDY will have to be set manually.

Source

pub fn iso(&self) -> ISO_R

Bit 6 - 6:6] Selects IN endpoint type: 0: Bulk/interrupt 1: Isochronous

Source

pub fn reserved5(&self) -> RESERVED5_R

Bit 5 - 5:5] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn reserved4(&self) -> RESERVED4_R

Bit 4 - 4:4] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn forcedatatog(&self) -> FORCEDATATOG_R

Bit 3 - 3:3] Software sets this bit to force the IN endpoint’s data toggle to switch after each data packet is sent regardless of whether an ACK was received. This can be used by interrupt IN endpoints which are used to communicate rate feedback for isochronous endpoints.

Source

pub fn reserved2(&self) -> RESERVED2_R

Bits 1:2 - 2:1] Reserved

Source

pub fn indblbuf(&self) -> INDBLBUF_R

Bit 0 - 0:0] IN endpoint FIFO double-buffering enable: 0: Double buffering disabled 1: Double buffering enabled

Source§

impl R<u32, Reg<u32, _MAXO>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn usbmaxo(&self) -> USBMAXO_R

Bits 0:7 - 7:0] Maximum packet size, in units of 8 bytes, for the selected OUT endpoint The value of this register should match the wMaxPacketSize field in the standard endpoint descriptor for the endpoint. The value must not exceed the available memory.

Source§

impl R<u32, Reg<u32, _CSOL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn clrdatatog(&self) -> CLRDATATOG_R

Bit 7 - 7:7] Software sets this bit to reset the endpoint data toggle to 0.

Source

pub fn sentstall(&self) -> SENTSTALL_R

Bit 6 - 6:6] This bit is set when a STALL handshake is transmitted. An interrupt is generated when this bit is set. Software should clear this bit.

Source

pub fn sendstall(&self) -> SENDSTALL_R

Bit 5 - 5:5] For bulk/interrupt mode OUT endpoints: Software sets this bit to issue a STALL handshake. Software clears this bit to terminate the stall condition.

Source

pub fn flushpacket(&self) -> FLUSHPACKET_R

Bit 4 - 4:4] Software sets this bit to flush the next packet to be read from the endpoint OUT FIFO. Note: If the FIFO contains two packets, USB_CSOL.FLUSHPACKET will need to be set twice to completely clear the FIFO.

Source

pub fn dataerror(&self) -> DATAERROR_R

Bit 3 - 3:3] For isochronous mode OUT endpoints: This bit is set when USB_CSOL.OUTPKTRDY is set if the data packet has a CRC or bit-stuff error. It is cleared automatically when USB_CSOL.OUTPKTRDY is cleared.

Source

pub fn overrun(&self) -> OVERRUN_R

Bit 2 - 2:2] For isochronous mode OUT endpoints: This bit is set when an OUT packet cannot be loaded into the OUT endpoint FIFO. Firmware should clear this bit.

Source

pub fn fifofull(&self) -> FIFOFULL_R

Bit 1 - 1:1] This bit is set when no more packets can be loaded into the OUT endpoint FIFO.

Source

pub fn outpktrdy(&self) -> OUTPKTRDY_R

Bit 0 - 0:0] This bit is set when a data packet has been received. Software should clear this bit when the packet has been unloaded from the OUT endpoint FIFO. An interrupt is generated when the bit is set.

Source§

impl R<u32, Reg<u32, _CSOH>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn autoclear(&self) -> AUTOCLEAR_R

Bit 7 - 7:7] If software sets this bit, the USB_CSOL.OUTPKTRDY bit will be automatically cleared when a packet of maximum size (specified by USB_MAXO) has been unloaded from the OUT FIFO. When packets of less than the maximum packet size are unloaded, USB_CSOL.OUTPKTRDY will have to be cleared manually.

Source

pub fn iso(&self) -> ISO_R

Bit 6 - 6:6] Selects OUT endpoint type: 0: Bulk/interrupt 1: Isochronous

Source

pub fn reserved5(&self) -> RESERVED5_R

Bit 5 - 5:5] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn reserved4(&self) -> RESERVED4_R

Bit 4 - 4:4] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn reserved1(&self) -> RESERVED1_R

Bits 1:3 - 3:1] Reserved

Source

pub fn outdblbuf(&self) -> OUTDBLBUF_R

Bit 0 - 0:0] OUT endpoint FIFO double-buffering enable: 0: Double buffering disabled 1: Double buffering enabled

Source§

impl R<u32, Reg<u32, _CNT0_CNTL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn fifocnt_or_fifocntl(&self) -> FIFOCNT_OR_FIFOCNTL_R

Bits 0:7 - 7:0] USB_CS0.FIFOCNT (USBINDEX = 0) [RO]: Number of bytes received in the packet in the endpoint 0 FIFO Valid only when USB_CS0.OUTPKTRDY is set USB_CSIL.FIFOCNTL (USBINDEX = 1 to 5) [RW]: Bits 7:0 of the of the number of bytes received in the packet in the OUT endpoint {1-5} FIFO Valid only when USB_CSOL.OUTPKTRDY is set

Source§

impl R<u32, Reg<u32, _CNTH>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 3:7 - 7:3] Reserved

Source

pub fn fifocnth(&self) -> FIFOCNTH_R

Bits 0:2 - 2:0] Bits 10:8 of the of the number of bytes received in the packet in the OUT endpoint {1-5} FIFO Valid only when USB_CSOL.OUTPKTRDY is set

Source§

impl R<u32, Reg<u32, _F0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn usbf0(&self) -> USBF0_R

Bits 0:7 - 7:0] Endpoint 0 FIFO Reading this register unloads one byte from the endpoint 0 FIFO. Writing to this register loads one byte into the endpoint 0 FIFO. The FIFO memory for EP0 is used for incoming and outgoing data packets.

Source§

impl R<u32, Reg<u32, _F1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn usbf1(&self) -> USBF1_R

Bits 0:7 - 7:0] Endpoint 1 FIFO register Reading this register unloads one byte from the EP1 OUT FIFO. Writing to this register loads one byte into the EP1 IN FIFO.

Source§

impl R<u32, Reg<u32, _F2>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn usbf2(&self) -> USBF2_R

Bits 0:7 - 7:0] Endpoint 2 FIFO register Reading this register unloads one byte from the EP2 OUT FIFO. Writing to this register loads one byte into the EP2 IN FIFO.

Source§

impl R<u32, Reg<u32, _F3>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn usbf3(&self) -> USBF3_R

Bits 0:7 - 7:0] Endpoint 3 FIFO register Reading this register unloads one byte from the EP3 OUT FIFO. Writing to this register loads one byte into the EP3 IN FIFO.

Source§

impl R<u32, Reg<u32, _F4>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn usbf4(&self) -> USBF4_R

Bits 0:7 - 7:0] Endpoint 4 FIFO register Reading this register unloads one byte from the EP4 OUT FIFO. Writing to this register loads one byte into the EP4 IN FIFO.

Source§

impl R<u32, Reg<u32, _F5>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn usbf5(&self) -> USBF5_R

Bits 0:7 - 7:0] Endpoint 5 FIFO register Reading this register unloads one byte from the EP5 OUT FIFO. Writing to this register loads one byte into the EP5 IN FIFO.

Source§

impl R<u32, Reg<u32, _DMAC_CH0_CTRL>>

Source

pub fn reserved30(&self) -> RESERVED30_R

Bits 2:31 - 31:2] Should be written with 0s and ignored on read

Source

pub fn prio(&self) -> PRIO_R

Bit 1 - 1:1] Channel priority 0: Low 1: High If both channels have the same priority, access of the channels to the external port is arbitrated using the round robin scheme. If one channel has a high priority and another one low, the channel with the high priority is served first, in case of simultaneous access requests.

Source

pub fn en(&self) -> EN_R

Bit 0 - 0:0] Channel enable 0: Disabled 1: Enable Note: Disabling an active channel interrupts the DMA operation. The ongoing block transfer completes, but no new transfers are requested.

Source§

impl R<u32, Reg<u32, _DMAC_CH0_EXTADDR>>

Source

pub fn addr(&self) -> ADDR_R

Bits 0:31 - 31:0] Channel external address value When read during operation, it holds the last updated external address after being sent to the master interface.

Source§

impl R<u32, Reg<u32, _DMAC_CH0_DMALENGTH>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 16:31 - 31:16] Should be written with 0s and ignored on read

Source

pub fn dmalen(&self) -> DMALEN_R

Bits 0:15 - 15:0] Channel DMA length in bytes During configuration, this register contains the DMA transfer length in bytes. During operation, it contains the last updated value of the DMA transfer length after being sent to the master interface. Note: Setting this register to a nonzero value starts the transfer if the channel is enabled. Therefore, this register must be written last when setting up a DMA channel.

Source§

impl R<u32, Reg<u32, _DMAC_STATUS>>

Source

pub fn reserved14(&self) -> RESERVED14_R

Bits 18:31 - 31:18] Bits should be ignored on read.

Source

pub fn port_err(&self) -> PORT_ERR_R

Bit 17 - 17:17] Reflects possible transfer errors on the AHB port.

Source

pub fn reserved15(&self) -> RESERVED15_R

Bits 2:16 - 16:2] Bits should be ignored on read.

Source

pub fn ch1_act(&self) -> CH1_ACT_R

Bit 1 - 1:1] A value of 1 indicates that channel 1 is active (DMA transfer on-going).

Source

pub fn ch0_act(&self) -> CH0_ACT_R

Bit 0 - 0:0] A value of 1 indicates that channel 0 is active (DMA transfer on-going).

Source§

impl R<u32, Reg<u32, _DMAC_SWRES>>

Source

pub fn reserved31(&self) -> RESERVED31_R

Bits 1:31 - 31:1] Bits should be written with a value of 0.

Source

pub fn swres(&self) -> SWRES_R

Bit 0 - 0:0] Software reset enable 0 = Disabled 1 = Enabled (self-cleared to 0) Completion of the software reset must be checked through the DMAC_STATUS register.

Source§

impl R<u32, Reg<u32, _DMAC_CH1_CTRL>>

Source

pub fn reserved30(&self) -> RESERVED30_R

Bits 2:31 - 31:2] Should be written with 0s and ignored on read

Source

pub fn prio(&self) -> PRIO_R

Bit 1 - 1:1] Channel priority 0: Low 1: High If both channels have the same priority, access of the channels to the external port is arbitrated using the round robin scheme. If one channel has a high priority and another one low, the channel with the high priority is served first, in case of simultaneous access requests.

Source

pub fn en(&self) -> EN_R

Bit 0 - 0:0] Channel enable 0: Disabled 1: Enable Note: Disabling an active channel interrupts the DMA operation. The ongoing block transfer completes, but no new transfers are requested.

Source§

impl R<u32, Reg<u32, _DMAC_CH1_EXTADDR>>

Source

pub fn addr(&self) -> ADDR_R

Bits 0:31 - 31:0] Channel external address value. When read during operation, it holds the last updated external address after being sent to the master interface.

Source§

impl R<u32, Reg<u32, _DMAC_CH1_DMALENGTH>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 16:31 - 31:16] Should be written with 0s and ignored on read

Source

pub fn dmalen(&self) -> DMALEN_R

Bits 0:15 - 15:0] Channel DMA length in bytes. During configuration, this register contains the DMA transfer length in bytes. During operation, it contains the last updated value of the DMA transfer length after being sent to the master interface. Note: Setting this register to a nonzero value starts the transfer if the channel is enabled. Therefore, this register must be written last when setting up a DMA channel.

Source§

impl R<u32, Reg<u32, _DMAC_MST_RUNPARAMS>>

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 16:31 - 31:16] Should be written with 0s and ignored on read

Source

pub fn ahb_mst1_burst_size(&self) -> AHB_MST1_BURST_SIZE_R

Bits 12:15 - 15:12] Maximum burst size that can be performed on the AHB bus 0010b = 4 bytes (default) 0011b = 8 bytes 0100b = 16 bytes 0101b = 32 bytes 0110b = 64 bytes Others = Reserved

Source

pub fn ahb_mst1_idle_en(&self) -> AHB_MST1_IDLE_EN_R

Bit 11 - 11:11] Idle insertion between consecutive burst transfers on AHB 0: No Idle insertion 1: Idle insertion

Source

pub fn ahb_mst1_incr_en(&self) -> AHB_MST1_INCR_EN_R

Bit 10 - 10:10] Burst length type of AHB transfer 0: Unspecified length burst transfers 1: Fixed length burst or single transfers

Source

pub fn ahb_mst1_lock_en(&self) -> AHB_MST1_LOCK_EN_R

Bit 9 - 9:9] Locked transform on AHB 0: Transfers are not locked 1: Transfers are locked

Source

pub fn ahb_mst1_bigend(&self) -> AHB_MST1_BIGEND_R

Bit 8 - 8:8] Endianess for the AHB master 0: Little endian 1: Big endian

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 0:7 - 7:0] Should be written with 0s and ignored on read

Source§

impl R<u32, Reg<u32, _DMAC_PERSR>>

Source

pub fn reserved19(&self) -> RESERVED19_R

Bits 13:31 - 31:13] Bits should be ignored on read

Source

pub fn port1_ahb_error(&self) -> PORT1_AHB_ERROR_R

Bit 12 - 12:12] A value of 1 indicates that the EIP-101 has detected an AHB bus error

Source

pub fn reserved2(&self) -> RESERVED2_R

Bits 10:11 - 11:10] Bits should be ignored on read

Source

pub fn port1_channel(&self) -> PORT1_CHANNEL_R

Bit 9 - 9:9] Indicates which channel has serviced last (channel 0 or channel 1) by AHB master port.

Source

pub fn reserved9(&self) -> RESERVED9_R

Bits 0:8 - 8:0] Bits should be ignored on read

Source§

impl R<u32, Reg<u32, _DMAC_OPTIONS>>

Source

pub fn reserved20(&self) -> RESERVED20_R

Bits 12:31 - 31:12] Bits should be ignored on read

Source

pub fn nr_of_channels(&self) -> NR_OF_CHANNELS_R

Bits 8:11 - 11:8] Number of channels implemented, value in the range 1-8.

Source

pub fn reserved5(&self) -> RESERVED5_R

Bits 3:7 - 7:3] Bits should be ignored on read

Source

pub fn nr_of_ports(&self) -> NR_OF_PORTS_R

Bits 0:2 - 2:0] Number of ports implemented, value in range 1-4.

Source§

impl R<u32, Reg<u32, _DMAC_VERSION>>

Source

pub fn reserved4(&self) -> RESERVED4_R

Bits 28:31 - 31:28] Bits should be ignored on read

Source

pub fn hw_major_version(&self) -> HW_MAJOR_VERSION_R

Bits 24:27 - 27:24] Major version number

Source

pub fn hw_minor_version(&self) -> HW_MINOR_VERSION_R

Bits 20:23 - 23:20] Minor version number

Source

pub fn hw_patch_level(&self) -> HW_PATCH_LEVEL_R

Bits 16:19 - 19:16] Patch level Starts at 0 at first delivery of this version

Source

pub fn eip_number_compl(&self) -> EIP_NUMBER_COMPL_R

Bits 8:15 - 15:8] Bit-by-bit complement of the EIP_NUMBER field bits.

Source

pub fn eip_number(&self) -> EIP_NUMBER_R

Bits 0:7 - 7:0] Binary encoding of the EIP-number of this DMA controller (209)

Source§

impl R<u32, Reg<u32, _KEY_STORE_WRITE_AREA>>

Source

pub fn reserved1(&self) -> RESERVED1_R

Bits 8:31 - 31:8] Write 0s and ignore on reading

Source

pub fn ram_area7(&self) -> RAM_AREA7_R

Bit 7 - 7:7] Each RAM_AREAx represents an area of 128 bits. Select the key store RAM area(s) where the key(s) needs to be written 0: RAM_AREA7 is not selected to be written. 1: RAM_AREA7 is selected to be written. Writing to multiple RAM locations is possible only when the selected RAM areas are sequential. Keys that require more than one RAM locations (key size is 192 or 256 bits), must start at one of the following areas: RAM_AREA0, RAM_AREA2, RAM_AREA4, or RAM_AREA6.

Source

pub fn ram_area6(&self) -> RAM_AREA6_R

Bit 6 - 6:6] Each RAM_AREAx represents an area of 128 bits. Select the key store RAM area(s) where the key(s) needs to be written 0: RAM_AREA6 is not selected to be written. 1: RAM_AREA6 is selected to be written. Writing to multiple RAM locations is possible only when the selected RAM areas are sequential. Keys that require more than one RAM locations (key size is 192 or 256 bits), must start at one of the following areas: RAM_AREA0, RAM_AREA2, RAM_AREA4, or RAM_AREA6.

Source

pub fn ram_area5(&self) -> RAM_AREA5_R

Bit 5 - 5:5] Each RAM_AREAx represents an area of 128 bits. Select the key store RAM area(s) where the key(s) needs to be written 0: RAM_AREA5 is not selected to be written. 1: RAM_AREA5 is selected to be written. Writing to multiple RAM locations is possible only when the selected RAM areas are sequential. Keys that require more than one RAM locations (key size is 192 or 256 bits), must start at one of the following areas: RAM_AREA0, RAM_AREA2, RAM_AREA4, or RAM_AREA6.

Source

pub fn ram_area4(&self) -> RAM_AREA4_R

Bit 4 - 4:4] Each RAM_AREAx represents an area of 128 bits. Select the key store RAM area(s) where the key(s) needs to be written 0: RAM_AREA4 is not selected to be written. 1: RAM_AREA4 is selected to be written. Writing to multiple RAM locations is possible only when the selected RAM areas are sequential. Keys that require more than one RAM locations (key size is 192 or 256 bits), must start at one of the following areas: RAM_AREA0, RAM_AREA2, RAM_AREA4, or RAM_AREA6.

Source

pub fn ram_area3(&self) -> RAM_AREA3_R

Bit 3 - 3:3] Each RAM_AREAx represents an area of 128 bits. Select the key store RAM area(s) where the key(s) needs to be written 0: RAM_AREA3 is not selected to be written. 1: RAM_AREA3 is selected to be written. Writing to multiple RAM locations is possible only when the selected RAM areas are sequential. Keys that require more than one RAM locations (key size is 192 or 256 bits), must start at one of the following areas: RAM_AREA0, RAM_AREA2, RAM_AREA4, or RAM_AREA6.

Source

pub fn ram_area2(&self) -> RAM_AREA2_R

Bit 2 - 2:2] Each RAM_AREAx represents an area of 128 bits. Select the key store RAM area(s) where the key(s) needs to be written 0: RAM_AREA2 is not selected to be written. 1: RAM_AREA2 is selected to be written. Writing to multiple RAM locations is possible only when the selected RAM areas are sequential. Keys that require more than one RAM locations (key size is 192 or 256 bits), must start at one of the following areas: RAM_AREA0, RAM_AREA2, RAM_AREA4, or RAM_AREA6.

Source

pub fn ram_area1(&self) -> RAM_AREA1_R

Bit 1 - 1:1] Each RAM_AREAx represents an area of 128 bits. Select the key store RAM area(s) where the key(s) needs to be written 0: RAM_AREA1 is not selected to be written. 1: RAM_AREA1 is selected to be written. Writing to multiple RAM locations is possible only when the selected RAM areas are sequential. Keys that require more than one RAM locations (key size is 192 or 256 bits), must start at one of the following areas: RAM_AREA0, RAM_AREA2, RAM_AREA4, or RAM_AREA6.

Source

pub fn ram_area0(&self) -> RAM_AREA0_R

Bit 0 - 0:0] Each RAM_AREAx represents an area of 128 bits. Select the key store RAM area(s) where the key(s) needs to be written 0: RAM_AREA0 is not selected to be written. 1: RAM_AREA0 is selected to be written. Writing to multiple RAM locations is possible only when the selected RAM areas are sequential. Keys that require more than one RAM locations (key size is 192 or 256 bits), must start at one of the following areas: RAM_AREA0, RAM_AREA2, RAM_AREA4, or RAM_AREA6.

Source§

impl R<u32, Reg<u32, _KEY_STORE_WRITTEN_AREA>>

Source

pub fn reserved1(&self) -> RESERVED1_R

Bits 8:31 - 31:8] Write 0s and ignore on reading

Source

pub fn ram_area_written7(&self) -> RAM_AREA_WRITTEN7_R

Bit 7 - 7:7] Read operation: 0: This RAM area is not written with valid key information. 1: This RAM area is written with valid key information. Each individual ram_area_writtenx bit can be reset by writing 1. Note: This register is reset on a soft reset from the master control module. After a soft reset, all keys must be rewritten to the key store memory.

Source

pub fn ram_area_written6(&self) -> RAM_AREA_WRITTEN6_R

Bit 6 - 6:6] Read operation: 0: This RAM area is not written with valid key information. 1: This RAM area is written with valid key information. Each individual ram_area_writtenx bit can be reset by writing 1. Note: This register is reset on a soft reset from the master control module. After a soft reset, all keys must be rewritten to the key store memory.

Source

pub fn ram_area_written5(&self) -> RAM_AREA_WRITTEN5_R

Bit 5 - 5:5] Read operation: 0: This RAM area is not written with valid key information. 1: This RAM area is written with valid key information. Each individual ram_area_writtenx bit can be reset by writing 1. Note: This register is reset on a soft reset from the master control module. After a soft reset, all keys must be rewritten to the key store memory.

Source

pub fn ram_area_written4(&self) -> RAM_AREA_WRITTEN4_R

Bit 4 - 4:4] Read operation: 0: This RAM area is not written with valid key information. 1: This RAM area is written with valid key information. Each individual ram_area_writtenx bit can be reset by writing 1. Note: This register is reset on a soft reset from the master control module. After a soft reset, all keys must be rewritten to the key store memory.

Source

pub fn ram_area_written3(&self) -> RAM_AREA_WRITTEN3_R

Bit 3 - 3:3] Read operation: 0: This RAM area is not written with valid key information. 1: This RAM area is written with valid key information. Each individual ram_area_writtenx bit can be reset by writing 1. Note: This register is reset on a soft reset from the master control module. After a soft reset, all keys must be rewritten to the key store memory.

Source

pub fn ram_area_written2(&self) -> RAM_AREA_WRITTEN2_R

Bit 2 - 2:2] Read operation: 0: This RAM area is not written with valid key information. 1: This RAM area is written with valid key information. Each individual ram_area_writtenx bit can be reset by writing 1. Note: This register is reset on a soft reset from the master control module. After a soft reset, all keys must be rewritten to the key store memory.

Source

pub fn ram_area_written1(&self) -> RAM_AREA_WRITTEN1_R

Bit 1 - 1:1] Read operation: 0: This RAM area is not written with valid key information. 1: This RAM area is written with valid key information. Each individual ram_area_writtenx bit can be reset by writing 1. Note: This register is reset on a soft reset from the master control module. After a soft reset, all keys must be rewritten to the key store memory.

Source

pub fn ram_area_written0(&self) -> RAM_AREA_WRITTEN0_R

Bit 0 - 0:0] Read operation: 0: This RAM area is not written with valid key information. 1: This RAM area is written with valid key information. Each individual ram_area_writtenx bit can be reset by writing 1. Note: This register is reset on a soft reset from the master control module. After a soft reset, all keys must be rewritten to the key store memory.

Source§

impl R<u32, Reg<u32, _KEY_STORE_SIZE>>

Source

pub fn reserved1(&self) -> RESERVED1_R

Bits 2:31 - 31:2] Write 0s and ignore on reading

Source

pub fn key_size(&self) -> KEY_SIZE_R

Bits 0:1 - 1:0] Key size: 00: Reserved 01: 128 bits 10: 192 bits 11: 256 bits When writing this to this register, the KEY_STORE_WRITTEN_AREA register is reset.

Source§

impl R<u32, Reg<u32, _KEY_STORE_READ_AREA>>

Source

pub fn busy(&self) -> BUSY_R

Bit 31 - 31:31] Key store operation busy status flag (read only): 0: Operation is complete. 1: Operation is not completed and the key store is busy.

Source

pub fn reserved1(&self) -> RESERVED1_R

Bits 4:30 - 30:4] Write 0s and ignore on reading

Source

pub fn ram_area(&self) -> RAM_AREA_R

Bits 0:3 - 3:0] Selects the area of the key store RAM from where the key needs to be read that will be writen to the AES engine RAM_AREA: 0000: RAM_AREA0 0001: RAM_AREA1 0010: RAM_AREA2 0011: RAM_AREA3 0100: RAM_AREA4 0101: RAM_AREA5 0110: RAM_AREA6 0111: RAM_AREA7 1000: no RAM area selected 1001-1111: Reserved RAM areas RAM_AREA0, RAM_AREA2, RAM_AREA4 and RAM_AREA6 are the only valid read areas for 192 and 256 bits key sizes. Only RAM areas that contain valid written keys can be selected.

Source§

impl R<u32, Reg<u32, _AES_KEY2_0>>

Source

pub fn aes_key2(&self) -> AES_KEY2_R

Bits 0:31 - 31:0] AES_KEY2/AES_GHASH_H[31:0] For GCM: -[127:0] - GHASH_H - The internally calculated GHASH key is stored in these registers. Only used for modes that use the GHASH function (GCM). -[255:128] - This register is used to store intermediate values and is initialized with 0s when loading a new key. For CCM: -[255:0] - This register is used to store intermediate values. For CBC-MAC: -[255:0] - ZEROES - This register must remain 0.

Source§

impl R<u32, Reg<u32, _AES_KEY2_1>>

Source

pub fn aes_key2(&self) -> AES_KEY2_R

Bits 0:31 - 31:0] AES_KEY2/AES_GHASH_H[63:32] For GCM: -[127:0] - GHASH_H - The internally calculated GHASH key is stored in these registers. Only used for modes that use the GHASH function (GCM). -[255:128] - This register is used to store intermediate values and is initialized with 0s when loading a new key. For CCM: -[255:0] - This register is used to store intermediate values. For CBC-MAC: -[255:0] - ZEROES - This register must remain 0.

Source§

impl R<u32, Reg<u32, _AES_KEY2_2>>

Source

pub fn aes_key2(&self) -> AES_KEY2_R

Bits 0:31 - 31:0] AES_KEY2/AES_GHASH_H[95:64] For GCM: -[127:0] - GHASH_H - The internally calculated GHASH key is stored in these registers. Only used for modes that use the GHASH function (GCM). -[255:128] - This register is used to store intermediate values and is initialized with 0s when loading a new key. For CCM: -[255:0] - This register is used to store intermediate values. For CBC-MAC: -[255:0] - ZEROES - This register must remain 0.

Source§

impl R<u32, Reg<u32, _AES_KEY2_3>>

Source

pub fn aes_key2(&self) -> AES_KEY2_R

Bits 0:31 - 31:0] AES_KEY2/AES_GHASH_H[127:96] For GCM: -[127:0] - GHASH_H - The internally calculated GHASH key is stored in these registers. Only used for modes that use the GHASH function (GCM). -[255:128] - This register is used to store intermediate values and is initialized with 0s when loading a new key. For CCM: -[255:0] - This register is used to store intermediate values. For CBC-MAC: -[255:0] - ZEROES - This register must remain 0.

Source§

impl R<u32, Reg<u32, _AES_KEY3_0>>

Source

pub fn aes_key3(&self) -> AES_KEY3_R

Bits 0:31 - 31:0] AES_KEY3[31:0]/AES_KEY2[159:128] For GCM: -[127:0] - GHASH_H - The internally calculated GHASH key is stored in these registers. Only used for modes that use the GHASH function (GCM). -[255:128] - This register is used to store intermediate values and is initialized with 0s when loading a new key. For CCM: -[255:0] - This register is used to store intermediate values. For CBC-MAC: -[255:0] - ZEROES - This register must remain 0.

Source§

impl R<u32, Reg<u32, _AES_KEY3_1>>

Source

pub fn aes_key3(&self) -> AES_KEY3_R

Bits 0:31 - 31:0] AES_KEY3[63:32]/AES_KEY2[191:160] For GCM: -[127:0] - GHASH_H - The internally calculated GHASH key is stored in these registers. Only used for modes that use the GHASH function (GCM). -[255:128] - This register is used to store intermediate values and is initialized with 0s when loading a new key. For CCM: -[255:0] - This register is used to store intermediate values. For CBC-MAC: -[255:0] - ZEROES - This register must remain 0.

Source§

impl R<u32, Reg<u32, _AES_KEY3_2>>

Source

pub fn aes_key3(&self) -> AES_KEY3_R

Bits 0:31 - 31:0] AES_KEY3[95:64]/AES_KEY2[223:192] For GCM: -[127:0] - GHASH_H - The internally calculated GHASH key is stored in these registers. Only used for modes that use the GHASH function (GCM). -[255:128] - This register is used to store intermediate values and is initialized with 0s when loading a new key. For CCM: -[255:0] - This register is used to store intermediate values. For CBC-MAC: -[255:0] - ZEROES - This register must remain 0.

Source§

impl R<u32, Reg<u32, _AES_KEY3_3>>

Source

pub fn aes_key3(&self) -> AES_KEY3_R

Bits 0:31 - 31:0] AES_KEY3[127:96]/AES_KEY2[255:224] For GCM: -[127:0] - GHASH_H - The internally calculated GHASH key is stored in these registers. Only used for modes that use the GHASH function (GCM). -[255:128] - This register is used to store intermediate values and is initialized with 0s when loading a new key. For CCM: -[255:0] - This register is used to store intermediate values. For CBC-MAC: -[255:0] - ZEROES - This register must remain 0.

Source§

impl R<u32, Reg<u32, _AES_IV_0>>

Source

pub fn aes_iv(&self) -> AES_IV_R

Bits 0:31 - 31:0] AES_IV[31:0] Initialization vector Used for regular non-ECB modes (CBC/CTR): -[127:0] - AES_IV - For regular AES operations (CBC and CTR) these registers must be written with a new 128-bit IV. After an operation, these registers contain the latest 128-bit result IV, generated by the EIP-120t. If CTR mode is selected, this value is incremented with 0x1: After first use - When a new data block is submitted to the engine For GCM: -[127:0] - AES_IV - For GCM operations, these registers must be written with a new 128-bit IV. After an operation, these registers contain the updated 128-bit result IV, generated by the EIP-120t. Note that bits [127:96] of the IV represent the initial counter value (which is 1 for GCM) and must therefore be initialized to 0x01000000. This value is incremented with 0x1: After first use - When a new data block is submitted to the engine. For CCM: -[127:0] - A0: For CCM this field must be written with value A0, this value is the concatenation of: A0-flags (5-bits of 0 and 3-bits ‘L’), Nonce and counter value. ‘L’ must be a copy from the ‘L’ value of the AES_CTRL register. This ‘L’ indicates the width of the Nonce and counter. The loaded counter must be initialized to 0. The total width of A0 is 128-bit. For CBC-MAC: -[127:0] - Zeroes - For CBC-MAC this register must be written with 0s at the start of each operation. After an operation, these registers contain the 128-bit TAG output, generated by the EIP-120t.

Source§

impl R<u32, Reg<u32, _AES_IV_1>>

Source

pub fn aes_iv(&self) -> AES_IV_R

Bits 0:31 - 31:0] AES_IV[63:32] Initialization vector Used for regular non-ECB modes (CBC/CTR): -[127:0] - AES_IV - For regular AES operations (CBC and CTR) these registers must be written with a new 128-bit IV. After an operation, these registers contain the latest 128-bit result IV, generated by the EIP-120t. If CTR mode is selected, this value is incremented with 0x1: After first use - When a new data block is submitted to the engine For GCM: -[127:0] - AES_IV - For GCM operations, these registers must be written with a new 128-bit IV. After an operation, these registers contain the updated 128-bit result IV, generated by the EIP-120t. Note that bits [127:96] of the IV represent the initial counter value (which is 1 for GCM) and must therefore be initialized to 0x01000000. This value is incremented with 0x1: After first use - When a new data block is submitted to the engine. For CCM: -[127:0] - A0: For CCM this field must be written with value A0, this value is the concatenation of: A0-flags (5-bits of 0 and 3-bits ‘L’), Nonce and counter value. ‘L’ must be a copy from the ‘L’ value of the AES_CTRL register. This ‘L’ indicates the width of the Nonce and counter. The loaded counter must be initialized to 0. The total width of A0 is 128-bit. For CBC-MAC: -[127:0] - Zeroes - For CBC-MAC this register must be written with 0s at the start of each operation. After an operation, these registers contain the 128-bit TAG output, generated by the EIP-120t.

Source§

impl R<u32, Reg<u32, _AES_IV_2>>

Source

pub fn aes_iv(&self) -> AES_IV_R

Bits 0:31 - 31:0] AES_IV[95:64] Initialization vector Used for regular non-ECB modes (CBC/CTR): -[127:0] - AES_IV - For regular AES operations (CBC and CTR) these registers must be written with a new 128-bit IV. After an operation, these registers contain the latest 128-bit result IV, generated by the EIP-120t. If CTR mode is selected, this value is incremented with 0x1: After first use - When a new data block is submitted to the engine For GCM: -[127:0] - AES_IV - For GCM operations, these registers must be written with a new 128-bit IV. After an operation, these registers contain the updated 128-bit result IV, generated by the EIP-120t. Note that bits [127:96] of the IV represent the initial counter value (which is 1 for GCM) and must therefore be initialized to 0x01000000. This value is incremented with 0x1: After first use - When a new data block is submitted to the engine. For CCM: -[127:0] - A0: For CCM this field must be written with value A0, this value is the concatenation of: A0-flags (5-bits of 0 and 3-bits ‘L’), Nonce and counter value. ‘L’ must be a copy from the ‘L’ value of the AES_CTRL register. This ‘L’ indicates the width of the Nonce and counter. The loaded counter must be initialized to 0. The total width of A0 is 128-bit. For CBC-MAC: -[127:0] - Zeroes - For CBC-MAC this register must be written with 0s at the start of each operation. After an operation, these registers contain the 128-bit TAG output, generated by the EIP-120t.

Source§

impl R<u32, Reg<u32, _AES_IV_3>>

Source

pub fn aes_iv(&self) -> AES_IV_R

Bits 0:31 - 31:0] AES_IV[127:96] Initialization vector Used for regular non-ECB modes (CBC/CTR): -[127:0] - AES_IV - For regular AES operations (CBC and CTR) these registers must be written with a new 128-bit IV. After an operation, these registers contain the latest 128-bit result IV, generated by the EIP-120t. If CTR mode is selected, this value is incremented with 0x1: After first use - When a new data block is submitted to the engine For GCM: -[127:0] - AES_IV - For GCM operations, these registers must be written with a new 128-bit IV. After an operation, these registers contain the updated 128-bit result IV, generated by the EIP-120t. Note that bits [127:96] of the IV represent the initial counter value (which is 1 for GCM) and must therefore be initialized to 0x01000000. This value is incremented with 0x1: After first use - When a new data block is submitted to the engine. For CCM: -[127:0] - A0: For CCM this field must be written with value A0, this value is the concatenation of: A0-flags (5-bits of 0 and 3-bits ‘L’), Nonce and counter value. ‘L’ must be a copy from the ‘L’ value of the AES_CTRL register. This ‘L’ indicates the width of the Nonce and counter. The loaded counter must be initialized to 0. The total width of A0 is 128-bit. For CBC-MAC: -[127:0] - Zeroes - For CBC-MAC this register must be written with 0s at the start of each operation. After an operation, these registers contain the 128-bit TAG output, generated by the EIP-120t.

Source§

impl R<u32, Reg<u32, _AES_CTRL>>

Source

pub fn context_ready(&self) -> CONTEXT_READY_R

Bit 31 - 31:31] If 1, this read-only status bit indicates that the context data registers can be overwritten and the host is permitted to write the next context.

Source

pub fn saved_context_ready(&self) -> SAVED_CONTEXT_READY_R

Bit 30 - 30:30] If 1, this status bit indicates that an AES authentication TAG and/or IV block(s) is/are available for the host to retrieve. This bit is only asserted if the save_context bit is set to 1. The bit is mutual exclusive with the context_ready bit. Writing one clears the bit to 0, indicating the AES core can start its next operation. This bit is also cleared when the 4th word of the output TAG and/or IV is read. Note: All other mode bit writes are ignored when this mode bit is written with 1. Note: This bit is controlled automatically by the EIP-120t for TAG read DMA operations.

Source

pub fn save_context(&self) -> SAVE_CONTEXT_R

Bit 29 - 29:29] This bit indicates that an authentication TAG or result IV needs to be stored as a result context. Typically this bit must be set for authentication modes returning a TAG (CBC-MAC, GCM and CCM), or for basic encryption modes that require future continuation with the current result IV. If this bit is set, the engine retains its full context until the TAG and/or IV registers are read. The TAG or IV must be read before the AES engine can start a new operation.

Source

pub fn reserved1(&self) -> RESERVED1_R

Bits 25:28 - 28:25] Bits should be written with a value of 0. and ignored on a read.

Source

pub fn ccm_m(&self) -> CCM_M_R

Bits 22:24 - 24:22] Defines M, which indicates the length of the authentication field for CCM operations; the authentication field length equals two times (the value of CCM-M plus one). Note: The EIP-120t always returns a 128-bit authentication field, of which the M least significant bytes are valid. All values are supported.

Source

pub fn ccm_l(&self) -> CCM_L_R

Bits 19:21 - 21:19] Defines L, which indicates the width of the length field for CCM operations; the length field in bytes equals the value of CMM-L plus one. All values are supported.

Source

pub fn ccm(&self) -> CCM_R

Bit 18 - 18:18] If set to 1, AES-CCM is selected AES-CCM is a combined mode, using AES for authentication and encryption. Note: Selecting AES-CCM mode requires writing of the AAD length register after all other registers. Note: The CTR mode bit in this register must also be set to 1 to enable AES-CTR; selecting other AES modes than CTR mode is invalid.

Source

pub fn gcm(&self) -> GCM_R

Bits 16:17 - 17:16] Set these bits to 11 to select AES-GCM mode. AES-GCM is a combined mode, using the Galois field multiplier GF(2 to the power of 128) for authentication and AES-CTR mode for encryption. Note: The CTR mode bit in this register must also be set to 1 to enable AES-CTR Bit combination description: 00 = No GCM mode 01 = Reserved, do not select 10 = Reserved, do not select 11 = Autonomous GHASH (both H- and Y0-encrypted calculated internally) Note: The EIP-120t-1 configuration only supports mode 11 (autonomous GHASH), other GCM modes are not allowed.

Source

pub fn cbc_mac(&self) -> CBC_MAC_R

Bit 15 - 15:15] Set to 1 to select AES-CBC MAC mode. The direction bit must be set to 1 for this mode. Selecting this mode requires writing the length register after all other registers.

Source

pub fn reserved2(&self) -> RESERVED2_R

Bits 9:14 - 14:9] Bits should be written with a value of 0. and ignored on a read.

Source

pub fn ctr_width(&self) -> CTR_WIDTH_R

Bits 7:8 - 8:7] Specifies the counter width for AES-CTR mode 00 = 32-bit counter 01 = 64-bit counter 10 = 96-bit counter 11 = 128-bit counter

Source

pub fn ctr(&self) -> CTR_R

Bit 6 - 6:6] If set to 1, AES counter mode (CTR) is selected. Note: This bit must also be set for GCM and CCM, when encryption/decryption is required.

Source

pub fn cbc(&self) -> CBC_R

Bit 5 - 5:5] If set to 1, cipher-block-chaining (CBC) mode is selected.

Source

pub fn key_size(&self) -> KEY_SIZE_R

Bits 3:4 - 4:3] This read-only field specifies the key size. The key size is automatically configured when a new key is loaded through the key store module. 00 = N/A - Reserved 01 = 128-bit 10 = 192-bit 11 = 256-bit

Source

pub fn direction(&self) -> DIRECTION_R

Bit 2 - 2:2] If set to 1 an encrypt operation is performed. If set to 0 a decrypt operation is performed. This bit must be written with a 1 when CBC-MAC is selected.

Source

pub fn input_ready(&self) -> INPUT_READY_R

Bit 1 - 1:1] If 1, this status bit indicates that the 16-byte AES input buffer is empty. The host is permitted to write the next block of data. Writing 0 clears the bit to 0 and indicates that the AES core can use the provided input data block. Writing 1 to this bit is ignored. Note: For DMA operations, this bit is automatically controlled by the EIP-120t. After reset, this bit is 0. After writing a context, this bit becomes 1.

Source

pub fn output_ready(&self) -> OUTPUT_READY_R

Bit 0 - 0:0] If 1, this status bit indicates that an AES output block is available to be retrieved by the host. Writing 0 clears the bit to 0 and indicates that output data is read by the host. The AES core can provide a next output data block. Writing 1 to this bit is ignored. Note: For DMA operations, this bit is automatically controlled by the EIP-120t.

Source§

impl R<u32, Reg<u32, _AES_C_LENGTH_0>>

Source

pub fn c_length(&self) -> C_LENGTH_R

Bits 0:31 - 31:0] C_LENGTH[31:0] Bits [60:0] of the crypto length registers (LSW and MSW) store the cryptographic data length in bytes for all modes. Once processing with this context is started, this length decrements to 0. Data lengths up to (261: 1) bytes are allowed. For GCM, any value up to 236 - 32 bytes can be used. This is because a 32-bit counter mode is used; the maximum number of 128-bit blocks is 232 - 2, resulting in a maximum number of bytes of 236 - 32. A write to this register triggers the engine to start using this context. This is valid for all modes except GCM and CCM. Note: For the combined modes (GCM and CCM), this length does not include the authentication only data; the authentication length is specified in the AES_AUTH_LENGTH register below. All modes must have a length greater than 0. For the combined modes, it is allowed to have one of the lengths equal to 0. For the basic encryption modes (ECB, CBC, and CTR) it is allowed to program zero to the length field; in that case the length is assumed infinite. All data must be byte (8-bit) aligned for stream cipher modes; bit aligned data streams are not supported by the EIP-120t. For block cipher modes, the data length must be programmed in multiples of the block cipher size, 16 bytes. For a host read operation, these registers return all-0s.

Source§

impl R<u32, Reg<u32, _AES_C_LENGTH_1>>

Source

pub fn reserved1(&self) -> RESERVED1_R

Bits 29:31 - 31:29] Bits should be written with a value of 0. and ignored on a read.

Source

pub fn c_length(&self) -> C_LENGTH_R

Bits 0:28 - 28:0] C_LENGTH[60:32] Bits [60:0] of the crypto length registers (LSW and MSW) store the cryptographic data length in bytes for all modes. Once processing with this context is started, this length decrements to 0. Data lengths up to (261: 1) bytes are allowed. For GCM, any value up to 236 - 32 bytes can be used. This is because a 32-bit counter mode is used; the maximum number of 128-bit blocks is 232 - 2, resulting in a maximum number of bytes of 236 - 32. A write to this register triggers the engine to start using this context. This is valid for all modes except GCM and CCM. Note: For the combined modes (GCM and CCM), this length does not include the authentication only data; the authentication length is specified in the AES_AUTH_LENGTH register below. All modes must have a length greater than 0. For the combined modes, it is allowed to have one of the lengths equal to 0. For the basic encryption modes (ECB, CBC, and CTR) it is allowed to program zero to the length field; in that case the length is assumed infinite. All data must be byte (8-bit) aligned for stream cipher modes; bit aligned data streams are not supported by the EIP-120t. For block cipher modes, the data length must be programmed in multiples of the block cipher size, 16 bytes. For a host read operation, these registers return all-0s.

Source§

impl R<u32, Reg<u32, _AES_AUTH_LENGTH>>

Source

pub fn auth_length(&self) -> AUTH_LENGTH_R

Bits 0:31 - 31:0] Bits [31:0] of the authentication length register store the authentication data length in bytes for combined modes only (GCM or CCM). Supported AAD-lengths for CCM are from 0 to (2^16 - 2^8) bytes. For GCM any value up to (2^32 - 1) bytes can be used. Once processing with this context is started, this length decrements to 0. A write to this register triggers the engine to start using this context for GCM and CCM. For a host read operation, these registers return all-0s.

Source§

impl R<u32, Reg<u32, _AES_DATA_IN_OUT_0>>

Source

pub fn aes_data_in_out(&self) -> AES_DATA_IN_OUT_R

Bits 0:31 - 31:0] AES input data[31:0] / AES output data[31:0] Data registers for input/output block data to/from the EIP-120t. For normal operations, this register is not used, since data input and output is transferred from and to the AES core via DMA. For a host write operation, these registers must be written with the 128-bit input block for the next AES operation. Writing at a word-aligned offset within this address range stores the word (4 bytes) of data into the corresponding position of 4-word deep (16 bytes = 128-bit AES block) data input buffer. This buffer is used for the next AES operation. If the last data block is not completely filled with valid data (see notes below), it is allowed to write only the words with valid data. Next AES operation is triggered by writing to the input_ready flag of the AES_CTRL register. For a host read operation, these registers contain the 128-bit output block from the latest AES operation. Reading from a word-aligned offset within this address range reads one word (4 bytes) of data out the 4-word deep (16 bytes = 128-bits AES block) data output buffer. The words (4 words, one full block) should be read before the core will move the next block to the data output buffer. To empty the data output buffer, the output_ready flag of the AES_CTRL register must be written. For the modes with authentication (CBC-MAC, GCM and CCM), the invalid (message) bytes/words can be written with any data. Note: AES typically operates on 128 bits block multiple input data. The CTR, GCM and CCM modes form an exception. The last block of a CTR-mode message may contain less than 128 bits (refer to [NIST 800-38A]). For GCM/CCM, the last block of both AAD and message data may contain less than 128 bits (refer to [NIST 800-38D]). The EIP-120t automatically pads or masks misaligned ending data blocks with 0s for GCM, CCM and CBC-MAC. For CTR mode, the remaining data in an unaligned data block is ignored. Note: The AAD / authentication only data is not copied to the output buffer but only used for authentication.

Source§

impl R<u32, Reg<u32, _AES_DATA_IN_OUT_1>>

Source

pub fn aes_data_in_out(&self) -> AES_DATA_IN_OUT_R

Bits 0:31 - 31:0] AES input data[63:32] / AES output data[63:32] Data registers for input/output block data to/from the EIP-120t. For normal operations, this register is not used, since data input and output is transferred from and to the AES core via DMA. For a host write operation, these registers must be written with the 128-bit input block for the next AES operation. Writing at a word-aligned offset within this address range stores the word (4 bytes) of data into the corresponding position of 4-word deep (16 bytes = 128-bit AES block) data input buffer. This buffer is used for the next AES operation. If the last data block is not completely filled with valid data (see notes below), it is allowed to write only the words with valid data. Next AES operation is triggered by writing to the input_ready flag of the AES_CTRL register. For a host read operation, these registers contain the 128-bit output block from the latest AES operation. Reading from a word-aligned offset within this address range reads one word (4 bytes) of data out the 4-word deep (16 bytes = 128-bits AES block) data output buffer. The words (4 words, one full block) should be read before the core will move the next block to the data output buffer. To empty the data output buffer, the output_ready flag of the AES_CTRL register must be written. For the modes with authentication (CBC-MAC, GCM and CCM), the invalid (message) bytes/words can be written with any data. Note: AES typically operates on 128 bits block multiple input data. The CTR, GCM and CCM modes form an exception. The last block of a CTR-mode message may contain less than 128 bits (refer to [NIST 800-38A]). For GCM/CCM, the last block of both AAD and message data may contain less than 128 bits (refer to [NIST 800-38D]). The EIP-120t automatically pads or masks misaligned ending data blocks with 0s for GCM, CCM and CBC-MAC. For CTR mode, the remaining data in an unaligned data block is ignored. Note: The AAD / authentication only data is not copied to the output buffer but only used for authentication.

Source§

impl R<u32, Reg<u32, _AES_DATA_IN_OUT_2>>

Source

pub fn aes_data_in_out(&self) -> AES_DATA_IN_OUT_R

Bits 0:31 - 31:0] AES input data[95:64] / AES output data[95:64] Data registers for input/output block data to/from the EIP-120t. For normal operations, this register is not used, since data input and output is transferred from and to the AES core via DMA. For a host write operation, these registers must be written with the 128-bit input block for the next AES operation. Writing at a word-aligned offset within this address range stores the word (4 bytes) of data into the corresponding position of 4-word deep (16 bytes = 128-bit AES block) data input buffer. This buffer is used for the next AES operation. If the last data block is not completely filled with valid data (see notes below), it is allowed to write only the words with valid data. Next AES operation is triggered by writing to the input_ready flag of the AES_CTRL register. For a host read operation, these registers contain the 128-bit output block from the latest AES operation. Reading from a word-aligned offset within this address range reads one word (4 bytes) of data out the 4-word deep (16 bytes = 128-bits AES block) data output buffer. The words (4 words, one full block) should be read before the core will move the next block to the data output buffer. To empty the data output buffer, the output_ready flag of the AES_CTRL register must be written. For the modes with authentication (CBC-MAC, GCM and CCM), the invalid (message) bytes/words can be written with any data. Note: AES typically operates on 128 bits block multiple input data. The CTR, GCM and CCM modes form an exception. The last block of a CTR-mode message may contain less than 128 bits (refer to [NIST 800-38A]). For GCM/CCM, the last block of both AAD and message data may contain less than 128 bits (refer to [NIST 800-38D]). The EIP-120t automatically pads or masks misaligned ending data blocks with 0s for GCM, CCM and CBC-MAC. For CTR mode, the remaining data in an unaligned data block is ignored. Note: The AAD / authentication only data is not copied to the output buffer but only used for authentication.

Source§

impl R<u32, Reg<u32, _AES_DATA_IN_OUT_3>>

Source

pub fn aes_data_in_out(&self) -> AES_DATA_IN_OUT_R

Bits 0:31 - 31:0] AES input data[127:96] / AES output data[127:96] Data registers for input/output block data to/from the EIP-120t. For normal operations, this register is not used, since data input and output is transferred from and to the AES core via DMA. For a host write operation, these registers must be written with the 128-bit input block for the next AES operation. Writing at a word-aligned offset within this address range stores the word (4 bytes) of data into the corresponding position of 4-word deep (16 bytes = 128-bit AES block) data input buffer. This buffer is used for the next AES operation. If the last data block is not completely filled with valid data (see notes below), it is allowed to write only the words with valid data. Next AES operation is triggered by writing to the input_ready flag of the AES_CTRL register. For a host read operation, these registers contain the 128-bit output block from the latest AES operation. Reading from a word-aligned offset within this address range reads one word (4 bytes) of data out the 4-word deep (16 bytes = 128-bits AES block) data output buffer. The words (4 words, one full block) should be read before the core will move the next block to the data output buffer. To empty the data output buffer, the output_ready flag of the AES_CTRL register must be written. For the modes with authentication (CBC-MAC, GCM and CCM), the invalid (message) bytes/words can be written with any data. Note: AES typically operates on 128 bits block multiple input data. The CTR, GCM and CCM modes form an exception. The last block of a CTR-mode message may contain less than 128 bits (refer to [NIST 800-38A]). For GCM/CCM, the last block of both AAD and message data may contain less than 128 bits (refer to [NIST 800-38D]). The EIP-120t automatically pads or masks misaligned ending data blocks with 0s for GCM, CCM and CBC-MAC. For CTR mode, the remaining data in an unaligned data block is ignored. Note: The AAD / authentication only data is not copied to the output buffer but only used for authentication.

Source§

impl R<u32, Reg<u32, _AES_TAG_OUT_0>>

Source

pub fn aes_tag(&self) -> AES_TAG_R

Bits 0:31 - 31:0] AES_TAG[31:0] Bits [31:0] of the AES_TAG registers store the authentication value for the combined and authentication only modes. For a host read operation, these registers contain the last 128-bit TAG output of the EIP-120t; the TAG is available until the next context is written. This register will only contain valid data if the TAG is available and when the store_ready bit from AES_CTRL register is set. During processing or for operations/modes that do not return a TAG, reads from this register return data from the IV register.

Source§

impl R<u32, Reg<u32, _AES_TAG_OUT_1>>

Source

pub fn aes_tag(&self) -> AES_TAG_R

Bits 0:31 - 31:0] AES_TAG[63:32] For a host read operation, these registers contain the last 128-bit TAG output of the EIP-120t; the TAG is available until the next context is written. This register contains valid data only if the TAG is available and when the store_ready bit from AES_CTRL register is set. During processing or for operations/modes that do not return a TAG, reads from this register return data from the IV register.

Source§

impl R<u32, Reg<u32, _AES_TAG_OUT_2>>

Source

pub fn aes_tag(&self) -> AES_TAG_R

Bits 0:31 - 31:0] AES_TAG[95:64] For a host read operation, these registers contain the last 128-bit TAG output of the EIP-120t; the TAG is available until the next context is written. This register contains valid data only if the TAG is available and when the store_ready bit from AES_CTRL register is set. During processing or for operations/modes that do not return a TAG, reads from this register return data from the IV register.

Source§

impl R<u32, Reg<u32, _AES_TAG_OUT_3>>

Source

pub fn aes_tag(&self) -> AES_TAG_R

Bits 0:31 - 31:0] AES_TAG[127:96] For a host read operation, these registers contain the last 128-bit TAG output of the EIP-120t; the TAG is available until the next context is written. This register contains valid data only if the TAG is available and when the store_ready bit from AES_CTRL register is set. During processing or for operations/modes that do not return a TAG, reads from this register return data from the IV register.

Source§

impl R<u32, Reg<u32, _HASH_DATA_IN_0>>

Source

pub fn hash_data_in(&self) -> HASH_DATA_IN_R

Bits 0:31 - 31:0] HASH_DATA_IN[31:0] These registers must be written with the 512-bit input data. The data lines are connected directly to the data input of the hash module and hence into the engine’s internal data buffer. Writing to each of the registers triggers a corresponding 32-bit write enable to the internal buffer. Note: The host may only write the input data buffer when the rfd_in bit of the HASH_IO_BUF_CTRL register is high. If the rfd_in bit is 0, the engine is busy with processing. During processing, it is not allowed to write new input data. For message lengths larger than 64 bytes, multiple blocks of data are written to this input buffer using a handshake through flags of the HASH_IO_BUF_CTRL register. All blocks except the last are required to be 512 bits in size. If the last block is not 512 bits long, only the least significant bits of data must be written, but they must be padded with 0s to the next 32-bit boundary. Host read operations from these register addresses return 0s.

Source§

impl R<u32, Reg<u32, _HASH_DATA_IN_1>>

Source

pub fn hash_data_in(&self) -> HASH_DATA_IN_R

Bits 0:31 - 31:0] HASH_DATA_IN[63:32] These registers must be written with the 512-bit input data. The data lines are connected directly to the data input of the hash module and hence into the engine’s internal data buffer. Writing to each of the registers triggers a corresponding 32-bit write enable to the internal buffer. Note: The host may only write the input data buffer when the rfd_in bit of the HASH_IO_BUF_CTRL register is high. If the rfd_in bit is 0, the engine is busy with processing. During processing, it is not allowed to write new input data. For message lengths larger than 64 bytes, multiple blocks of data are written to this input buffer using a handshake through flags of the HASH_IO_BUF_CTRL register. All blocks except the last are required to be 512 bits in size. If the last block is not 512 bits long, only the least significant bits of data must be written, but they must be padded with 0s to the next 32-bit boundary. Host read operations from these register addresses return 0s.

Source§

impl R<u32, Reg<u32, _HASH_DATA_IN_2>>

Source

pub fn hash_data_in(&self) -> HASH_DATA_IN_R

Bits 0:31 - 31:0] HASH_DATA_IN[95:64] These registers must be written with the 512-bit input data. The data lines are connected directly to the data input of the hash module and hence into the engine’s internal data buffer. Writing to each of the registers triggers a corresponding 32-bit write enable to the internal buffer. Note: The host may only write the input data buffer when the rfd_in bit of the HASH_IO_BUF_CTRL register is high. If the rfd_in bit is 0, the engine is busy with processing. During processing, it is not allowed to write new input data. For message lengths larger than 64 bytes, multiple blocks of data are written to this input buffer using a handshake through flags of the HASH_IO_BUF_CTRL register. All blocks except the last are required to be 512 bits in size. If the last block is not 512 bits long, only the least significant bits of data must be written, but they must be padded with 0s to the next 32-bit boundary. Host read operations from these register addresses return 0s.

Source§

impl R<u32, Reg<u32, _HASH_DATA_IN_3>>

Source

pub fn hash_data_in(&self) -> HASH_DATA_IN_R

Bits 0:31 - 31:0] HASH_DATA_IN[127:96] These registers must be written with the 512-bit input data. The data lines are connected directly to the data input of the hash module and hence into the engine’s internal data buffer. Writing to each of the registers triggers a corresponding 32-bit write enable to the internal buffer. Note: The host may only write the input data buffer when the rfd_in bit of the HASH_IO_BUF_CTRL register is high. If the rfd_in bit is 0, the engine is busy with processing. During processing, it is not allowed to write new input data. For message lengths larger than 64 bytes, multiple blocks of data are written to this input buffer using a handshake through flags of the HASH_IO_BUF_CTRL register. All blocks except the last are required to be 512 bits in size. If the last block is not 512 bits long, only the least significant bits of data must be written, but they must be padded with 0s to the next 32-bit boundary. Host read operations from these register addresses return 0s.

Source§

impl R<u32, Reg<u32, _HASH_DATA_IN_4>>

Source

pub fn hash_data_in(&self) -> HASH_DATA_IN_R

Bits 0:31 - 31:0] HASH_DATA_IN[159:128] These registers must be written with the 512-bit input data. The data lines are connected directly to the data input of the hash module and hence into the engine’s internal data buffer. Writing to each of the registers triggers a corresponding 32-bit write enable to the internal buffer. Note: The host may only write the input data buffer when the rfd_in bit of the HASH_IO_BUF_CTRL register is high. If the rfd_in bit is 0, the engine is busy with processing. During processing, it is not allowed to write new input data. For message lengths larger than 64 bytes, multiple blocks of data are written to this input buffer using a handshake through flags of the HASH_IO_BUF_CTRL register. All blocks except the last are required to be 512 bits in size. If the last block is not 512 bits long, only the least significant bits of data must be written, but they must be padded with 0s to the next 32-bit boundary. Host read operations from these register addresses return 0s.

Source§

impl R<u32, Reg<u32, _HASH_DATA_IN_5>>

Source

pub fn hash_data_in(&self) -> HASH_DATA_IN_R

Bits 0:31 - 31:0] HASH_DATA_IN[191:160] These registers must be written with the 512-bit input data. The data lines are connected directly to the data input of the hash module and hence into the engine’s internal data buffer. Writing to each of the registers triggers a corresponding 32-bit write enable to the internal buffer. Note: The host may only write the input data buffer when the rfd_in bit of the HASH_IO_BUF_CTRL register is high. If the rfd_in bit is 0, the engine is busy with processing. During processing, it is not allowed to write new input data. For message lengths larger than 64 bytes, multiple blocks of data are written to this input buffer using a handshake through flags of the HASH_IO_BUF_CTRL register. All blocks except the last are required to be 512 bits in size. If the last block is not 512 bits long, only the least significant bits of data must be written, but they must be padded with 0s to the next 32-bit boundary. Host read operations from these register addresses return 0s.

Source§

impl R<u32, Reg<u32, _HASH_DATA_IN_6>>

Source

pub fn hash_data_in(&self) -> HASH_DATA_IN_R

Bits 0:31 - 31:0] HASH_DATA_IN[223:192] These registers must be written with the 512-bit input data. The data lines are connected directly to the data input of the hash module and hence into the engine’s internal data buffer. Writing to each of the registers triggers a corresponding 32-bit write enable to the internal buffer. Note: The host may only write the input data buffer when the rfd_in bit of the HASH_IO_BUF_CTRL register is high. If the rfd_in bit is 0, the engine is busy with processing. During processing, it is not allowed to write new input data. For message lengths larger than 64 bytes, multiple blocks of data are written to this input buffer using a handshake through flags of the HASH_IO_BUF_CTRL register. All blocks except the last are required to be 512 bits in size. If the last block is not 512 bits long, only the least significant bits of data must be written, but they must be padded with 0s to the next 32-bit boundary. Host read operations from these register addresses return 0s.

Source§

impl R<u32, Reg<u32, _HASH_DATA_IN_7>>

Source

pub fn hash_data_in(&self) -> HASH_DATA_IN_R

Bits 0:31 - 31:0] HASH_DATA_IN[255:224] These registers must be written with the 512-bit input data. The data lines are connected directly to the data input of the hash module and hence into the engine’s internal data buffer. Writing to each of the registers triggers a corresponding 32-bit write enable to the internal buffer. Note: The host may only write the input data buffer when the rfd_in bit of the HASH_IO_BUF_CTRL register is high. If the rfd_in bit is 0, the engine is busy with processing. During processing, it is not allowed to write new input data. For message lengths larger than 64 bytes, multiple blocks of data are written to this input buffer using a handshake through flags of the HASH_IO_BUF_CTRL register. All blocks except the last are required to be 512 bits in size. If the last block is not 512 bits long, only the least significant bits of data must be written, but they must be padded with 0s to the next 32-bit boundary. Host read operations from these register addresses return 0s.

Source§

impl R<u32, Reg<u32, _HASH_DATA_IN_8>>

Source

pub fn hash_data_in(&self) -> HASH_DATA_IN_R

Bits 0:31 - 31:0] HASH_DATA_IN[287:256] These registers must be written with the 512-bit input data. The data lines are connected directly to the data input of the hash module and hence into the engine’s internal data buffer. Writing to each of the registers triggers a corresponding 32-bit write enable to the internal buffer. Note: The host may only write the input data buffer when the rfd_in bit of the HASH_IO_BUF_CTRL register is high. If the rfd_in bit is 0, the engine is busy with processing. During processing, it is not allowed to write new input data. For message lengths larger than 64 bytes, multiple blocks of data are written to this input buffer using a handshake through flags of the HASH_IO_BUF_CTRL register. All blocks except the last are required to be 512 bits in size. If the last block is not 512 bits long, only the least significant bits of data must be written, but they must be padded with 0s to the next 32-bit boundary. Host read operations from these register addresses return 0s.

Source§

impl R<u32, Reg<u32, _HASH_DATA_IN_9>>

Source

pub fn hash_data_in(&self) -> HASH_DATA_IN_R

Bits 0:31 - 31:0] HASH_DATA_IN[319:288] These registers must be written with the 512-bit input data. The data lines are connected directly to the data input of the hash module and hence into the engine’s internal data buffer. Writing to each of the registers triggers a corresponding 32-bit write enable to the internal buffer. Note: The host may only write the input data buffer when the rfd_in bit of the HASH_IO_BUF_CTRL register is high. If the rfd_in bit is 0, the engine is busy with processing. During processing, it is not allowed to write new input data. For message lengths larger than 64 bytes, multiple blocks of data are written to this input buffer using a handshake through flags of the HASH_IO_BUF_CTRL register. All blocks except the last are required to be 512 bits in size. If the last block is not 512 bits long, only the least significant bits of data must be written, but they must be padded with 0s to the next 32-bit boundary. Host read operations from these register addresses return 0s.

Source§

impl R<u32, Reg<u32, _HASH_DATA_IN_10>>

Source

pub fn hash_data_in(&self) -> HASH_DATA_IN_R

Bits 0:31 - 31:0] HASH_DATA_IN[351:320] These registers must be written with the 512-bit input data. The data lines are connected directly to the data input of the hash module and hence into the engine’s internal data buffer. Writing to each of the registers triggers a corresponding 32-bit write enable to the internal buffer. Note: The host may only write the input data buffer when the rfd_in bit of the HASH_IO_BUF_CTRL register is high. If the rfd_in bit is 0, the engine is busy with processing. During processing, it is not allowed to write new input data. For message lengths larger than 64 bytes, multiple blocks of data are written to this input buffer using a handshake through flags of the HASH_IO_BUF_CTRL register. All blocks except the last are required to be 512 bits in size. If the last block is not 512 bits long, only the least significant bits of data must be written, but they must be padded with 0s to the next 32-bit boundary. Host read operations from these register addresses return 0s.

Source§

impl R<u32, Reg<u32, _HASH_DATA_IN_11>>

Source

pub fn hash_data_in(&self) -> HASH_DATA_IN_R

Bits 0:31 - 31:0] HASH_DATA_IN[383:352] These registers must be written with the 512-bit input data. The data lines are connected directly to the data input of the hash module and hence into the engine’s internal data buffer. Writing to each of the registers triggers a corresponding 32-bit write enable to the internal buffer. Note: The host may only write the input data buffer when the rfd_in bit of the HASH_IO_BUF_CTRL register is high. If the rfd_in bit is 0, the engine is busy with processing. During processing, it is not allowed to write new input data. For message lengths larger than 64 bytes, multiple blocks of data are written to this input buffer using a handshake through flags of the HASH_IO_BUF_CTRL register. All blocks except the last are required to be 512 bits in size. If the last block is not 512 bits long, only the least significant bits of data must be written, but they must be padded with 0s to the next 32-bit boundary. Host read operations from these register addresses return 0s.

Source§

impl R<u32, Reg<u32, _HASH_DATA_IN_12>>

Source

pub fn hash_data_in(&self) -> HASH_DATA_IN_R

Bits 0:31 - 31:0] HASH_DATA_IN[415:384] These registers must be written with the 512-bit input data. The data lines are connected directly to the data input of the hash module and hence into the engine’s internal data buffer. Writing to each of the registers triggers a corresponding 32-bit write enable to the internal buffer. Note: The host may only write the input data buffer when the rfd_in bit of the HASH_IO_BUF_CTRL register is high. If the rfd_in bit is 0, the engine is busy with processing. During processing, it is not allowed to write new input data. For message lengths larger than 64 bytes, multiple blocks of data are written to this input buffer using a handshake through flags of the HASH_IO_BUF_CTRL register. All blocks except the last are required to be 512 bits in size. If the last block is not 512 bits long, only the least significant bits of data must be written, but they must be padded with 0s to the next 32-bit boundary. Host read operations from these register addresses return 0s.

Source§

impl R<u32, Reg<u32, _HASH_DATA_IN_13>>

Source

pub fn hash_data_in(&self) -> HASH_DATA_IN_R

Bits 0:31 - 31:0] HASH_DATA_IN[447:416] These registers must be written with the 512-bit input data. The data lines are connected directly to the data input of the hash module and hence into the engine’s internal data buffer. Writing to each of the registers triggers a corresponding 32-bit write enable to the internal buffer. Note: The host may only write the input data buffer when the rfd_in bit of the HASH_IO_BUF_CTRL register is high. If the rfd_in bit is 0, the engine is busy with processing. During processing, it is not allowed to write new input data. For message lengths larger than 64 bytes, multiple blocks of data are written to this input buffer using a handshake through flags of the HASH_IO_BUF_CTRL register. All blocks except the last are required to be 512 bits in size. If the last block is not 512 bits long, only the least significant bits of data must be written, but they must be padded with 0s to the next 32-bit boundary. Host read operations from these register addresses return 0s.

Source§

impl R<u32, Reg<u32, _HASH_DATA_IN_14>>

Source

pub fn hash_data_in(&self) -> HASH_DATA_IN_R

Bits 0:31 - 31:0] HASH_DATA_IN[479:448] These registers must be written with the 512-bit input data. The data lines are connected directly to the data input of the hash module and hence into the engine’s internal data buffer. Writing to each of the registers triggers a corresponding 32-bit write enable to the internal buffer. Note: The host may only write the input data buffer when the rfd_in bit of the HASH_IO_BUF_CTRL register is high. If the rfd_in bit is 0, the engine is busy with processing. During processing, it is not allowed to write new input data. For message lengths larger than 64 bytes, multiple blocks of data are written to this input buffer using a handshake through flags of the HASH_IO_BUF_CTRL register. All blocks except the last are required to be 512 bits in size. If the last block is not 512 bits long, only the least significant bits of data must be written, but they must be padded with 0s to the next 32-bit boundary. Host read operations from these register addresses return 0s.

Source§

impl R<u32, Reg<u32, _HASH_DATA_IN_15>>

Source

pub fn hash_data_in(&self) -> HASH_DATA_IN_R

Bits 0:31 - 31:0] HASH_DATA_IN[511:480] These registers must be written with the 512-bit input data. The data lines are connected directly to the data input of the hash module and hence into the engine’s internal data buffer. Writing to each of the registers triggers a corresponding 32-bit write enable to the internal buffer. Note: The host may only write the input data buffer when the rfd_in bit of the HASH_IO_BUF_CTRL register is high. If the rfd_in bit is 0, the engine is busy with processing. During processing, it is not allowed to write new input data. For message lengths larger than 64 bytes, multiple blocks of data are written to this input buffer using a handshake through flags of the HASH_IO_BUF_CTRL register. All blocks except the last are required to be 512 bits in size. If the last block is not 512 bits long, only the least significant bits of data must be written, but they must be padded with 0s to the next 32-bit boundary. Host read operations from these register addresses return 0s.

Source§

impl R<u32, Reg<u32, _HASH_IO_BUF_CTRL>>

Source

pub fn reserved1(&self) -> RESERVED1_R

Bits 8:31 - 31:8] Write 0s and ignore on reading

Source

pub fn pad_dma_message(&self) -> PAD_DMA_MESSAGE_R

Bit 7 - 7:7] Note: This bit must only be used when data is supplied through the DMA. It should not be used when data is supplied through the slave interface. This bit indicates whether the hash engine has to pad the message, received through the DMA and finalize the hash. When set to 1, the hash engine pads the last block using the programmed length. After padding, the final hash result is calculated. When set to 0, the hash engine treats the last written block as block-size aligned and calculates the intermediate digest. This bit is automatically cleared when the last DMA data block is arrived in the hash engine.

Source

pub fn get_digest(&self) -> GET_DIGEST_R

Bit 6 - 6:6] Note: The bit description below is only applicable when data is sent through the slave interface. This bit must be set to 0 when data is received through the DMA. This bit indicates whether the hash engine should provide the hash digest. When provided simultaneously with data_in_av, the hash digest is provided after processing the data that is currently in the HASH_DATA_IN register. When provided without data_in_av, the current internal digest buffer value is copied to the HASH_DIGEST_n registers. The host must write a 1 to this bit to make the intermediate hash digest available. Writing 0 to this bit has no effect. This bit is automatically cleared (that is, reads 0) when the hash engine has processed the contents of the HASH_DATA_IN register. In the period between this bit is set by the host and the actual HASH_DATA_IN processing, this bit reads 1.

Source

pub fn pad_message(&self) -> PAD_MESSAGE_R

Bit 5 - 5:5] Note: The bit description below is only applicable when data is sent through the slave interface. This bit must be set to 0 when data is received through the DMA. This bit indicates that the HASH_DATA_IN registers hold the last data of the message and hash padding must be applied. The host must write this bit to 1 in order to indicate to the hash engine that the HASH_DATA_IN register currently holds the last data of the message. When pad_message is set to 1, the hash engine will add padding bits to the data currently in the HASH_DATA_IN register. When the last message block is smaller than 512 bits, the pad_message bit must be set to 1 together with the data_in_av bit. When the last message block is equal to 512 bits, pad_message may be set together with data_in_av. In this case the pad_message bit may also be set after the last data block has been written to the hash engine (so when the rfd_in bit has become 1 again after writing the last data block). Writing 0 to this bit has no effect. This bit is automatically cleared (i.e. reads 0) by the hash engine. This bit reads 1 between the time it was set by the host and the hash engine interpreted its value.

Source

pub fn reserved0(&self) -> RESERVED0_R

Bits 3:4 - 4:3] Write 0s and ignore on reading

Source

pub fn rfd_in(&self) -> RFD_IN_R

Bit 2 - 2:2] Note: The bit description below is only applicable when data is sent through the slave interface. This bit can be ignored when data is received through the DMA. Read-only status of the input buffer of the hash engine. When 1, the input buffer of the hash engine can accept new data; the HASH_DATA_IN registers can safely be populated with new data. When 0, the input buffer of the hash engine is processing the data that is currently in HASH_DATA_IN; writing new data to these registers is not allowed.

Source

pub fn data_in_av(&self) -> DATA_IN_AV_R

Bit 1 - 1:1] Note: The bit description below is only applicable when data is sent through the slave interface. This bit must be set to 0 when data is received through the DMA. This bit indicates that the HASH_DATA_IN registers contain new input data for processing. The host must write a 1 to this bit to start processing the data in HASH_DATA_IN; the hash engine will process the new data as soon as it is ready for it (rfd_in bit is 1). Writing 0 to this bit has no effect. This bit is automatically cleared (i.e. reads as 0) when the hash engine starts processing the HASH_DATA_IN contents. This bit reads 1 between the time it was set by the host and the hash engine actually starts processing the input data block.

Source

pub fn output_full(&self) -> OUTPUT_FULL_R

Bit 0 - 0:0] Indicates that the output buffer registers (HASH_DIGEST_n) are available for reading by the host. When this bit reads 0, the output buffer registers are released; the hash engine is allowed to write new data to it. In this case, the registers should not be read by the host. When this bit reads 1, the hash engine has stored the result of the latest hash operation in the output buffer registers. As long as this bit reads 1, the host may read output buffer registers and the hash engine is prevented from writing new data to the output buffer. After retrieving the hash result data from the output buffer, the host must write a 1 to this bit to clear it. This makes the digest output buffer available for the hash engine to store new hash results. Writing 0 to this bit has no effect. Note: If this bit is asserted (1) no new operation should be started before the digest is retrieved from the hash engine and this bit is cleared (0).

Source§

impl R<u32, Reg<u32, _HASH_MODE_IN>>

Source

pub fn reserved1(&self) -> RESERVED1_R

Bits 4:31 - 31:4] Write 0s and ignore on reading

Source

pub fn sha256_mode(&self) -> SHA256_MODE_R

Bit 3 - 3:3] The host must write this bit with 1 before processing a hash session.

Source

pub fn reserved2(&self) -> RESERVED2_R

Bits 1:2 - 2:1] Write 0s and ignore on reading

Source

pub fn new_hash(&self) -> NEW_HASH_R

Bit 0 - 0:0] When set to 1, it indicates that the hash engine must start processing a new hash session. The HASH_DIGEST_n registers will automatically be loaded with the initial hash algorithm constants of the selected hash algorithm. When this bit is 0 while the hash processing is started, the initial hash algorithm constants are not loaded in the HASH_DIGEST_n registers. The hash engine will start processing with the digest that is currently in its internal HASH_DIGEST_n registers. This bit is automatically cleared when hash processing is started.

Source§

impl R<u32, Reg<u32, _HASH_LENGTH_IN_L>>

Source

pub fn length_in(&self) -> LENGTH_IN_R

Bits 0:31 - 31:0] LENGTH_IN[31:0] Message length registers. The content of these registers is used by the hash engine during the message padding phase of the hash session. The data lines of this registers are directly connected to the interface of the hash engine. For a write operation by the host, these registers should be written with the message length in bits. Final hash operations: The total input data length must be programmed for new hash operations that require finalization (padding). The input data must be provided through the slave or DMA interface. Continued hash operations (finalized): For continued hash operations that require finalization, the total message length must be programmed, including the length of previously hashed data that corresponds to the written input digest. Non-final hash operations: For hash operations that do not require finalization (input data length is multiple of 512-bits which is SHA-256 data block size), the length field does not need to be programmed since not used by the operation. If the message length in bits is below (2^32-1), then only HASH_LENGTH_IN_L needs to be written. The hardware automatically sets HASH_LENGTH_IN_H to 0s in this case. The host may write the length register at any time during the hash session when the rfd_in bit of the HASH_IO_BUF_CTRL is high. The length register must be written before the last data of the active hash session is written into the hash engine. host read operations from these register locations will return 0s. Note: When getting data from DMA, this register must be programmed before DMA is programmed to start.

Source§

impl R<u32, Reg<u32, _HASH_LENGTH_IN_H>>

Source

pub fn length_in(&self) -> LENGTH_IN_R

Bits 0:31 - 31:0] LENGTH_IN[63:32] Message length registers. The content of these registers is used by the hash engine during the message padding phase of the hash session. The data lines of this registers are directly connected to the interface of the hash engine. For a write operation by the host, these registers should be written with the message length in bits. Final hash operations: The total input data length must be programmed for new hash operations that require finalization (padding). The input data must be provided through the slave or DMA interface. Continued hash operations (finalized): For continued hash operations that require finalization, the total message length must be programmed, including the length of previously hashed data that corresponds to the written input digest. Non-final hash operations: For hash operations that do not require finalization (input data length is multiple of 512-bits which is SHA-256 data block size), the length field does not need to be programmed since not used by the operation. If the message length in bits is below (2^32-1), then only HASH_LENGTH_IN_L needs to be written. The hardware automatically sets HASH_LENGTH_IN_H to 0s in this case. The host may write the length register at any time during the hash session when the rfd_in bit of the HASH_IO_BUF_CTRL is high. The length register must be written before the last data of the active hash session is written into the hash engine. host read operations from these register locations will return 0s. Note: When getting data from DMA, this register must be programmed before DMA is programmed to start.

Source§

impl R<u32, Reg<u32, _HASH_DIGEST_A>>

Source

pub fn hash_digest(&self) -> HASH_DIGEST_R

Bits 0:31 - 31:0] HASH_DIGEST[31:0] Hash digest registers Write operation: Continued hash: These registers should be written with the context data, before the start of a resumed hash session (the new_hash bit in the HASH_MODE register is 0 when starting a hash session). New hash: When initiating a new hash session (the new_hash bit in the HASH_MODE register is high), the internal digest registers are automatically set to the SHA-256 algorithm constant and these register should not be written. Reading from these registers provides the intermediate hash result (non-final hash operation) or the final hash result (final hash operation) after data processing.

Source§

impl R<u32, Reg<u32, _HASH_DIGEST_B>>

Source

pub fn hash_digest(&self) -> HASH_DIGEST_R

Bits 0:31 - 31:0] HASH_DIGEST[63:32] Hash digest registers Write operation: Continued hash: These registers should be written with the context data, before the start of a resumed hash session (the new_hash bit in the HASH_MODE register is 0 when starting a hash session). New hash: When initiating a new hash session (the new_hash bit in the HASH_MODE register is high), the internal digest registers are automatically set to the SHA-256 algorithm constant and these register should not be written. Reading from these registers provides the intermediate hash result (non-final hash operation) or the final hash result (final hash operation) after data processing.

Source§

impl R<u32, Reg<u32, _HASH_DIGEST_C>>

Source

pub fn hash_digest(&self) -> HASH_DIGEST_R

Bits 0:31 - 31:0] HASH_DIGEST[95:64] Hash digest registers Write operation: Continued hash: These registers should be written with the context data, before the start of a resumed hash session (the new_hash bit in the HASH_MODE register is 0 when starting a hash session). New hash: When initiating a new hash session (the new_hash bit in the HASH_MODE register is high), the internal digest registers are automatically set to the SHA-256 algorithm constant and these register should not be written. Reading from these registers provides the intermediate hash result (non-final hash operation) or the final hash result (final hash operation) after data processing.

Source§

impl R<u32, Reg<u32, _HASH_DIGEST_D>>

Source

pub fn hash_digest(&self) -> HASH_DIGEST_R

Bits 0:31 - 31:0] HASH_DIGEST[127:96] Hash digest registers Write operation: Continued hash: These registers should be written with the context data, before the start of a resumed hash session (the new_hash bit in the HASH_MODE register is 0 when starting a hash session). New hash: When initiating a new hash session (the new_hash bit in the HASH_MODE register is high), the internal digest registers are automatically set to the SHA-256 algorithm constant and these register should not be written. Reading from these registers provides the intermediate hash result (non-final hash operation) or the final hash result (final hash operation) after data processing.

Source§

impl R<u32, Reg<u32, _HASH_DIGEST_E>>

Source

pub fn hash_digest(&self) -> HASH_DIGEST_R

Bits 0:31 - 31:0] HASH_DIGEST[159:128] Hash digest registers Write operation: Continued hash: These registers should be written with the context data, before the start of a resumed hash session (the new_hash bit in the HASH_MODE register is 0 when starting a hash session). New hash: When initiating a new hash session (the new_hash bit in the HASH_MODE register is high), the internal digest registers are automatically set to the SHA-256 algorithm constant and these register should not be written. Reading from these registers provides the intermediate hash result (non-final hash operation) or the final hash result (final hash operation) after data processing.

Source§

impl R<u32, Reg<u32, _HASH_DIGEST_F>>

Source

pub fn hash_digest(&self) -> HASH_DIGEST_R

Bits 0:31 - 31:0] HASH_DIGEST[191:160] Hash digest registers Write operation: Continued hash: These registers should be written with the context data, before the start of a resumed hash session (the new_hash bit in the HASH_MODE register is 0 when starting a hash session). New hash: When initiating a new hash session (the new_hash bit in the HASH_MODE register is high), the internal digest registers are automatically set to the SHA-256 algorithm constant and these register should not be written. Reading from these registers provides the intermediate hash result (non-final hash operation) or the final hash result (final hash operation) after data processing.

Source§

impl R<u32, Reg<u32, _HASH_DIGEST_G>>

Source

pub fn hash_digest(&self) -> HASH_DIGEST_R

Bits 0:31 - 31:0] HASH_DIGEST[223:192] Hash digest registers Write operation: Continued hash: These registers should be written with the context data, before the start of a resumed hash session (the new_hash bit in the HASH_MODE register is 0 when starting a hash session). New hash: When initiating a new hash session (the new_hash bit in the HASH_MODE register is high), the internal digest registers are automatically set to the SHA-256 algorithm constant and these register should not be written. Reading from these registers provides the intermediate hash result (non-final hash operation) or the final hash result (final hash operation) after data processing.

Source§

impl R<u32, Reg<u32, _HASH_DIGEST_H>>

Source

pub fn hash_digest(&self) -> HASH_DIGEST_R

Bits 0:31 - 31:0] HASH_DIGEST[255:224] Hash digest registers Write operation: Continued hash: These registers should be written with the context data, before the start of a resumed hash session (the new_hash bit in the HASH_MODE register is 0 when starting a hash session). New hash: When initiating a new hash session (the new_hash bit in the HASH_MODE register is high), the internal digest registers are automatically set to the SHA-256 algorithm constant and these register should not be written. Reading from these registers provides the intermediate hash result (non-final hash operation) or the final hash result (final hash operation) after data processing.

Source§

impl R<u32, Reg<u32, _CTRL_ALG_SEL>>

Source

pub fn tag(&self) -> TAG_R

Bit 31 - 31:31] If this bit is cleared to 0, the DMA operation involves only data. If this bit is set, the DMA operation includes a TAG (Authentication Result / Digest). For SHA-256 operation, a DMA must be set up for both input data and TAG. For any other selected module, setting this bit only allows a DMA that reads the TAG. No data allowed to be transferred to or from the selected module via the DMA.

Source

pub fn reserved28(&self) -> RESERVED28_R

Bits 3:30 - 30:3] Bits should be written with 0s and ignored on read.

Source

pub fn hash(&self) -> HASH_R

Bit 2 - 2:2] If set to one, selects the hash engine as destination for the DMA The maximum transfer size to DMA engine is set to 64 bytes for reading and 32 bytes for writing (the latter is only applicable if the hash result is written out through the DMA).

Source

pub fn aes(&self) -> AES_R

Bit 1 - 1:1] If set to one, selects the AES engine as source/destination for the DMA The read and write maximum transfer size to the DMA engine is set to 16 bytes.

Source

pub fn keystore(&self) -> KEYSTORE_R

Bit 0 - 0:0] If set to one, selects the Key Store as destination for the DMA The maximum transfer size to DMA engine is set to 32 bytes (however transfers of 16, 24 and 32 bytes are allowed)

Source§

impl R<u32, Reg<u32, _CTRL_PROT_EN>>

Source

pub fn reserved31(&self) -> RESERVED31_R

Bits 1:31 - 31:1] Bits should be written with 0s and ignored on read.

Source

pub fn prot_en(&self) -> PROT_EN_R

Bit 0 - 0:0] If this bit is cleared to 0, m_h_prot[1] on the AHB mater interface always remains 0. If this bit is set to one, the m_h_prot[1] signal on the master AHB bus is asserted to 1 if an AHB read operation is performed, using DMA, with the key store module as destination.

Source§

impl R<u32, Reg<u32, _CTRL_SW_RESET>>

Source

pub fn reserved31(&self) -> RESERVED31_R

Bits 1:31 - 31:1] Bits should be written with 0s and ignored on read.

Source

pub fn sw_reset(&self) -> SW_RESET_R

Bit 0 - 0:0] If this bit is set to 1, the following modules are reset: - Master control internal state is reset. That includes interrupt, error status register, and result available interrupt generation FSM. - Key store module state is reset. That includes clearing the written area flags; therefore, the keys must be reloaded to the key store module. Writing 0 has no effect. The bit is self cleared after executing the reset.

Source§

impl R<u32, Reg<u32, _CTRL_INT_CFG>>

Source

pub fn reserved31(&self) -> RESERVED31_R

Bits 1:31 - 31:1] Bits should be written with 0s and ignored on read.

Source

pub fn level(&self) -> LEVEL_R

Bit 0 - 0:0] If this bit is 0, the interrupt output is a pulse. If this bit is set to 1, the interrupt is a level interrupt that must be cleared by writing the interrupt clear register. This bit is applicable for both interrupt output signals.

Source§

impl R<u32, Reg<u32, _CTRL_INT_EN>>

Source

pub fn reserved30(&self) -> RESERVED30_R

Bits 2:31 - 31:2] Bits should be written with 0s and ignored on read.

Source

pub fn dma_in_done(&self) -> DMA_IN_DONE_R

Bit 1 - 1:1] If this bit is set to 0, the DMA input done (irq_dma_in_done) interrupt output is disabled and remains 0. If this bit is set to 1, the DMA input done interrupt output is enabled.

Source

pub fn result_av(&self) -> RESULT_AV_R

Bit 0 - 0:0] If this bit is set to 0, the result available (irq_result_av) interrupt output is disabled and remains 0. If this bit is set to 1, the result available interrupt output is enabled.

Source§

impl R<u32, Reg<u32, _CTRL_INT_CLR>>

Source

pub fn dma_bus_err(&self) -> DMA_BUS_ERR_R

Bit 31 - 31:31] If 1 is written to this bit, the DMA bus error status is cleared. Writing 0 has no effect.

Source

pub fn key_st_wr_err(&self) -> KEY_ST_WR_ERR_R

Bit 30 - 30:30] If 1 is written to this bit, the key store write error status is cleared. Writing 0 has no effect.

Source

pub fn key_st_rd_err(&self) -> KEY_ST_RD_ERR_R

Bit 29 - 29:29] If 1 is written to this bit, the key store read error status is cleared. Writing 0 has no effect.

Source

pub fn reserved27(&self) -> RESERVED27_R

Bits 2:28 - 28:2] Bits should be written with 0s and ignored on read.

Source

pub fn dma_in_done(&self) -> DMA_IN_DONE_R

Bit 1 - 1:1] If 1 is written to this bit, the DMA in done (irq_dma_in_done) interrupt output is cleared. Writing 0 has no effect. Note that clearing an interrupt makes sense only if the interrupt output is programmed as level (refer to CTRL_INT_CFG).

Source

pub fn result_av(&self) -> RESULT_AV_R

Bit 0 - 0:0] If 1 is written to this bit, the result available (irq_result_av) interrupt output is cleared. Writing 0 has no effect. Note that clearing an interrupt makes sense only if the interrupt output is programmed as level (refer to CTRL_INT_CFG).

Source§

impl R<u32, Reg<u32, _CTRL_INT_SET>>

Source

pub fn reserved30(&self) -> RESERVED30_R

Bits 2:31 - 31:2] Bits should be written with 0s and ignored on read.

Source

pub fn dma_in_done(&self) -> DMA_IN_DONE_R

Bit 1 - 1:1] If 1 is written to this bit, the DMA data in done (irq_dma_in_done) interrupt output is set to one. Writing 0 has no effect. If the interrupt configuration register is programmed to pulse, clearing the DMA data in done (irq_dma_in_done) interrupt is not needed. If it is programmed to level, clearing the interrupt output should be done by writing the interrupt clear register (CTRL_INT_CLR).

Source

pub fn result_av(&self) -> RESULT_AV_R

Bit 0 - 0:0] If 1 is written to this bit, the result available (irq_result_av) interrupt output is set to one. Writing 0 has no effect. If the interrupt configuration register is programmed to pulse, clearing the result available (irq_result_av) interrupt is not needed. If it is programmed to level, clearing the interrupt output should be done by writing the interrupt clear register (CTRL_INT_CLR).

Source§

impl R<u32, Reg<u32, _CTRL_INT_STAT>>

Source

pub fn dma_bus_err(&self) -> DMA_BUS_ERR_R

Bit 31 - 31:31] This bit is set when a DMA bus error is detected during a DMA operation. The value of this register is held until it is cleared through the CTRL_INT_CLR register. Note: This error is asserted if an error is detected on the AHB master interface during a DMA operation.

Source

pub fn key_st_wr_err(&self) -> KEY_ST_WR_ERR_R

Bit 30 - 30:30] This bit is set when a write error is detected during the DMA write operation to the key store memory. The value of this register is held until it is cleared through the CTRL_INT_CLR register. Note: This error is asserted if a DMA operation does not cover a full key area or more areas are written than expected.

Source

pub fn key_st_rd_err(&self) -> KEY_ST_RD_ERR_R

Bit 29 - 29:29] This bit is set when a read error is detected during the read of a key from the key store, while copying it to the AES core. The value of this register is held until it is cleared through the CTRL_INT_CLR register. Note: This error is asserted if a key location is selected in the key store that is not available.

Source

pub fn reserved27(&self) -> RESERVED27_R

Bits 2:28 - 28:2] Bits should be ignored

Source

pub fn dma_in_done(&self) -> DMA_IN_DONE_R

Bit 1 - 1:1] This read only bit returns the actual DMA data in done (irq_data_in_done) interrupt status of the DMA data in done interrupt output pin (irq_data_in_done).

Source

pub fn result_av(&self) -> RESULT_AV_R

Bit 0 - 0:0] This read only bit returns the actual result available (irq_result_av) interrupt status of the result available interrupt output pin (irq_result_av).

Source§

impl R<u32, Reg<u32, _CTRL_OPTIONS>>

Source

pub fn type_(&self) -> TYPE_R

Bits 24:31 - 31:24] This field is 0x01 for the TYPE1 device.

Source

pub fn reserved7(&self) -> RESERVED7_R

Bits 17:23 - 23:17] Bits should be ignored

Source

pub fn ahbinterface(&self) -> AHBINTERFACE_R

Bit 16 - 16:16] AHB interface is available If this bit is 0, the EIP-120t has a TCM interface.

Source

pub fn reserved1(&self) -> RESERVED1_R

Bits 9:15 - 15:9] Bits should be ignored

Source

pub fn sha_256(&self) -> SHA_256_R

Bit 8 - 8:8] The HASH core supports SHA-256.

Source

pub fn aes_ccm(&self) -> AES_CCM_R

Bit 7 - 7:7] AES-CCM is available as a single operation.

Source

pub fn aes_gcm(&self) -> AES_GCM_R

Bit 6 - 6:6] AES-GCM is available as a single operation.

Source

pub fn aes_256(&self) -> AES_256_R

Bit 5 - 5:5] AES core supports 256-bit keys Note: If both AES-128 and AES-256 are set to one, the AES core supports 192-bit keys as well.

Source

pub fn aes_128(&self) -> AES_128_R

Bit 4 - 4:4] AES core supports 128-bit keys.

Source

pub fn reserved2(&self) -> RESERVED2_R

Bit 3 - 3:3] Bit should be ignored

Source

pub fn hash(&self) -> HASH_R

Bit 2 - 2:2] HASH Core is available.

Source

pub fn aes(&self) -> AES_R

Bit 1 - 1:1] AES core is available.

Source

pub fn keystore(&self) -> KEYSTORE_R

Bit 0 - 0:0] KEY STORE is available.

Source§

impl R<u32, Reg<u32, _CTRL_VERSION>>

Source

pub fn reserved1(&self) -> RESERVED1_R

Bits 28:31 - 31:28] Bit should be ignored

Source

pub fn major_version(&self) -> MAJOR_VERSION_R

Bits 24:27 - 27:24] Major version number

Source

pub fn minor_version(&self) -> MINOR_VERSION_R

Bits 20:23 - 23:20] Minor version number

Source

pub fn patch_level(&self) -> PATCH_LEVEL_R

Bits 16:19 - 19:16] Patch level Starts at 0 at first delivery of this version

Source

pub fn eip_number_compl(&self) -> EIP_NUMBER_COMPL_R

Bits 8:15 - 15:8] These bits simply contain the complement of bits [7:0] (0x87), used by a driver to ascertain that the EIP-120t register is indeed read.

Source

pub fn eip_number(&self) -> EIP_NUMBER_R

Bits 0:7 - 7:0] These bits encode the EIP number for the EIP-120t, this field contains the value 120 (decimal) or 0x78.

Source§

impl R<u32, Reg<u32, _CLOCK_CTRL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 26:31 - 31:26] This register is 8 bits in a 32-bit address space.

Source

pub fn osc32k_caldis(&self) -> OSC32K_CALDIS_R

Bit 25 - 25:25] Disable calibration 32-kHz RC oscillator. 0: Enable calibration 1: Disable calibration

Source

pub fn osc32k(&self) -> OSC32K_R

Bit 24 - 24:24] 32-kHz clock oscillator selection 0: 32-kHz crystal oscillator 1: 32-kHz RC oscillator

Source

pub fn reserved24(&self) -> RESERVED24_R

Bits 22:23 - 23:22] Reserved. Always read 0.

Source

pub fn amp_det(&self) -> AMP_DET_R

Bit 21 - 21:21] Amplitude detector of XOSC during power up 0: No action 1: Delay qualification of XOSC until amplitude is greater than the threshold.

Source

pub fn reserved21(&self) -> RESERVED21_R

Bits 18:20 - 20:18] Reserved. Always read 0.

Source

pub fn osc_pd(&self) -> OSC_PD_R

Bit 17 - 17:17] 0: Power up both oscillators 1: Power down oscillator not selected by OSC bit (hardware-controlled when selected).

Source

pub fn osc(&self) -> OSC_R

Bit 16 - 16:16] System clock oscillator selection 0: 32-MHz crystal oscillator 1: 16-MHz HF-RC oscillator

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 11:15 - 15:11] Reserved. Always read 0.

Source

pub fn io_div(&self) -> IO_DIV_R

Bits 8:10 - 10:8] I/O clock rate setting Cannot be higher than OSC setting 000: 32 MHz 001: 16 MHz 010: 8 MHz 011: 4 MHz 100: 2 MHz 101: 1 MHz 110: 0.5 MHz 111: 0.25 MHz

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 6:7 - 7:6] Reserved. Always read 0.

Source

pub fn reserved5(&self) -> RESERVED5_R

Bit 5 - 5:5] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn reserved3(&self) -> RESERVED3_R

Bits 3:4 - 4:3] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn sys_div(&self) -> SYS_DIV_R

Bits 0:2 - 2:0] System clock rate setting Cannot be higher than OSC setting 000: 32 MHz 001: 16 MHz 010: 8 MHz 011: 4 MHz 100: 2 MHz 101: 1 MHz 110: 0.5 MHz 111: 0.25 MHz

Source§

impl R<u32, Reg<u32, _CLOCK_STA>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 27:31 - 31:27] This register is 8 bits in a 32-bit address space.

Source

pub fn sync_32k(&self) -> SYNC_32K_R

Bit 26 - 26:26] 32-kHz clock source synced to undivided system clock (16 or 32 MHz).

Source

pub fn osc32k_caldis(&self) -> OSC32K_CALDIS_R

Bit 25 - 25:25] Disable calibration 32-kHz RC oscillator. 0: Calibration enabled 1: Calibration disabled

Source

pub fn osc32k(&self) -> OSC32K_R

Bit 24 - 24:24] Current 32-kHz clock oscillator selected. 0: 32-kHz crystal oscillator 1: 32-kHz RC oscillator

Source

pub fn rst(&self) -> RST_R

Bits 22:23 - 23:22] Returns last source of reset 00: POR 01: External reset 10: WDT 11: CLD or software reset

Source

pub fn reserved22(&self) -> RESERVED22_R

Bit 21 - 21:21] Reserved. Always read 0.

Source

pub fn source_change(&self) -> SOURCE_CHANGE_R

Bit 20 - 20:20] 0: System clock is not requested to change. 1: A change of system clock source has been initiated and is not finished. Same as when OSC bit in CLOCK_STA and CLOCK_CTRL register are not equal

Source

pub fn xosc_stb(&self) -> XOSC_STB_R

Bit 19 - 19:19] XOSC stable status 0: XOSC is not powered up or not yet stable. 1: XOSC is powered up and stable.

Source

pub fn hsosc_stb(&self) -> HSOSC_STB_R

Bit 18 - 18:18] HSOSC stable status 0: HSOSC is not powered up or not yet stable. 1: HSOSC is powered up and stable.

Source

pub fn osc_pd(&self) -> OSC_PD_R

Bit 17 - 17:17] 0: Both oscillators powered up and stable and OSC_PD_CMD = 0. 1: Oscillator not selected by CLOCK_CTRL.OSC bit is powered down.

Source

pub fn osc(&self) -> OSC_R

Bit 16 - 16:16] Current clock source selected 0: 32-MHz crystal oscillator 1: 16-MHz HF-RC oscillator

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 11:15 - 15:11] Reserved. Always read 0.

Source

pub fn io_div(&self) -> IO_DIV_R

Bits 8:10 - 10:8] Returns current functional frequency for IO_CLK (may differ from setting in the CLOCK_CTRL register) 000: 32 MHz 001: 16 MHz 010: 8 MHz 011: 4 MHz 100: 2 MHz 101: 1 MHz 110: 0.5 MHz 111: 0.25 MHz

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 5:7 - 7:5] Reserved. Always read 0.

Source

pub fn rtclk_freq(&self) -> RTCLK_FREQ_R

Bits 3:4 - 4:3] Returns current functional frequency for real-time clock. (may differ from setting in the CLOCK_CTRL register) 1x : 8 MHz 01: 2 MHz 00: 62.5 kHz

Source

pub fn sys_div(&self) -> SYS_DIV_R

Bits 0:2 - 2:0] Returns current functional frequency for system clock (may differ from setting in the CLOCK_CTRL register) 000: 32 MHz 001: 16 MHz 010: 8 MHz 011: 4 MHz 100: 2 MHz 101: 1 MHz 110: 0.5 MHz 111: 0.25 MHz

Source§

impl R<u32, Reg<u32, _RCGCGPT>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] This register is 8 bits in a 32-bit address space.

Source

pub fn gpt3(&self) -> GPT3_R

Bit 3 - 3:3] 0: Clock for GPT3 is gated. 1: Clock for GPT3 is enabled.

Source

pub fn gpt2(&self) -> GPT2_R

Bit 2 - 2:2] 0: Clock for GPT2 is gated. 1: Clock for GPT2 is enabled.

Source

pub fn gpt1(&self) -> GPT1_R

Bit 1 - 1:1] 0: Clock for GPT1 is gated. 1: Clock for GPT1 is enabled.

Source

pub fn gpt0(&self) -> GPT0_R

Bit 0 - 0:0] 0: Clock for GPT0 is gated. 1: Clock for GPT0 is enabled.

Source§

impl R<u32, Reg<u32, _SCGCGPT>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] This register is 8 bits in a 32-bit address space.

Source

pub fn gpt3(&self) -> GPT3_R

Bit 3 - 3:3] 0: Clock for GPT3 is gated. 1: Clock for GPT3 is enabled.

Source

pub fn gpt2(&self) -> GPT2_R

Bit 2 - 2:2] 0: Clock for GPT2 is gated. 1: Clock for GPT2 is enabled.

Source

pub fn gpt1(&self) -> GPT1_R

Bit 1 - 1:1] 0: Clock for GPT1 is gated. 1: Clock for GPT1 is enabled.

Source

pub fn gpt0(&self) -> GPT0_R

Bit 0 - 0:0] 0: Clock for GPT0 is gated. 1: Clock for GPT0 is enabled.

Source§

impl R<u32, Reg<u32, _DCGCGPT>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] This register is 8 bits in a 32-bit address space.

Source

pub fn gpt3(&self) -> GPT3_R

Bit 3 - 3:3] 0: Clock for GPT3 is gated. 1: Clock for GPT3 is enabled.

Source

pub fn gpt2(&self) -> GPT2_R

Bit 2 - 2:2] 0: Clock for GPT2 is gated. 1: Clock for GPT2 is enabled.

Source

pub fn gpt1(&self) -> GPT1_R

Bit 1 - 1:1] 0: Clock for GPT1 is gated. 1: Clock for GPT1 is enabled.

Source

pub fn gpt0(&self) -> GPT0_R

Bit 0 - 0:0] 0: Clock for GPT0 is gated. 1: Clock for GPT0 is enabled.

Source§

impl R<u32, Reg<u32, _SRGPT>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] This register is 8 bits in a 32-bit address space.

Source

pub fn gpt3(&self) -> GPT3_R

Bit 3 - 3:3] 0: GPT3 module is not reset 1: GPT3 module is reset

Source

pub fn gpt2(&self) -> GPT2_R

Bit 2 - 2:2] 0: GPT2 module is not reset 1: GPT2 module is reset

Source

pub fn gpt1(&self) -> GPT1_R

Bit 1 - 1:1] 0: GPT1 module is not reset 1: GPT1 module is reset

Source

pub fn gpt0(&self) -> GPT0_R

Bit 0 - 0:0] 0: GPT0 module is not reset 1: GPT0 module is reset

Source§

impl R<u32, Reg<u32, _RCGCSSI>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 2:31 - 31:2] This register is 8 bits in a 32-bit address space.

Source

pub fn ssi1(&self) -> SSI1_R

Bit 1 - 1:1] 0: Clock for SSI1 is gated. 1: Clock for SSI1 is enabled.

Source

pub fn ssi0(&self) -> SSI0_R

Bit 0 - 0:0] 0: Clock for SSI0 is gated. 1: Clock for SSI0 is enabled.

Source§

impl R<u32, Reg<u32, _SCGCSSI>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 2:31 - 31:2] This register is 8 bits in a 32-bit address space.

Source

pub fn ssi1(&self) -> SSI1_R

Bit 1 - 1:1] 0: Clock for SSI1 is gated. 1: Clock for SSI1 is enabled.

Source

pub fn ssi0(&self) -> SSI0_R

Bit 0 - 0:0] 0: Clock for SSI0 is gated. 1: Clock for SSI0 is enabled.

Source§

impl R<u32, Reg<u32, _DCGCSSI>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 2:31 - 31:2] This register is 8 bits in a 32-bit address space.

Source

pub fn ssi1(&self) -> SSI1_R

Bit 1 - 1:1] 0: Clock for SSI1 is gated. 1: Clock for SSI1 is enabled.

Source

pub fn ssi0(&self) -> SSI0_R

Bit 0 - 0:0] 0: Clock for SSI0 is gated. 1: Clock for SSI0 is enabled.

Source§

impl R<u32, Reg<u32, _SRSSI>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 2:31 - 31:2] This register is 8 bits in a 32-bit address space.

Source

pub fn ssi1(&self) -> SSI1_R

Bit 1 - 1:1] 0: SSI1 module is not reset 1: SSI1 module is reset

Source

pub fn ssi0(&self) -> SSI0_R

Bit 0 - 0:0] 0: SSI0 module is not reset 1: SSI0 module is reset

Source§

impl R<u32, Reg<u32, _RCGCUART>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 2:31 - 31:2] This register is 8 bits in a 32-bit address space.

Source

pub fn uart1(&self) -> UART1_R

Bit 1 - 1:1] 0: Clock for UART1 is gated. 1: Clock for UART1 is enabled.

Source

pub fn uart0(&self) -> UART0_R

Bit 0 - 0:0] 0: Clock for UART0 is gated. 1: Clock for UART0 is enabled.

Source§

impl R<u32, Reg<u32, _SCGCUART>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 2:31 - 31:2] This register is 8 bits in a 32-bit address space.

Source

pub fn uart1(&self) -> UART1_R

Bit 1 - 1:1] 0: Clock for UART1 is gated. 1: Clock for UART1 is enabled.

Source

pub fn uart0(&self) -> UART0_R

Bit 0 - 0:0] 0: Clock for UART0 is gated. 1: Clock for UART0 is enabled.

Source§

impl R<u32, Reg<u32, _DCGCUART>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 2:31 - 31:2] This register is 8 bits in a 32-bit address space.

Source

pub fn uart1(&self) -> UART1_R

Bit 1 - 1:1] 0: Clock for UART1 is gated. 1: Clock for UART1 is enabled.

Source

pub fn uart0(&self) -> UART0_R

Bit 0 - 0:0] 0: Clock for UART0 is gated. 1: Clock for UART0 is enabled.

Source§

impl R<u32, Reg<u32, _SRUART>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 2:31 - 31:2] This register is 8 bits in a 32-bit address space.

Source

pub fn uart1(&self) -> UART1_R

Bit 1 - 1:1] 0: UART1 module is not reset 1: UART1 module is reset

Source

pub fn uart0(&self) -> UART0_R

Bit 0 - 0:0] 0: UART0 module is not reset 1: UART0 module is reset

Source§

impl R<u32, Reg<u32, _RCGCI2C>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 1:31 - 31:1] This register is 8 bits in a 32-bit address space.

Source

pub fn i2c0(&self) -> I2C0_R

Bit 0 - 0:0] 0: Clock for I2C0 is gated. 1: Clock for I2C0 is enabled.

Source§

impl R<u32, Reg<u32, _SCGCI2C>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 1:31 - 31:1] This register is 8 bits in a 32-bit address space.

Source

pub fn i2c0(&self) -> I2C0_R

Bit 0 - 0:0] 0: Clock for I2C0 is gated. 1: Clock for I2C0 is enabled.

Source§

impl R<u32, Reg<u32, _DCGCI2C>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 1:31 - 31:1] This register is 8 bits in a 32-bit address space.

Source

pub fn i2c0(&self) -> I2C0_R

Bit 0 - 0:0] 0: Clock for I2C0 is gated. 1: Clock for I2C0 is enabled.

Source§

impl R<u32, Reg<u32, _SRI2C>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 1:31 - 31:1] This register is 8 bits in a 32-bit address space.

Source

pub fn i2c0(&self) -> I2C0_R

Bit 0 - 0:0] 0: I2C0 module is not reset 1: I2C0 module is reset

Source§

impl R<u32, Reg<u32, _RCGCSEC>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 2:31 - 31:2] This register is 8 bits in a 32-bit address space.

Source

pub fn aes(&self) -> AES_R

Bit 1 - 1:1] 0: Clock for AES is gated. 1: Clock for AES is enabled.

Source

pub fn pka(&self) -> PKA_R

Bit 0 - 0:0] 0: Clock for PKA is gated. 1: Clock for PKA is enabled.

Source§

impl R<u32, Reg<u32, _SCGCSEC>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 2:31 - 31:2] This register is 8 bits in a 32-bit address space.

Source

pub fn aes(&self) -> AES_R

Bit 1 - 1:1] 0: Clock for AES is gated. 1: Clock for AES is enabled.

Source

pub fn pka(&self) -> PKA_R

Bit 0 - 0:0] 0: Clock for PKA is gated. 1: Clock for PKA is enabled.

Source§

impl R<u32, Reg<u32, _DCGCSEC>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 2:31 - 31:2] This register is 8 bits in a 32-bit address space.

Source

pub fn aes(&self) -> AES_R

Bit 1 - 1:1] 0: Clock for AES is gated. 1: Clock for AES is enabled.

Source

pub fn pka(&self) -> PKA_R

Bit 0 - 0:0] 0: Clock for PKA is gated. 1: Clock for PKA is enabled.

Source§

impl R<u32, Reg<u32, _SRSEC>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 2:31 - 31:2] This register is 8 bits in a 32-bit address space.

Source

pub fn aes(&self) -> AES_R

Bit 1 - 1:1] 0: AES module is not reset 1: AES module is reset

Source

pub fn pka(&self) -> PKA_R

Bit 0 - 0:0] 0: PKA module is not reset 1: PKA module is reset

Source§

impl R<u32, Reg<u32, _PMCTL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 2:31 - 31:2] This register is 8 bits in a 32-bit address space.

Source

pub fn pm(&self) -> PM_R

Bits 0:1 - 1:0] 00: No action 01: PM1 10: PM2 11: PM3

Source§

impl R<u32, Reg<u32, _SRCRC>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 13:31 - 31:13] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved12(&self) -> RESERVED12_R

Bit 12 - 12:12] Reserved

Source

pub fn reserved10(&self) -> RESERVED10_R

Bits 10:11 - 11:10] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn reserved9(&self) -> RESERVED9_R

Bit 9 - 9:9] Reserved

Source

pub fn crc_ren_usb(&self) -> CRC_REN_USB_R

Bit 8 - 8:8] 1: Enable reset of chip if CRC fails. 0: Disable reset feature of chip due to CRC.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 5:7 - 7:5] Reserved

Source

pub fn reserved4(&self) -> RESERVED4_R

Bit 4 - 4:4] Reserved

Source

pub fn reserved2(&self) -> RESERVED2_R

Bits 2:3 - 3:2] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn reserved1(&self) -> RESERVED1_R

Bit 1 - 1:1] Reserved

Source

pub fn crc_ren_rf(&self) -> CRC_REN_RF_R

Bit 0 - 0:0] 1: Enable reset of chip if CRC fails. 0: Disable reset feature of chip due to CRC.

Source§

impl R<u32, Reg<u32, _PWRDBG>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] This register is 8 bits in a 32-bit address space.

Source

pub fn force_warm_reset(&self) -> FORCE_WARM_RESET_R

Bit 3 - 3:3] 0: No action 1: When written high, the chip is reset in the same manner as a CLD event and is readable from the RST field in the CLOCK_STA register.

Source

pub fn reserved2(&self) -> RESERVED2_R

Bit 2 - 2:2] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn reserved1(&self) -> RESERVED1_R

Bit 1 - 1:1] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source§

impl R<u32, Reg<u32, _CLD>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 9:31 - 31:9] This register is 8 bits in a 32-bit address space.

Source

pub fn valid(&self) -> VALID_R

Bit 8 - 8:8] 0: CLD status in always-on domain is not equal to status in the EN register. 1: CLD status in always-on domain and EN register are equal.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 1:7 - 7:1] Reserved. Always read zero

Source

pub fn en(&self) -> EN_R

Bit 0 - 0:0] 0: CLD is disabled. 1: CLD is enabled. Writing to this register shall be ignored if VALID = 0

Source§

impl R<u32, Reg<u32, _IWE>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 6:31 - 31:6] This register is 8 bits in a 32-bit address space.

Source

pub fn sm_timer_iwe(&self) -> SM_TIMER_IWE_R

Bit 5 - 5:5] 1: Enable SM Timer wake-up interrupt. 0: Disable SM Timer wake-up interrupt.

Source

pub fn usb_iwe(&self) -> USB_IWE_R

Bit 4 - 4:4] 1: Enable USB wake-up interrupt. 0: Disable USB wake-up interrupt.

Source

pub fn port_d_iwe(&self) -> PORT_D_IWE_R

Bit 3 - 3:3] 1: Enable port D wake-up interrupt. 0: Disable port D wake-up interrupt.

Source

pub fn port_c_iwe(&self) -> PORT_C_IWE_R

Bit 2 - 2:2] 1: Enable port C wake-up interrupt. 0: Disable port C wake-up interrupt.

Source

pub fn port_b_iwe(&self) -> PORT_B_IWE_R

Bit 1 - 1:1] 1: Enable port B wake-up interrupt. 0: Disable port B wake-up interrupt.

Source

pub fn port_a_iwe(&self) -> PORT_A_IWE_R

Bit 0 - 0:0] 1: Enable port A wake-up interrupt. 0: Disable port A wake-up interrupt.

Source§

impl R<u32, Reg<u32, _I_MAP>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 1:31 - 31:1] This register is 8 bits in a 32-bit address space.

Source

pub fn altmap(&self) -> ALTMAP_R

Bit 0 - 0:0] 1: Select alternate interrupt map. 0: Select regular interrupt map. (See the ASD document for details.)

Source§

impl R<u32, Reg<u32, _RCGCRFC>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 1:31 - 31:1] This register is 8 bits in a 32-bit address space.

Source

pub fn rfc0(&self) -> RFC0_R

Bit 0 - 0:0] 0: Clock for RF CORE is gated. 1: Clock for RF CORE is enabled.

Source§

impl R<u32, Reg<u32, _SCGCRFC>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 1:31 - 31:1] This register is 8 bits in a 32-bit address space.

Source

pub fn rfc0(&self) -> RFC0_R

Bit 0 - 0:0] 0: Clock for RF CORE is gated. 1: Clock for RF CORE is enabled.

Source§

impl R<u32, Reg<u32, _DCGCRFC>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 1:31 - 31:1] This register is 8 bits in a 32-bit address space.

Source

pub fn rfc0(&self) -> RFC0_R

Bit 0 - 0:0] 0: Clock for RF CORE is gated. 1: Clock for RF CORE is enabled.

Source§

impl R<u32, Reg<u32, _EMUOVR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Unused. This register is 8 bits in a 32-bit address space.

Source

pub fn icepick_force_clock_cg(&self) -> ICEPICK_FORCE_CLOCK_CG_R

Bit 7 - 7:7] ICEPick ‘Force Active’ clock gate override bit. ‘Force Active’ is an ICEPick command. 1 –> In non-sleep power mode, peripherals clocks are forced to follow RCG* register settings. It forces CM3 clocks on. 0 –> Does not affect the peripheral clock settings.

Source

pub fn icepick_force_power_cg(&self) -> ICEPICK_FORCE_POWER_CG_R

Bit 6 - 6:6] ICEPick ‘Force Power’ clock gate override bit. ‘Force Power’ is an ICEPick command. 1 –> In non-sleep power mode, peripherals clocks are forced to follow RCG* register settings. It forces CM3 clocks on. 0 –> Does not affect the peripheral clock settings.

Source

pub fn icepick_inhibit_sleep_cg(&self) -> ICEPICK_INHIBIT_SLEEP_CG_R

Bit 5 - 5:5] ICEPick ‘Inhibit Sleep’ clock gate override bit. ‘Inhibit Sleep’ is an ICEPick command. 1 –> In non-sleep power mode, peripherals clocks are forced to follow RCG* register settings. It forces CM3 clocks on. 0 –> Does not affect the peripheral clock settings.

Source

pub fn icemelter_wkup_cg(&self) -> ICEMELTER_WKUP_CG_R

Bit 4 - 4:4] ICEMelter ‘WAKEUPEMU’ clock gate override bit. 1 –> In non-sleep power mode, peripherals clocks are forced to follow RCG* register settings. It forces CM3 clocks on. 0 –> Does not affect the peripheral clock settings

Source

pub fn icepick_force_clock_pm(&self) -> ICEPICK_FORCE_CLOCK_PM_R

Bit 3 - 3:3] ICEPick ‘Force Active’ power mode override bit. ‘Force Active’ is an ICEPick command. 1 –> Prohibit the system to go into any power down modes. Keeps the emulator attached. 0 –> Does not override any power mode settings from SYSREGS and does not prohibit system to go into any power down modes.

Source

pub fn icepick_force_power_pm(&self) -> ICEPICK_FORCE_POWER_PM_R

Bit 2 - 2:2] ICEPick ‘Force Power’ power mode override bit. ‘Force Power’ is an ICEPick command. 1 –> Prohibit the system to go into any power down modes. Keeps the emulator attached. 0 –> Does not override any power mode settings from SYSREGS and does not prohibit system to go into any power down modes.

Source

pub fn icepick_inhibit_sleep_pm(&self) -> ICEPICK_INHIBIT_SLEEP_PM_R

Bit 1 - 1:1] ICEPick ‘Inhibit Sleep’ power mode override bit. ‘Inhibit Sleep’ is an ICEPick command. 1 –> Prohibit the system to go into any power down modes. Keeps the emulator attached. 0 –> Does not override any power mode settings from SYSREGS and does not prohibit system to go into any power down modes.

Source

pub fn icemelter_wkup_pm(&self) -> ICEMELTER_WKUP_PM_R

Bit 0 - 0:0] ICEMelter ‘WAKEUPEMU’ power mode override bit. 1 –> Prohibit the system to go into any power down modes. Keeps the emulator attached. 0 –> Does not override any power mode settings from SYSREGS and does not prohibit system to go into any power down modes.

Source§

impl R<u32, Reg<u32, _FCTL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 10:31 - 31:10] Unused

Source

pub fn upper_page_access(&self) -> UPPER_PAGE_ACCESS_R

Bit 9 - 9:9] Lock bit for lock bit page 0: Neither write nor erase not allowed 1: Both write and erase allowed

Source

pub fn sel_info_page(&self) -> SEL_INFO_PAGE_R

Bit 8 - 8:8] Flash erase or write operation on APB bus must assert this when accessing the information page

Source

pub fn busy(&self) -> BUSY_R

Bit 7 - 7:7] Set when the WRITE or ERASE bit is set; that is, when the flash controller is busy

Source

pub fn full(&self) -> FULL_R

Bit 6 - 6:6] Write buffer full The CPU can write to FWDATA when this bit is 0 and WRITE is 1. This bit is cleared when BUSY is cleared.

Source

pub fn abort(&self) -> ABORT_R

Bit 5 - 5:5] Abort status This bit is set to 1 when a write sequence or page erase is aborted. An operation is aborted when the accessed page is locked. Cleared when a write or page erase is started. If a write operation times out (because the FWDATA register is not written fast enough), the ABORT bit is not set even if the page is locked. If a page erase and a write operation are started simultaneously, the ABORT bit reflects the status of the last write operation. For example, if the page is locked and the write times out, the ABORT bit is not set because only the write operation times out.

Source

pub fn reserved5(&self) -> RESERVED5_R

Bit 4 - 4:4] Reserved

Source

pub fn cm(&self) -> CM_R

Bits 2:3 - 3:2] Cache Mode Disabling the cache increases the power consumption and reduces performance. Prefetching improves performance at the expense of a potential increase in power consumption. Real-time mode provides predictable flash read access time, the execution time is equal to cache disabled mode, but the power consumption is lower. 00: Cache disabled 01: Cache enabled 10: Cache enabled, with prefetch 11: Real-time mode Note: The read value always represents the current cache mode. Writing a new cache mode starts a cache mode change request that does not take effect until the controller is ready. Writes to this register are ignored if there is a current cache change request in progress.

Source

pub fn write(&self) -> WRITE_R

Bit 1 - 1:1] Write bit Start a write sequence by setting this bit to 1. Cleared by hardware when the operation completes. Writes to this bit are ignored when FCTL.BUSY is 1. If FCTL.ERASE is set simultaneously with this bit, the erase operation is started first, then the write is started.

Source

pub fn erase(&self) -> ERASE_R

Bit 0 - 0:0] Erase bit Start an erase operation by setting this bit to 1. Cleared by hardware when the operation completes. Writes to this bit are ignored when FCTL.BUSY is 1. If FCTL.WRITE is set simultaneously with this bit, the erase operation is started first, then the write is started.

Source§

impl R<u32, Reg<u32, _FADDR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 17:31 - 31:17] Unused. These bits always reflect 0 on read back

Source

pub fn faddr(&self) -> FADDR_R

Bits 0:16 - 16:0] Bit number [16:9] selects one of 256 pages for page erase. Bit number [8:7] selects one of the 4 row in a given page Bit number [6:1] selects one of the 64-bit wide locations in a give row. Bit number [0] will select upper/lower 32-bits in a given 64-bit location - 64Kbytes –> Bits [16:14] will always be 0. - 128Kbytes –> Bits [16:15] will always be 0. - 256Kbytes –> Bit [16] will always be 0. - 384/512Kbytes –> All bits written and valid. Writes to this register will be ignored when any of FCTL.WRITE and FCTL.ERASE is set. FADDR should be written with byte addressable location of the Flash to be programmed. Read back value always reflects a 32-bit aligned address. When the register is read back, the value that was written to FADDR gets right shift by 2 to indicate 32-bit aligned address. In other words lower 2 bits are discarded while reading back the register. Out of range address results in roll over. There is no status signal generated by flash controller to indicate this. Firmware is responsible to managing the addresses correctly.

Source§

impl R<u32, Reg<u32, _FWDATA>>

Source

pub fn fwdata(&self) -> FWDATA_R

Bits 0:31 - 31:0] 32-bit flash write data Writes to this register are accepted only during a flash write sequence; that is, writes to this register after having written 1 to the FCTL.WRITE bit. New 32-bit data is written only if FCTL.FULL = 0.

Source§

impl R<u32, Reg<u32, _DIECFG0>>

Source

pub fn chipid(&self) -> CHIPID_R

Bits 16:31 - 31:16] Register copy of configuration bits Three clock cycles after reset is released, this bit field is equal to the field with the same name in the information page.

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 11:15 - 15:11] Unused

Source

pub fn clk_sel_gate_en_n(&self) -> CLK_SEL_GATE_EN_N_R

Bit 10 - 10:10] Register copy of configuration bits Three clock cycles after reset is released, this bit is equal to the field with the same name in the information page.

Source

pub fn sram_size(&self) -> SRAM_SIZE_R

Bits 7:9 - 9:7] Register copy of configuration bits Three clock cycles after reset is released, this bit field is equal to the field with the same name in the information page.

Source

pub fn flash_size(&self) -> FLASH_SIZE_R

Bits 4:6 - 6:4] Register copy of configuration bits Three clock cycles after reset is released, this bit field is equal to the field with the same name in the information page.

Source

pub fn usb_enable(&self) -> USB_ENABLE_R

Bit 3 - 3:3] Register copy of configuration bits Three clock cycles after reset is released, this bit is equal to the field with the same name in the information page.

Source

pub fn mass_erase_enable(&self) -> MASS_ERASE_ENABLE_R

Bit 2 - 2:2] Register copy of configuration bits Three clock cycles after reset is released, this bit is equal to the field with the same name in the information page.

Source

pub fn lock_fwt_n(&self) -> LOCK_FWT_N_R

Bit 1 - 1:1] Register copy of configuration bits Three clock cycles after reset is released, this bit is equal to the field with the same name in the information page.

Source

pub fn lock_ip_n(&self) -> LOCK_IP_N_R

Bit 0 - 0:0] Register copy of configuration bits Three clock cycles after reset is released, this bit is equal to the field with the same name in the information page.

Source§

impl R<u32, Reg<u32, _DIECFG1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 25:31 - 31:25] Unused

Source

pub fn i2c_en(&self) -> I2C_EN_R

Bit 24 - 24:24] 1: I2C is enabled. 0: I2C is permanently disabled.

Source

pub fn reserved24(&self) -> RESERVED24_R

Bits 18:23 - 23:18] Unused

Source

pub fn uart1_en(&self) -> UART1_EN_R

Bit 17 - 17:17] 1: UART1 is enabled. 0: UART1 is permanently disabled.

Source

pub fn uart0_en(&self) -> UART0_EN_R

Bit 16 - 16:16] 1: UART0 is enabled. 0: UART0 is permanently disabled.

Source

pub fn reserved16(&self) -> RESERVED16_R

Bits 10:15 - 15:10] Unused

Source

pub fn ssi1_en(&self) -> SSI1_EN_R

Bit 9 - 9:9] 1: SSI1 is enabled. 0: SSI1 is permanently disabled.

Source

pub fn ssi0_en(&self) -> SSI0_EN_R

Bit 8 - 8:8] 1: SSI0 is enabled. 0: SSI0 is permanently disabled.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 4:7 - 7:4] Unused

Source

pub fn gptm3_en(&self) -> GPTM3_EN_R

Bit 3 - 3:3] 1: GPTM3 is enabled. 0: GPTM3 is permanently disabled.

Source

pub fn gptm2_en(&self) -> GPTM2_EN_R

Bit 2 - 2:2] 1: GPTM2 is enabled. 0: GPTM2 is permanently disabled.

Source

pub fn gptm1_en(&self) -> GPTM1_EN_R

Bit 1 - 1:1] 1: GPTM1 is enabled. 0: GPTM1 is permanently disabled.

Source

pub fn gptm0_en(&self) -> GPTM0_EN_R

Bit 0 - 0:0] 1: GPTM0 is enabled. 0: GPTM0 is permanently disabled.

Source§

impl R<u32, Reg<u32, _DIECFG2>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 16:31 - 31:16] Unused

Source

pub fn die_major_revision(&self) -> DIE_MAJOR_REVISION_R

Bits 12:15 - 15:12] Indicates the major revision (all layer change) number for the cc2538 0x0 - PG1.0 0x2 - PG2.0

Source

pub fn die_minor_revision(&self) -> DIE_MINOR_REVISION_R

Bits 8:11 - 11:8] Indicates the minor revision (metla layer only) number for the cc2538 0x0 - PG1.0 or PG2.0

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 3:7 - 7:3] Unused

Source

pub fn rf_core_en(&self) -> RF_CORE_EN_R

Bit 2 - 2:2] 1: RF_CORE is enabled. 0: RF_CORE is permanently disabled.

Source

pub fn aes_en(&self) -> AES_EN_R

Bit 1 - 1:1] 1: AES is enabled. 0: AES is permanently disabled.

Source

pub fn pka_en(&self) -> PKA_EN_R

Bit 0 - 0:0] 1: PKA is enabled. 0: PKA is permanently disabled.

Source§

impl R<u32, Reg<u32, _PA0_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pa0_sel(&self) -> PA0_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PA0.

Source§

impl R<u32, Reg<u32, _PA1_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pa1_sel(&self) -> PA1_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PA1.

Source§

impl R<u32, Reg<u32, _PA2_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pa2_sel(&self) -> PA2_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PA2.

Source§

impl R<u32, Reg<u32, _PA3_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pa3_sel(&self) -> PA3_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PA3.

Source§

impl R<u32, Reg<u32, _PA4_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pa4_sel(&self) -> PA4_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PA4.

Source§

impl R<u32, Reg<u32, _PA5_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pa5_sel(&self) -> PA5_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PA5.

Source§

impl R<u32, Reg<u32, _PA6_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pa6_sel(&self) -> PA6_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PA6.

Source§

impl R<u32, Reg<u32, _PA7_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pa7_sel(&self) -> PA7_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PA7.

Source§

impl R<u32, Reg<u32, _PB0_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pb0_sel(&self) -> PB0_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PB0.

Source§

impl R<u32, Reg<u32, _PB1_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pb1_sel(&self) -> PB1_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PB1.

Source§

impl R<u32, Reg<u32, _PB2_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pb2_sel(&self) -> PB2_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PB2.

Source§

impl R<u32, Reg<u32, _PB3_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pb3_sel(&self) -> PB3_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PB3.

Source§

impl R<u32, Reg<u32, _PB4_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pb4_sel(&self) -> PB4_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PB4.

Source§

impl R<u32, Reg<u32, _PB5_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pb5_sel(&self) -> PB5_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PB5.

Source§

impl R<u32, Reg<u32, _PB6_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pb6_sel(&self) -> PB6_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PB6.

Source§

impl R<u32, Reg<u32, _PB7_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pb7_sel(&self) -> PB7_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PB7.

Source§

impl R<u32, Reg<u32, _PC0_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31

Source

pub fn pc0_sel(&self) -> PC0_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PC0.

Source§

impl R<u32, Reg<u32, _PC1_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pc1_sel(&self) -> PC1_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PC1.

Source§

impl R<u32, Reg<u32, _PC2_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pc2_sel(&self) -> PC2_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PC2.

Source§

impl R<u32, Reg<u32, _PC3_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pc3_sel(&self) -> PC3_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PC3.

Source§

impl R<u32, Reg<u32, _PC4_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pc4_sel(&self) -> PC4_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PC4.

Source§

impl R<u32, Reg<u32, _PC5_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pc5_sel(&self) -> PC5_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PC5.

Source§

impl R<u32, Reg<u32, _PC6_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pc6_sel(&self) -> PC6_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PC6.

Source§

impl R<u32, Reg<u32, _PC7_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pc7_sel(&self) -> PC7_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PC7.

Source§

impl R<u32, Reg<u32, _PD0_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pd0_sel(&self) -> PD0_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PD0.

Source§

impl R<u32, Reg<u32, _PD1_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pd1_sel(&self) -> PD1_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PD1.

Source§

impl R<u32, Reg<u32, _PD2_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pd2_sel(&self) -> PD2_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PD2.

Source§

impl R<u32, Reg<u32, _PD3_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pd3_sel(&self) -> PD3_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PD3.

Source§

impl R<u32, Reg<u32, _PD4_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pd4_sel(&self) -> PD4_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PD4.

Source§

impl R<u32, Reg<u32, _PD5_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pd5_sel(&self) -> PD5_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PD5.

Source§

impl R<u32, Reg<u32, _PD6_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pd6_sel(&self) -> PD6_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PD6.

Source§

impl R<u32, Reg<u32, _PD7_SEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn pd7_sel(&self) -> PD7_SEL_R

Bits 0:4 - 4:0] Select one peripheral signal output for PD7.

Source§

impl R<u32, Reg<u32, _PA0_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pa0_over(&self) -> PA0_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PA1_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pa1_over(&self) -> PA1_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PA2_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pa2_over(&self) -> PA2_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PA3_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pa3_over(&self) -> PA3_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PA4_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pa4_over(&self) -> PA4_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PA5_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pa5_over(&self) -> PA5_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PA6_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pa6_over(&self) -> PA6_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PA7_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pa7_over(&self) -> PA7_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PB0_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pb0_over(&self) -> PB0_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PB1_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pb1_over(&self) -> PB1_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PB2_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pb2_over(&self) -> PB2_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PB3_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pb3_over(&self) -> PB3_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PB4_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pb4_over(&self) -> PB4_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PB5_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pb5_over(&self) -> PB5_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PB6_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pb6_over(&self) -> PB6_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PB7_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pb7_over(&self) -> PB7_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PC0_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pc0_over(&self) -> PC0_OVER_R

Bit 3 - 3:3] 0: output disable 1: oe - output enable

Source

pub fn reserved3(&self) -> RESERVED3_R

Bits 0:2 - 2:0] Reserved

Source§

impl R<u32, Reg<u32, _PC1_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pc1_over(&self) -> PC1_OVER_R

Bit 3 - 3:3] 0: output disable 1: oe - output enable

Source

pub fn reserved3(&self) -> RESERVED3_R

Bits 0:2 - 2:0] Reserved

Source§

impl R<u32, Reg<u32, _PC2_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pc2_over(&self) -> PC2_OVER_R

Bit 3 - 3:3] 0: output disable 1: oe - output enable

Source

pub fn reserved3(&self) -> RESERVED3_R

Bits 0:2 - 2:0] Reserved

Source§

impl R<u32, Reg<u32, _PC3_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pc3_over(&self) -> PC3_OVER_R

Bit 3 - 3:3] 0: output disable 1: oe - output enable

Source

pub fn reserved3(&self) -> RESERVED3_R

Bits 0:2 - 2:0] Reserved

Source§

impl R<u32, Reg<u32, _PC4_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pc4_over(&self) -> PC4_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PC5_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pc5_over(&self) -> PC5_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PC6_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pc6_over(&self) -> PC6_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PC7_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pc7_over(&self) -> PC7_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PD0_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pd0_over(&self) -> PD0_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PD1_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pd1_over(&self) -> PD1_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PD2_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pd2_over(&self) -> PD2_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PD3_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pd3_over(&self) -> PD3_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PD4_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pd4_over(&self) -> PD4_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PD5_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pd5_over(&self) -> PD5_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PD6_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pd6_over(&self) -> PD6_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _PD7_OVER>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 4:31 - 31:4] Reserved

Source

pub fn pd7_over(&self) -> PD7_OVER_R

Bits 0:3 - 3:0] 0x8: oe - output enable 0x4: pue - pullup enable 0x2: pde - pulldown enable 0x1: ana - analog enable

Source§

impl R<u32, Reg<u32, _UARTRXD_UART0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn input_sel(&self) -> INPUT_SEL_R

Bits 0:4 - 4:0] 0: PA0 selected as UART0 RX 1: PA1 selected as UART0 RX … 31: PD7 selected as UART0 RX

Source§

impl R<u32, Reg<u32, _UARTCTS_UART1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn input_sel(&self) -> INPUT_SEL_R

Bits 0:4 - 4:0] 0: PA0 selected as UART1 CTS 1: PA1 selected as UART1 CTS … 31: PD7 selected as UART1 CTS

Source§

impl R<u32, Reg<u32, _UARTRXD_UART1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn input_sel(&self) -> INPUT_SEL_R

Bits 0:4 - 4:0] 0: PA0 selected as UART1 RX 1: PA1 selected as UART1 RX … 31: PD7 selected as UART1 RX

Source§

impl R<u32, Reg<u32, _CLK_SSI_SSI0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn input_sel(&self) -> INPUT_SEL_R

Bits 0:4 - 4:0] 0: PA0 selected as SSI0 CLK 1: PA1 selected as SSI0 CLK … 31: PD7 selected as SSI0 CLK

Source§

impl R<u32, Reg<u32, _SSIRXD_SSI0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn input_sel(&self) -> INPUT_SEL_R

Bits 0:4 - 4:0] 0: PA0 selected as SSI0 RX 1: PA1 selected as SSI0 RX … 31: PD7 selected as SSI0 RX

Source§

impl R<u32, Reg<u32, _SSIFSSIN_SSI0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn input_sel(&self) -> INPUT_SEL_R

Bits 0:4 - 4:0] 0: PA0 selected as SSI0 FSSIN 1: PA1 selected as SSI0 FSSIN … 31: PD7 selected as SSI0 FSSIN

Source§

impl R<u32, Reg<u32, _CLK_SSIIN_SSI0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn input_sel(&self) -> INPUT_SEL_R

Bits 0:4 - 4:0] 0: PA0 selected as SSI0 CLK_SSIN 1: PA1 selected as SSI0 CLK_SSIN … 31: PD7 selected as SSI0 CLK_SSIN

Source§

impl R<u32, Reg<u32, _CLK_SSI_SSI1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn input_sel(&self) -> INPUT_SEL_R

Bits 0:4 - 4:0] 0: PA0 selected as SSI1 CLK 1: PA1 selected as SSI1 CLK … 31: PD7 selected as SSI1 CLK

Source§

impl R<u32, Reg<u32, _SSIRXD_SSI1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn input_sel(&self) -> INPUT_SEL_R

Bits 0:4 - 4:0] 0: PA0 selected as SSI1 RX 1: PA1 selected as SSI1 RX … 31: PD7 selected as SSI1 RX

Source§

impl R<u32, Reg<u32, _SSIFSSIN_SSI1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn input_sel(&self) -> INPUT_SEL_R

Bits 0:4 - 4:0] 0: PA0 selected as SSI1 FSSIN 1: PA1 selected as SSI1 FSSIN … 31: PD7 selected as SSI1 FSSIN

Source§

impl R<u32, Reg<u32, _CLK_SSIIN_SSI1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn input_sel(&self) -> INPUT_SEL_R

Bits 0:4 - 4:0] 0: PA0 selected as SSI1 CLK_SSIN 1: PA1 selected as SSI1 CLK_SSIN … 31: PD7 selected as SSI1 CLK_SSIN

Source§

impl R<u32, Reg<u32, _I2CMSSDA>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn input_sel(&self) -> INPUT_SEL_R

Bits 0:4 - 4:0] 0: PA0 selected as I2C SDA 1: PA1 selected as I2C SDA … 31: PD7 selected as I2C SDA

Source§

impl R<u32, Reg<u32, _I2CMSSCL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn input_sel(&self) -> INPUT_SEL_R

Bits 0:4 - 4:0] 0: PA0 selected as I2C SCL 1: PA1 selected as I2C SCL … 31: PD7 selected as I2C SCL

Source§

impl R<u32, Reg<u32, _GPT0OCP1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn input_sel(&self) -> INPUT_SEL_R

Bits 0:4 - 4:0] 0: PA0 selected as GPT0OCP1 1: PA1 selected as GPT0OCP1 … 31: PD7 selected as GPT0OCP1

Source§

impl R<u32, Reg<u32, _GPT0OCP2>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn input_sel(&self) -> INPUT_SEL_R

Bits 0:4 - 4:0] 0: PA0 selected as GPT0OCP2 1: PA1 selected as GPT0OCP2 … 31: PD7 selected as GPT0OCP2

Source§

impl R<u32, Reg<u32, _GPT1OCP1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn input_sel(&self) -> INPUT_SEL_R

Bits 0:4 - 4:0] 0: PA0 selected as GPT1OCP1 1: PA1 selected as GPT1OCP1 … 31: PD7 selected as GPT1OCP1

Source§

impl R<u32, Reg<u32, _GPT1OCP2>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn input_sel(&self) -> INPUT_SEL_R

Bits 0:4 - 4:0] 0: PA0 selected as GPT1OCP2 1: PA1 selected as GPT1OCP2 … 31: PD7 selected as GPT1OCP2

Source§

impl R<u32, Reg<u32, _GPT2OCP1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn input_sel(&self) -> INPUT_SEL_R

Bits 0:4 - 4:0] 0: PA0 selected as GPT2OCP1 1: PA1 selected as GPT2OCP1 … 31: PD7 selected as GPT2OCP1

Source§

impl R<u32, Reg<u32, _GPT2OCP2>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn input_sel(&self) -> INPUT_SEL_R

Bits 0:4 - 4:0] 0: PA0 selected as GPT2OCP2 1: PA1 selected as GPT2OCP2 … 31: PD7 selected as GPT2OCP2

Source§

impl R<u32, Reg<u32, _GPT3OCP1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn input_sel(&self) -> INPUT_SEL_R

Bits 0:4 - 4:0] 0: PA0 selected as GPT3OCP1 1: PA1 selected as GPT3OCP1 … 31: PD7 selected as GPT3OCP1

Source§

impl R<u32, Reg<u32, _GPT3OCP2>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 5:31 - 31:5] Reserved

Source

pub fn input_sel(&self) -> INPUT_SEL_R

Bits 0:4 - 4:0] 0: PA0 selected as GPT3OCP2 1: PA1 selected as GPT3OCP2 … 31: PD7 selected as GPT3OCP2

Source§

impl R<u32, Reg<u32, _WDCTL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved

Source

pub fn clr(&self) -> CLR_R

Bits 4:7 - 7:4] Clear timer When 0xA followed by 0x5 is written to these bits, the timer is loaded with 0x0000. Note that 0x5 must be written within one watchdog clock period Twdt after 0xA was written for the clearing to take effect (ensured). If 0x5 is written between Twdt and 2Twdt after 0xA was written, the clearing may take effect, but there is no guarantee. If 0x5 is written > 2Twdt after 0xA was written, the timer will not be cleared. If a value other than 0x5 is written after 0xA has been written, the clear sequence is aborted. If 0xA is written, this starts a new clear sequence. Writing to these bits when EN = 0 has no effect.

Source

pub fn en(&self) -> EN_R

Bit 3 - 3:3] Enable timer When 1 is written to this bit the timer is enabled and starts incrementing. The interval setting specified by INT[1:0] is used. Writing 0 to this bit have no effect.

Source

pub fn reserved2(&self) -> RESERVED2_R

Bit 2 - 2:2] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn int(&self) -> INT_R

Bits 0:1 - 1:0] Timer interval select These bits select the timer interval as follows: 00: Twdt x 32768 01: Twdt x 8192 10: Twdt x 512 11: Twdt x 64 Writing these bits when EN = 1 has no effect.

Source§

impl R<u32, Reg<u32, _ST0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn st0(&self) -> ST0_R

Bits 0:7 - 7:0] Sleep Timer count and compare value. When read, this register returns the low bits [7:0] of the Sleep Timer count. When writing this register sets the low bits [7:0] of the compare value.

Source§

impl R<u32, Reg<u32, _ST1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn st1(&self) -> ST1_R

Bits 0:7 - 7:0] Sleep Timer count and compare value When read, this register returns the middle bits [15:8] of the Sleep Timer count. When writing this register sets the middle bits [15:8] of the compare value. The value read is latched at the time of reading register ST0. The value written is latched when ST0 is written.

Source§

impl R<u32, Reg<u32, _ST2>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn st2(&self) -> ST2_R

Bits 0:7 - 7:0] Sleep Timer count and compare value When read, this register returns the high bits [23:16] of the Sleep Timer count. When writing this register sets the high bits [23:16] of the compare value. The value read is latched at the time of reading register ST0. The value written is latched when ST0 is written.

Source§

impl R<u32, Reg<u32, _ST3>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn st3(&self) -> ST3_R

Bits 0:7 - 7:0] Sleep Timer count and compare value When read, this register returns the high bits [31:24] of the Sleep Timer count. When writing this register sets the high bits [31:24] of the compare value. The value read is latched at the time of reading register ST0. The value written is latched when ST0 is written.

Source§

impl R<u32, Reg<u32, _STLOAD>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn reserved7(&self) -> RESERVED7_R

Bits 1:7

Source

pub fn stload(&self) -> STLOAD_R

Bit 0 - 0:0] Status signal for when STx registers have been uploaded to 32-kHz counter. 1: Load is complete 0: Load is busy and STx regs are blocked for writing

Source§

impl R<u32, Reg<u32, _STCC>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 6:31

Source

pub fn port(&self) -> PORT_R

Bits 3:5 - 5:3] Port select Valid settings are 0-3, all others inhibit any capture from occurring 000: Port A selected 001: Port B selected 010: Port C selected 011: Port D selected

Source

pub fn pin(&self) -> PIN_R

Bits 0:2 - 2:0] Pin select Valid settings are 1-7 when either port A, B, C, or D is selected.

Source§

impl R<u32, Reg<u32, _STCS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn reserved7(&self) -> RESERVED7_R

Bits 1:7

Source

pub fn valid(&self) -> VALID_R

Bit 0 - 0:0] Capture valid flag Set to 1 when capture value in STCV has been updated Clear explicitly to allow new capture

Source§

impl R<u32, Reg<u32, _STCV0>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn stcv0(&self) -> STCV0_R

Bits 0:7 - 7:0] Bits [7:0] of Sleep Timer capture value

Source§

impl R<u32, Reg<u32, _STCV1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn stcv1(&self) -> STCV1_R

Bits 0:7 - 7:0] Bits [15:8] of Sleep Timer capture value

Source§

impl R<u32, Reg<u32, _STCV2>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn stcv2(&self) -> STCV2_R

Bits 0:7 - 7:0] Bits [23:16] of Sleep Timer capture value

Source§

impl R<u32, Reg<u32, _STCV3>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn stcv3(&self) -> STCV3_R

Bits 0:7 - 7:0] Bits [32:24] of Sleep Timer capture value

Source§

impl R<u32, Reg<u32, _IVCTRL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bit 7 - 7:7] Reserved. Always read 0.

Source

pub fn reserved7(&self) -> RESERVED7_R

Bit 6 - 6:6] Reserved. Always read 0.

Source

pub fn dac_curr_ctrl(&self) -> DAC_CURR_CTRL_R

Bits 4:5 - 5:4] Controls bias current to DAC 00: 100% IVREF, 0% IREF bias 01: 60% IVREF, 40% IREF bias 10: 40% IVREF, 60% IREF bias 11: 0% IVREF, 100% IREF bias

Source

pub fn lodiv_bias_ctrl(&self) -> LODIV_BIAS_CTRL_R

Bit 3 - 3:3] Controls bias current to LODIV 1: PTAT bias 0: IVREF bias

Source

pub fn txmix_dc_ctrl(&self) -> TXMIX_DC_CTRL_R

Bit 2 - 2:2] Controls DC bias in TXMIX

Source

pub fn pa_bias_ctrl(&self) -> PA_BIAS_CTRL_R

Bits 0:1 - 1:0] Controls bias current to PA 00: IREF bias 01: IREF and IVREF bias (CC2530 mode) 10: PTAT bias 11: Increased PTAT slope bias

Source§

impl R<u32, Reg<u32, _ADCCON1>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn eoc(&self) -> EOC_R

Bit 7 - 7:7] End of conversion. Cleared when ADCH has been read. If a new conversion is completed before the previous data has been read, the EOC bit remains high. 0: Conversion not complete 1: Conversion completed

Source

pub fn st(&self) -> ST_R

Bit 6 - 6:6] Start conversion Read as 1 until conversion completes 0: No conversion in progress. 1: Start a conversion sequence if ADCCON1.STSEL = 11 and no sequence is running.

Source

pub fn stsel(&self) -> STSEL_R

Bits 4:5 - 5:4] Start select Selects the event that starts a new conversion sequence 00: Not implemented 01: Full speed. Do not wait for triggers 10: Timer 1 channel 0 compare event 11: ADCCON1.ST = 1

Source

pub fn rctrl(&self) -> RCTRL_R

Bits 2:3 - 3:2] Controls the 16-bit random-number generator (see User Guide Chapter 16) When 01 is written, the setting automatically returns to 00 when the operation completes. 00: Normal operation (13x unrolling) 01: Clock the LFSR once (13x unrolling) 10: Reserved 11: Stopped. The random-number generator is turned off.

Source

pub fn reserved1(&self) -> RESERVED1_R

Bits 0:1 - 1:0] Reserved. Always set to 11.

Source§

impl R<u32, Reg<u32, _ADCCON2>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn sref(&self) -> SREF_R

Bits 6:7 - 7:6] Selects reference voltage used for the sequence of conversions 00: Internal reference 01: External reference on AIN7 pin 10: AVDD5 pin 11: External reference on AIN6-AIN7 differential input

Source

pub fn sdiv(&self) -> SDIV_R

Bits 4:5 - 5:4] Sets the decimation rate for channels included in the sequence of conversions. The decimation rate also determines the resolution and time required to complete a conversion. 00: 64 decimation rate (7 bits ENOB setting) 01: 128 decimation rate (9 bits ENOB setting) 10: 256 decimation rate (10 bits ENOB setting) 11: 512 decimation rate (12 bits ENOB setting)

Source

pub fn sch(&self) -> SCH_R

Bits 0:3 - 3:0] Sequence channel select Selects the end of the sequence A sequence can either be from AIN0 to AIN7 (SCH <= 7) or from differential input AIN0-AIN1 to AIN6-AIN7 (8 <= SCH <= 11). For other settings, only one conversions is performed. When read, these bits indicate the channel number on which a conversion is ongoing: 0000: AIN0 0001: AIN1 0010: AIN2 0011: AIN3 0100: AIN4 0101: AIN5 0110: AIN6 0111: AIN7 1000: AIN0-AIN1 1001: AIN2-AIN3 1010: AIN4-AIN5 1011: AIN6-AIN7 1100: GND 1101: Reserved 1110: Temperature sensor 1111: VDD/3

Source§

impl R<u32, Reg<u32, _ADCCON3>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn eref(&self) -> EREF_R

Bits 6:7 - 7:6] Selects reference voltage used for the extra conversion 00: Internal reference 01: External reference on AIN7 pin 10: AVDD5 pin 11: External reference on AIN6-AIN7 differential input

Source

pub fn ediv(&self) -> EDIV_R

Bits 4:5 - 5:4] Sets the decimation rate used for the extra conversion The decimation rate also determines the resolution and the time required to complete the conversion. 00: 64 decimation rate (7 bits ENOB) 01: 128 decimation rate (9 bits ENOB) 10: 256 decimation rate (10 bits ENOB) 11: 512 decimation rate (12 bits ENOB)

Source

pub fn ech(&self) -> ECH_R

Bits 0:3 - 3:0] Single channel select. Selects the channel number of the single conversion that is triggered by writing to ADCCON3. 0000: AIN0 0001: AIN1 0010: AIN2 0011: AIN3 0100: AIN4 0101: AIN5 0110: AIN6 0111: AIN7 1000: AIN0-AIN1 1001: AIN2-AIN3 1010: AIN4-AIN5 1011: AIN6-AIN7 1100: GND 1101: Reserved 1110: Temperature sensor 1111: VDD/3

Source§

impl R<u32, Reg<u32, _ADCL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn adc(&self) -> ADC_R

Bits 2:7 - 7:2] Least-significant part of ADC conversion result

Source

pub fn reserved1(&self) -> RESERVED1_R

Bits 0:1 - 1:0] Reserved. Always read as 0.

Source§

impl R<u32, Reg<u32, _ADCH>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn adc(&self) -> ADC_R

Bits 0:7 - 7:0] Most-significant part of ADC conversion result

Source§

impl R<u32, Reg<u32, _RNDL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn rndl(&self) -> RNDL_R

Bits 0:7 - 7:0] Random value/seed or CRC result, low byte When used for random-number generation, writing to this register twice seeds the random-number generator. Writing to this register copies the 8 LSBs of the LFSR to the 8 MSBs and replaces the 8 LSBs with the data value written. The value returned when reading from this register is the 8 LSBs of the LFSR. When used for random-number generation, reading this register returns the 8 LSBs of the random number. When used for CRC calculations, reading this register returns the 8 LSBs of the CRC result.

Source§

impl R<u32, Reg<u32, _RNDH>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn rndh(&self) -> RNDH_R

Bits 0:7 - 7:0] Random value or CRC result/input data, high byte When written, a CRC16 calculation is triggered, and the data value written is processed starting with the MSB. The value returned when reading from this register is the 8 MSBs of the LFSR. When used for random-number generation, reading this register returns the 8 MSBs of the random number. When used for CRC calculations, reading this register returns the 8 MSBs of the CRC result.

Source§

impl R<u32, Reg<u32, _CMPCTL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

Source

pub fn en(&self) -> EN_R

Bit 1 - 1:1] Comparator enable

Source

pub fn output(&self) -> OUTPUT_R

Bit 0 - 0:0] Comparator output

Source§

impl R<u32, Reg<u32, _DATA>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn data(&self) -> DATA_R

Bits 0:7 - 7:0] Input and output data

Source§

impl R<u32, Reg<u32, _DIR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn dir(&self) -> DIR_R

Bits 0:7 - 7:0] Bits set: Corresponding pin is output Bits cleared: Corresponding pin is input

Source§

impl R<u32, Reg<u32, _IS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn is(&self) -> IS_R

Bits 0:7 - 7:0] Bits set: Level on corresponding pin is detected Bits cleared: Edge on corresponding pin is detected

Source§

impl R<u32, Reg<u32, _IBE>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn ibe(&self) -> IBE_R

Bits 0:7 - 7:0] Bits set: Both edges on corresponding pin trigger an interrupt Bits cleared: Interrupt generation event is controlled by GPIOIEV Single edge: Determined by corresponding bit in GPIOIEV register

Source§

impl R<u32, Reg<u32, _IEV>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn iev(&self) -> IEV_R

Bits 0:7 - 7:0] Bits set: Rising edges or high levels on corresponding pin trigger interrupts Bits cleared: Falling edges or low levels on corresponding pin trigger interrupts

Source§

impl R<u32, Reg<u32, _IE>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn ie(&self) -> IE_R

Bits 0:7 - 7:0] Bits set: Corresponding pin is not masked Bits cleared: Corresponding pin is masked

Source§

impl R<u32, Reg<u32, _RIS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn ris(&self) -> RIS_R

Bits 0:7 - 7:0] Reflects the status of interrupts trigger conditions detected on pins (raw, before masking) Bits set: Requirements met by corresponding pins Bits clear: Requirements not met

Source§

impl R<u32, Reg<u32, _MIS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn mis(&self) -> MIS_R

Bits 0:7 - 7:0] Masked value of interrupt due to corresponding pin Bits clear: GPIO line interrupt not active Bits set: GPIO line asserting interrupt

Source§

impl R<u32, Reg<u32, _IC>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn ic(&self) -> IC_R

Bits 0:7 - 7:0] Bit written as 1: Clears edge detection logic Bit written as 0: Has no effect

Source§

impl R<u32, Reg<u32, _AFSEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn afsel(&self) -> AFSEL_R

Bits 0:7 - 7:0] Bit set: Enables hardware (peripheral) control mode Bit cleared: Enables software control mode

Source§

impl R<u32, Reg<u32, _GPIOLOCK>>

Source

pub fn lock(&self) -> LOCK_R

Bits 0:31 - 31:0] A read of this register returns the following values: Locked: 0x00000001 Unlocked: 0x00000000

Source§

impl R<u32, Reg<u32, _GPIOCR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved bits return an indeterminate value, and should never be changed.

Source

pub fn cr(&self) -> CR_R

Bits 0:7 - 7:0] On a bit-wise basis, any bit set allows the corresponding GPIOAFSEL bit to be set to its alternate function.

Source§

impl R<u32, Reg<u32, _PMUX>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn ckoen(&self) -> CKOEN_R

Bit 7 - 7:7] Clock out enable When this bit is set, the 32-kHz clock is routed to either PA[0] or PB[7] pins. PMUX.CKOPIN selects the pin to use. This overrides the current configuration setting for this pin. The pullup or pulldown is disabled and the direction is set to output for this pin.

Source

pub fn reserved7(&self) -> RESERVED7_R

Bits 5:6 - 6:5] These are spare registers that are unused in the design.

Source

pub fn ckopin(&self) -> CKOPIN_R

Bit 4 - 4:4] Decouple control pin select This control only has relevance when CKOEN is set. When 0, PA[0] becomes the 32-kHz clock output. When 1, PB[7] becomes the 32-kHz clock output.

Source

pub fn dcen(&self) -> DCEN_R

Bit 3 - 3:3] Decouple control enable When this bit is set, the on-die digital regulator status is routed to either PB[1] or PB[0] pins. PMUX.DCPIN selects the pin to use. This overrides the current configuration setting for this pin. The pullup or pulldown is disabled and the direction is set to output for this pin.

Source

pub fn reserved3(&self) -> RESERVED3_R

Bits 1:2 - 2:1] These are spare registers that are unused in the design.

Source

pub fn dcpin(&self) -> DCPIN_R

Bit 0 - 0:0] Decouple control pin select This control has relevance only when DCEN is set. When 0, PB[1] becomes the on-die digital regulator status (1 indicates the on-die digital regulator is active); when 1, PB[0] becomes the on-die digital regulator status. NOTE: PB[1] and PB[0] can also be controlled with other override features. In priority order for PB[1]: When POR/BOD test mode is active, PB[1] becomes the active low brown-out detected indicator. When DCEN is set and DCPIN is not set, PB[1] becomes the on-dir digital regulator status. In priority order for PB[0]: When POR/BOD test mode is active, PB[0] becomes the power-on-reset indicator. When DCEN and DCPIN are set, PB[0] becomes the on-die digital regulator status.

Source§

impl R<u32, Reg<u32, _P_EDGE_CTRL>>

Source

pub fn pdirc7(&self) -> PDIRC7_R

Bit 31 - 31:31] Port D bit 7 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc6(&self) -> PDIRC6_R

Bit 30 - 30:30] Port D bit 6 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc5(&self) -> PDIRC5_R

Bit 29 - 29:29] Port D bit 5 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc4(&self) -> PDIRC4_R

Bit 28 - 28:28] Port D bit 4 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc3(&self) -> PDIRC3_R

Bit 27 - 27:27] Port D bit 3 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc2(&self) -> PDIRC2_R

Bit 26 - 26:26] Port D bit 2 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc1(&self) -> PDIRC1_R

Bit 25 - 25:25] Port D bit 1 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc0(&self) -> PDIRC0_R

Bit 24 - 24:24] Port D bit 0 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc7(&self) -> PCIRC7_R

Bit 23 - 23:23] Port C bit 7 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc6(&self) -> PCIRC6_R

Bit 22 - 22:22] Port C bit 6 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc5(&self) -> PCIRC5_R

Bit 21 - 21:21] Port C bit 5 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc4(&self) -> PCIRC4_R

Bit 20 - 20:20] Port C bit 4 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc3(&self) -> PCIRC3_R

Bit 19 - 19:19] Port C bit 3 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc2(&self) -> PCIRC2_R

Bit 18 - 18:18] Port C bit 2 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc1(&self) -> PCIRC1_R

Bit 17 - 17:17] Port C bit 1 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc0(&self) -> PCIRC0_R

Bit 16 - 16:16] Port C bit 0 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc7(&self) -> PBIRC7_R

Bit 15 - 15:15] Port B bit 7 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc6(&self) -> PBIRC6_R

Bit 14 - 14:14] Port B bit 6 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc5(&self) -> PBIRC5_R

Bit 13 - 13:13] Port B bit 5 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc4(&self) -> PBIRC4_R

Bit 12 - 12:12] Port B bit 4 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc3(&self) -> PBIRC3_R

Bit 11 - 11:11] Port B bit 3 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc2(&self) -> PBIRC2_R

Bit 10 - 10:10] Port B bit 2 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc1(&self) -> PBIRC1_R

Bit 9 - 9:9] Port B bit 1 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc0(&self) -> PBIRC0_R

Bit 8 - 8:8] Port B bit 0 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc7(&self) -> PAIRC7_R

Bit 7 - 7:7] Port A bit 7 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc6(&self) -> PAIRC6_R

Bit 6 - 6:6] Port A bit 6 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc5(&self) -> PAIRC5_R

Bit 5 - 5:5] Port A bit 5 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc4(&self) -> PAIRC4_R

Bit 4 - 4:4] Port A bit 4 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc3(&self) -> PAIRC3_R

Bit 3 - 3:3] Port A bit 3 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc2(&self) -> PAIRC2_R

Bit 2 - 2:2] Port A bit 2 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc1(&self) -> PAIRC1_R

Bit 1 - 1:1] Port A bit 1 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc0(&self) -> PAIRC0_R

Bit 0 - 0:0] Port A bit 0 interrupt request condition: 0: Rising 1: Falling edge

Source§

impl R<u32, Reg<u32, _USB_CTRL>>

Source

pub fn reserved31(&self) -> RESERVED31_R

Bits 1:31

Source

pub fn usb_edge_ctl(&self) -> USB_EDGE_CTL_R

Bit 0 - 0:0] Used to set the edge which triggers the USB power up interrupt 0: Rising 1: Falling

Source§

impl R<u32, Reg<u32, _PI_IEN>>

Source

pub fn pdien7(&self) -> PDIEN7_R

Bit 31 - 31:31] Port D bit 7 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien6(&self) -> PDIEN6_R

Bit 30 - 30:30] Port D bit 6 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien5(&self) -> PDIEN5_R

Bit 29 - 29:29] Port D bit 5 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien4(&self) -> PDIEN4_R

Bit 28 - 28:28] Port D bit 4 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien3(&self) -> PDIEN3_R

Bit 27 - 27:27] Port D bit 3 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien2(&self) -> PDIEN2_R

Bit 26 - 26:26] Port D bit 2 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien1(&self) -> PDIEN1_R

Bit 25 - 25:25] Port D bit 1 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien0(&self) -> PDIEN0_R

Bit 24 - 24:24] Port D bit 0 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien7(&self) -> PCIEN7_R

Bit 23 - 23:23] Port C bit 7 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien6(&self) -> PCIEN6_R

Bit 22 - 22:22] Port C bit 6 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien5(&self) -> PCIEN5_R

Bit 21 - 21:21] Port C bit 5 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien4(&self) -> PCIEN4_R

Bit 20 - 20:20] Port C bit 4 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien3(&self) -> PCIEN3_R

Bit 19 - 19:19] Port C bit 3 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien2(&self) -> PCIEN2_R

Bit 18 - 18:18] Port C bit 2 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien1(&self) -> PCIEN1_R

Bit 17 - 17:17] Port C bit 1 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien0(&self) -> PCIEN0_R

Bit 16 - 16:16] Port C bit 0 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien7(&self) -> PBIEN7_R

Bit 15 - 15:15] Port B bit 7 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien6(&self) -> PBIEN6_R

Bit 14 - 14:14] Port B bit 6 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien5(&self) -> PBIEN5_R

Bit 13 - 13:13] Port B bit 5 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien4(&self) -> PBIEN4_R

Bit 12 - 12:12] Port B bit 4 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien3(&self) -> PBIEN3_R

Bit 11 - 11:11] Port B bit 3 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien2(&self) -> PBIEN2_R

Bit 10 - 10:10] Port B bit 2 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien1(&self) -> PBIEN1_R

Bit 9 - 9:9] Port B bit 1 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien0(&self) -> PBIEN0_R

Bit 8 - 8:8] Port B bit 0 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien7(&self) -> PAIEN7_R

Bit 7 - 7:7] Port A bit 7 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien6(&self) -> PAIEN6_R

Bit 6 - 6:6] Port A bit 6 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien5(&self) -> PAIEN5_R

Bit 5 - 5:5] Port A bit 5 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien4(&self) -> PAIEN4_R

Bit 4 - 4:4] Port A bit 4 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien3(&self) -> PAIEN3_R

Bit 3 - 3:3] Port A bit 3 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien2(&self) -> PAIEN2_R

Bit 2 - 2:2] Port A bit 2 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien1(&self) -> PAIEN1_R

Bit 1 - 1:1] Port A bit 1 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien0(&self) -> PAIEN0_R

Bit 0 - 0:0] Port A bit 0 interrupt enable: 1: Enabled 2: Disabled

Source§

impl R<u32, Reg<u32, _IRQ_DETECT_ACK>>

Source

pub fn pdiack7(&self) -> PDIACK7_R

Bit 31 - 31:31] Port D bit 7 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack6(&self) -> PDIACK6_R

Bit 30 - 30:30] Port D bit 6 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack5(&self) -> PDIACK5_R

Bit 29 - 29:29] Port D bit 5 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack4(&self) -> PDIACK4_R

Bit 28 - 28:28] Port D bit 4 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack3(&self) -> PDIACK3_R

Bit 27 - 27:27] Port D bit 3 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack2(&self) -> PDIACK2_R

Bit 26 - 26:26] Port D bit 2 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack1(&self) -> PDIACK1_R

Bit 25 - 25:25] Port D bit 1 masked interrupt status: 1: Detected0: Not detected

Source

pub fn pdiack0(&self) -> PDIACK0_R

Bit 24 - 24:24] Port D bit 0 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack7(&self) -> PCIACK7_R

Bit 23 - 23:23] Port C bit 7 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack6(&self) -> PCIACK6_R

Bit 22 - 22:22] Port C bit 6 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack5(&self) -> PCIACK5_R

Bit 21 - 21:21] Port C bit 5 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack4(&self) -> PCIACK4_R

Bit 20 - 20:20] Port C bit 4 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack3(&self) -> PCIACK3_R

Bit 19 - 19:19] Port C bit 3 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack2(&self) -> PCIACK2_R

Bit 18 - 18:18] Port C bit 2 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack1(&self) -> PCIACK1_R

Bit 17 - 17:17] Port C bit 1 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack0(&self) -> PCIACK0_R

Bit 16 - 16:16] Port C bit 0 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack7(&self) -> PBIACK7_R

Bit 15 - 15:15] Port B bit 7 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack6(&self) -> PBIACK6_R

Bit 14 - 14:14] Port B bit 6 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack5(&self) -> PBIACK5_R

Bit 13 - 13:13] Port B bit 5 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack4(&self) -> PBIACK4_R

Bit 12 - 12:12] Port B bit 4 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack3(&self) -> PBIACK3_R

Bit 11 - 11:11] Port B bit 3 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack2(&self) -> PBIACK2_R

Bit 10 - 10:10] Port B bit 2 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack1(&self) -> PBIACK1_R

Bit 9 - 9:9] Port B bit 1 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack0(&self) -> PBIACK0_R

Bit 8 - 8:8] Port B bit 0 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack7(&self) -> PAIACK7_R

Bit 7 - 7:7] Port A bit 7 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack6(&self) -> PAIACK6_R

Bit 6 - 6:6] Port A bit 6 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack5(&self) -> PAIACK5_R

Bit 5 - 5:5] Port A bit 5 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack4(&self) -> PAIACK4_R

Bit 4 - 4:4] Port A bit 4 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack3(&self) -> PAIACK3_R

Bit 3 - 3:3] Port A bit 3 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack2(&self) -> PAIACK2_R

Bit 2 - 2:2] Port A bit 2 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack1(&self) -> PAIACK1_R

Bit 1 - 1:1] Port A bit 1 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack0(&self) -> PAIACK0_R

Bit 0 - 0:0] Port A bit 0 masked interrupt status: 1: Detected 0: Not detected

Source§

impl R<u32, Reg<u32, _USB_IRQ_ACK>>

Source

pub fn reserved31(&self) -> RESERVED31_R

Bits 1:31

Source

pub fn usback(&self) -> USBACK_R

Bit 0 - 0:0] USB masked interrupt status: 1: Detected 0: Not detected

Source§

impl R<u32, Reg<u32, _IRQ_DETECT_UNMASK>>

Source

pub fn pdiack7(&self) -> PDIACK7_R

Bit 31 - 31:31] Port D bit 7 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack6(&self) -> PDIACK6_R

Bit 30 - 30:30] Port D bit 6 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack5(&self) -> PDIACK5_R

Bit 29 - 29:29] Port D bit 5 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack4(&self) -> PDIACK4_R

Bit 28 - 28:28] Port D bit 4 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack3(&self) -> PDIACK3_R

Bit 27 - 27:27] Port D bit 3 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack2(&self) -> PDIACK2_R

Bit 26 - 26:26] Port D bit 2 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack1(&self) -> PDIACK1_R

Bit 25 - 25:25] Port D bit 1 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack0(&self) -> PDIACK0_R

Bit 24 - 24:24] Port D bit 0 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack7(&self) -> PCIACK7_R

Bit 23 - 23:23] Port C bit 7 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack6(&self) -> PCIACK6_R

Bit 22 - 22:22] Port C bit 6 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack5(&self) -> PCIACK5_R

Bit 21 - 21:21] Port C bit 5 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack4(&self) -> PCIACK4_R

Bit 20 - 20:20] Port C bit 4 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack3(&self) -> PCIACK3_R

Bit 19 - 19:19] Port C bit 3 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack2(&self) -> PCIACK2_R

Bit 18 - 18:18] Port C bit 2 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack1(&self) -> PCIACK1_R

Bit 17 - 17:17] Port C bit 1 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack0(&self) -> PCIACK0_R

Bit 16 - 16:16] Port C bit 0 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack7(&self) -> PBIACK7_R

Bit 15 - 15:15] Port B bit 7 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack6(&self) -> PBIACK6_R

Bit 14 - 14:14] Port B bit 6 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack5(&self) -> PBIACK5_R

Bit 13 - 13:13] Port B bit 5 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack4(&self) -> PBIACK4_R

Bit 12 - 12:12] Port B bit 4 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack3(&self) -> PBIACK3_R

Bit 11 - 11:11] Port B bit 3 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack2(&self) -> PBIACK2_R

Bit 10 - 10:10] Port B bit 2 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack1(&self) -> PBIACK1_R

Bit 9 - 9:9] Port B bit 1 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack0(&self) -> PBIACK0_R

Bit 8 - 8:8] Port B bit 0 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack7(&self) -> PAIACK7_R

Bit 7 - 7:7] Port A bit 7 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack6(&self) -> PAIACK6_R

Bit 6 - 6:6] Port A bit 6 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack5(&self) -> PAIACK5_R

Bit 5 - 5:5] Port A bit 5 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack4(&self) -> PAIACK4_R

Bit 4 - 4:4] Port A bit 4 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack3(&self) -> PAIACK3_R

Bit 3 - 3:3] Port A bit 3 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack2(&self) -> PAIACK2_R

Bit 2 - 2:2] Port A bit 2 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack1(&self) -> PAIACK1_R

Bit 1 - 1:1] Port A bit 1 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack0(&self) -> PAIACK0_R

Bit 0 - 0:0] Port A bit 0 unmasked interrupt status: 1: Detected 0: Undetected

Source§

impl R<u32, Reg<u32, _DATA>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn data(&self) -> DATA_R

Bits 0:7 - 7:0] Input and output data

Source§

impl R<u32, Reg<u32, _DIR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn dir(&self) -> DIR_R

Bits 0:7 - 7:0] Bits set: Corresponding pin is output Bits cleared: Corresponding pin is input

Source§

impl R<u32, Reg<u32, _IS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn is(&self) -> IS_R

Bits 0:7 - 7:0] Bits set: Level on corresponding pin is detected Bits cleared: Edge on corresponding pin is detected

Source§

impl R<u32, Reg<u32, _IBE>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn ibe(&self) -> IBE_R

Bits 0:7 - 7:0] Bits set: Both edges on corresponding pin trigger an interrupt Bits cleared: Interrupt generation event is controlled by GPIOIEV Single edge: Determined by corresponding bit in GPIOIEV register

Source§

impl R<u32, Reg<u32, _IEV>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn iev(&self) -> IEV_R

Bits 0:7 - 7:0] Bits set: Rising edges or high levels on corresponding pin trigger interrupts Bits cleared: Falling edges or low levels on corresponding pin trigger interrupts

Source§

impl R<u32, Reg<u32, _IE>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn ie(&self) -> IE_R

Bits 0:7 - 7:0] Bits set: Corresponding pin is not masked Bits cleared: Corresponding pin is masked

Source§

impl R<u32, Reg<u32, _RIS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn ris(&self) -> RIS_R

Bits 0:7 - 7:0] Reflects the status of interrupts trigger conditions detected on pins (raw, before masking) Bits set: Requirements met by corresponding pins Bits clear: Requirements not met

Source§

impl R<u32, Reg<u32, _MIS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn mis(&self) -> MIS_R

Bits 0:7 - 7:0] Masked value of interrupt due to corresponding pin Bits clear: GPIO line interrupt not active Bits set: GPIO line asserting interrupt

Source§

impl R<u32, Reg<u32, _IC>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn ic(&self) -> IC_R

Bits 0:7 - 7:0] Bit written as 1: Clears edge detection logic Bit written as 0: Has no effect

Source§

impl R<u32, Reg<u32, _AFSEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn afsel(&self) -> AFSEL_R

Bits 0:7 - 7:0] Bit set: Enables hardware (peripheral) control mode Bit cleared: Enables software control mode

Source§

impl R<u32, Reg<u32, _GPIOLOCK>>

Source

pub fn lock(&self) -> LOCK_R

Bits 0:31 - 31:0] A read of this register returns the following values: Locked: 0x00000001 Unlocked: 0x00000000

Source§

impl R<u32, Reg<u32, _GPIOCR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved bits return an indeterminate value, and should never be changed.

Source

pub fn cr(&self) -> CR_R

Bits 0:7 - 7:0] On a bit-wise basis, any bit set allows the corresponding GPIOAFSEL bit to be set to its alternate function.

Source§

impl R<u32, Reg<u32, _PMUX>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn ckoen(&self) -> CKOEN_R

Bit 7 - 7:7] Clock out enable When this bit is set, the 32-kHz clock is routed to either PA[0] or PB[7] pins. PMUX.CKOPIN selects the pin to use. This overrides the current configuration setting for this pin. The pullup or pulldown is disabled and the direction is set to output for this pin.

Source

pub fn reserved7(&self) -> RESERVED7_R

Bits 5:6 - 6:5] These are spare registers that are unused in the design.

Source

pub fn ckopin(&self) -> CKOPIN_R

Bit 4 - 4:4] Decouple control pin select This control only has relevance when CKOEN is set. When 0, PA[0] becomes the 32-kHz clock output. When 1, PB[7] becomes the 32-kHz clock output.

Source

pub fn dcen(&self) -> DCEN_R

Bit 3 - 3:3] Decouple control enable When this bit is set, the on-die digital regulator status is routed to either PB[1] or PB[0] pins. PMUX.DCPIN selects the pin to use. This overrides the current configuration setting for this pin. The pullup or pulldown is disabled and the direction is set to output for this pin.

Source

pub fn reserved3(&self) -> RESERVED3_R

Bits 1:2 - 2:1] These are spare registers that are unused in the design.

Source

pub fn dcpin(&self) -> DCPIN_R

Bit 0 - 0:0] Decouple control pin select This control has relevance only when DCEN is set. When 0, PB[1] becomes the on-die digital regulator status (1 indicates the on-die digital regulator is active); when 1, PB[0] becomes the on-die digital regulator status. NOTE: PB[1] and PB[0] can also be controlled with other override features. In priority order for PB[1]: When POR/BOD test mode is active, PB[1] becomes the active low brown-out detected indicator. When DCEN is set and DCPIN is not set, PB[1] becomes the on-dir digital regulator status. In priority order for PB[0]: When POR/BOD test mode is active, PB[0] becomes the power-on-reset indicator. When DCEN and DCPIN are set, PB[0] becomes the on-die digital regulator status.

Source§

impl R<u32, Reg<u32, _P_EDGE_CTRL>>

Source

pub fn pdirc7(&self) -> PDIRC7_R

Bit 31 - 31:31] Port D bit 7 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc6(&self) -> PDIRC6_R

Bit 30 - 30:30] Port D bit 6 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc5(&self) -> PDIRC5_R

Bit 29 - 29:29] Port D bit 5 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc4(&self) -> PDIRC4_R

Bit 28 - 28:28] Port D bit 4 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc3(&self) -> PDIRC3_R

Bit 27 - 27:27] Port D bit 3 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc2(&self) -> PDIRC2_R

Bit 26 - 26:26] Port D bit 2 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc1(&self) -> PDIRC1_R

Bit 25 - 25:25] Port D bit 1 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc0(&self) -> PDIRC0_R

Bit 24 - 24:24] Port D bit 0 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc7(&self) -> PCIRC7_R

Bit 23 - 23:23] Port C bit 7 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc6(&self) -> PCIRC6_R

Bit 22 - 22:22] Port C bit 6 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc5(&self) -> PCIRC5_R

Bit 21 - 21:21] Port C bit 5 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc4(&self) -> PCIRC4_R

Bit 20 - 20:20] Port C bit 4 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc3(&self) -> PCIRC3_R

Bit 19 - 19:19] Port C bit 3 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc2(&self) -> PCIRC2_R

Bit 18 - 18:18] Port C bit 2 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc1(&self) -> PCIRC1_R

Bit 17 - 17:17] Port C bit 1 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc0(&self) -> PCIRC0_R

Bit 16 - 16:16] Port C bit 0 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc7(&self) -> PBIRC7_R

Bit 15 - 15:15] Port B bit 7 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc6(&self) -> PBIRC6_R

Bit 14 - 14:14] Port B bit 6 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc5(&self) -> PBIRC5_R

Bit 13 - 13:13] Port B bit 5 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc4(&self) -> PBIRC4_R

Bit 12 - 12:12] Port B bit 4 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc3(&self) -> PBIRC3_R

Bit 11 - 11:11] Port B bit 3 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc2(&self) -> PBIRC2_R

Bit 10 - 10:10] Port B bit 2 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc1(&self) -> PBIRC1_R

Bit 9 - 9:9] Port B bit 1 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc0(&self) -> PBIRC0_R

Bit 8 - 8:8] Port B bit 0 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc7(&self) -> PAIRC7_R

Bit 7 - 7:7] Port A bit 7 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc6(&self) -> PAIRC6_R

Bit 6 - 6:6] Port A bit 6 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc5(&self) -> PAIRC5_R

Bit 5 - 5:5] Port A bit 5 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc4(&self) -> PAIRC4_R

Bit 4 - 4:4] Port A bit 4 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc3(&self) -> PAIRC3_R

Bit 3 - 3:3] Port A bit 3 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc2(&self) -> PAIRC2_R

Bit 2 - 2:2] Port A bit 2 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc1(&self) -> PAIRC1_R

Bit 1 - 1:1] Port A bit 1 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc0(&self) -> PAIRC0_R

Bit 0 - 0:0] Port A bit 0 interrupt request condition: 0: Rising 1: Falling edge

Source§

impl R<u32, Reg<u32, _USB_CTRL>>

Source

pub fn reserved31(&self) -> RESERVED31_R

Bits 1:31

Source

pub fn usb_edge_ctl(&self) -> USB_EDGE_CTL_R

Bit 0 - 0:0] Used to set the edge which triggers the USB power up interrupt 0: Rising 1: Falling

Source§

impl R<u32, Reg<u32, _PI_IEN>>

Source

pub fn pdien7(&self) -> PDIEN7_R

Bit 31 - 31:31] Port D bit 7 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien6(&self) -> PDIEN6_R

Bit 30 - 30:30] Port D bit 6 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien5(&self) -> PDIEN5_R

Bit 29 - 29:29] Port D bit 5 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien4(&self) -> PDIEN4_R

Bit 28 - 28:28] Port D bit 4 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien3(&self) -> PDIEN3_R

Bit 27 - 27:27] Port D bit 3 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien2(&self) -> PDIEN2_R

Bit 26 - 26:26] Port D bit 2 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien1(&self) -> PDIEN1_R

Bit 25 - 25:25] Port D bit 1 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien0(&self) -> PDIEN0_R

Bit 24 - 24:24] Port D bit 0 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien7(&self) -> PCIEN7_R

Bit 23 - 23:23] Port C bit 7 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien6(&self) -> PCIEN6_R

Bit 22 - 22:22] Port C bit 6 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien5(&self) -> PCIEN5_R

Bit 21 - 21:21] Port C bit 5 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien4(&self) -> PCIEN4_R

Bit 20 - 20:20] Port C bit 4 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien3(&self) -> PCIEN3_R

Bit 19 - 19:19] Port C bit 3 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien2(&self) -> PCIEN2_R

Bit 18 - 18:18] Port C bit 2 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien1(&self) -> PCIEN1_R

Bit 17 - 17:17] Port C bit 1 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien0(&self) -> PCIEN0_R

Bit 16 - 16:16] Port C bit 0 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien7(&self) -> PBIEN7_R

Bit 15 - 15:15] Port B bit 7 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien6(&self) -> PBIEN6_R

Bit 14 - 14:14] Port B bit 6 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien5(&self) -> PBIEN5_R

Bit 13 - 13:13] Port B bit 5 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien4(&self) -> PBIEN4_R

Bit 12 - 12:12] Port B bit 4 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien3(&self) -> PBIEN3_R

Bit 11 - 11:11] Port B bit 3 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien2(&self) -> PBIEN2_R

Bit 10 - 10:10] Port B bit 2 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien1(&self) -> PBIEN1_R

Bit 9 - 9:9] Port B bit 1 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien0(&self) -> PBIEN0_R

Bit 8 - 8:8] Port B bit 0 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien7(&self) -> PAIEN7_R

Bit 7 - 7:7] Port A bit 7 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien6(&self) -> PAIEN6_R

Bit 6 - 6:6] Port A bit 6 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien5(&self) -> PAIEN5_R

Bit 5 - 5:5] Port A bit 5 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien4(&self) -> PAIEN4_R

Bit 4 - 4:4] Port A bit 4 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien3(&self) -> PAIEN3_R

Bit 3 - 3:3] Port A bit 3 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien2(&self) -> PAIEN2_R

Bit 2 - 2:2] Port A bit 2 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien1(&self) -> PAIEN1_R

Bit 1 - 1:1] Port A bit 1 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien0(&self) -> PAIEN0_R

Bit 0 - 0:0] Port A bit 0 interrupt enable: 1: Enabled 2: Disabled

Source§

impl R<u32, Reg<u32, _IRQ_DETECT_ACK>>

Source

pub fn pdiack7(&self) -> PDIACK7_R

Bit 31 - 31:31] Port D bit 7 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack6(&self) -> PDIACK6_R

Bit 30 - 30:30] Port D bit 6 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack5(&self) -> PDIACK5_R

Bit 29 - 29:29] Port D bit 5 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack4(&self) -> PDIACK4_R

Bit 28 - 28:28] Port D bit 4 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack3(&self) -> PDIACK3_R

Bit 27 - 27:27] Port D bit 3 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack2(&self) -> PDIACK2_R

Bit 26 - 26:26] Port D bit 2 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack1(&self) -> PDIACK1_R

Bit 25 - 25:25] Port D bit 1 masked interrupt status: 1: Detected0: Not detected

Source

pub fn pdiack0(&self) -> PDIACK0_R

Bit 24 - 24:24] Port D bit 0 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack7(&self) -> PCIACK7_R

Bit 23 - 23:23] Port C bit 7 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack6(&self) -> PCIACK6_R

Bit 22 - 22:22] Port C bit 6 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack5(&self) -> PCIACK5_R

Bit 21 - 21:21] Port C bit 5 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack4(&self) -> PCIACK4_R

Bit 20 - 20:20] Port C bit 4 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack3(&self) -> PCIACK3_R

Bit 19 - 19:19] Port C bit 3 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack2(&self) -> PCIACK2_R

Bit 18 - 18:18] Port C bit 2 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack1(&self) -> PCIACK1_R

Bit 17 - 17:17] Port C bit 1 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack0(&self) -> PCIACK0_R

Bit 16 - 16:16] Port C bit 0 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack7(&self) -> PBIACK7_R

Bit 15 - 15:15] Port B bit 7 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack6(&self) -> PBIACK6_R

Bit 14 - 14:14] Port B bit 6 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack5(&self) -> PBIACK5_R

Bit 13 - 13:13] Port B bit 5 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack4(&self) -> PBIACK4_R

Bit 12 - 12:12] Port B bit 4 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack3(&self) -> PBIACK3_R

Bit 11 - 11:11] Port B bit 3 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack2(&self) -> PBIACK2_R

Bit 10 - 10:10] Port B bit 2 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack1(&self) -> PBIACK1_R

Bit 9 - 9:9] Port B bit 1 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack0(&self) -> PBIACK0_R

Bit 8 - 8:8] Port B bit 0 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack7(&self) -> PAIACK7_R

Bit 7 - 7:7] Port A bit 7 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack6(&self) -> PAIACK6_R

Bit 6 - 6:6] Port A bit 6 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack5(&self) -> PAIACK5_R

Bit 5 - 5:5] Port A bit 5 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack4(&self) -> PAIACK4_R

Bit 4 - 4:4] Port A bit 4 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack3(&self) -> PAIACK3_R

Bit 3 - 3:3] Port A bit 3 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack2(&self) -> PAIACK2_R

Bit 2 - 2:2] Port A bit 2 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack1(&self) -> PAIACK1_R

Bit 1 - 1:1] Port A bit 1 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack0(&self) -> PAIACK0_R

Bit 0 - 0:0] Port A bit 0 masked interrupt status: 1: Detected 0: Not detected

Source§

impl R<u32, Reg<u32, _USB_IRQ_ACK>>

Source

pub fn reserved31(&self) -> RESERVED31_R

Bits 1:31

Source

pub fn usback(&self) -> USBACK_R

Bit 0 - 0:0] USB masked interrupt status: 1: Detected 0: Not detected

Source§

impl R<u32, Reg<u32, _IRQ_DETECT_UNMASK>>

Source

pub fn pdiack7(&self) -> PDIACK7_R

Bit 31 - 31:31] Port D bit 7 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack6(&self) -> PDIACK6_R

Bit 30 - 30:30] Port D bit 6 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack5(&self) -> PDIACK5_R

Bit 29 - 29:29] Port D bit 5 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack4(&self) -> PDIACK4_R

Bit 28 - 28:28] Port D bit 4 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack3(&self) -> PDIACK3_R

Bit 27 - 27:27] Port D bit 3 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack2(&self) -> PDIACK2_R

Bit 26 - 26:26] Port D bit 2 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack1(&self) -> PDIACK1_R

Bit 25 - 25:25] Port D bit 1 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack0(&self) -> PDIACK0_R

Bit 24 - 24:24] Port D bit 0 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack7(&self) -> PCIACK7_R

Bit 23 - 23:23] Port C bit 7 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack6(&self) -> PCIACK6_R

Bit 22 - 22:22] Port C bit 6 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack5(&self) -> PCIACK5_R

Bit 21 - 21:21] Port C bit 5 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack4(&self) -> PCIACK4_R

Bit 20 - 20:20] Port C bit 4 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack3(&self) -> PCIACK3_R

Bit 19 - 19:19] Port C bit 3 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack2(&self) -> PCIACK2_R

Bit 18 - 18:18] Port C bit 2 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack1(&self) -> PCIACK1_R

Bit 17 - 17:17] Port C bit 1 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack0(&self) -> PCIACK0_R

Bit 16 - 16:16] Port C bit 0 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack7(&self) -> PBIACK7_R

Bit 15 - 15:15] Port B bit 7 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack6(&self) -> PBIACK6_R

Bit 14 - 14:14] Port B bit 6 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack5(&self) -> PBIACK5_R

Bit 13 - 13:13] Port B bit 5 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack4(&self) -> PBIACK4_R

Bit 12 - 12:12] Port B bit 4 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack3(&self) -> PBIACK3_R

Bit 11 - 11:11] Port B bit 3 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack2(&self) -> PBIACK2_R

Bit 10 - 10:10] Port B bit 2 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack1(&self) -> PBIACK1_R

Bit 9 - 9:9] Port B bit 1 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack0(&self) -> PBIACK0_R

Bit 8 - 8:8] Port B bit 0 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack7(&self) -> PAIACK7_R

Bit 7 - 7:7] Port A bit 7 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack6(&self) -> PAIACK6_R

Bit 6 - 6:6] Port A bit 6 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack5(&self) -> PAIACK5_R

Bit 5 - 5:5] Port A bit 5 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack4(&self) -> PAIACK4_R

Bit 4 - 4:4] Port A bit 4 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack3(&self) -> PAIACK3_R

Bit 3 - 3:3] Port A bit 3 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack2(&self) -> PAIACK2_R

Bit 2 - 2:2] Port A bit 2 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack1(&self) -> PAIACK1_R

Bit 1 - 1:1] Port A bit 1 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack0(&self) -> PAIACK0_R

Bit 0 - 0:0] Port A bit 0 unmasked interrupt status: 1: Detected 0: Undetected

Source§

impl R<u32, Reg<u32, _DATA>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn data(&self) -> DATA_R

Bits 0:7 - 7:0] Input and output data

Source§

impl R<u32, Reg<u32, _DIR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn dir(&self) -> DIR_R

Bits 0:7 - 7:0] Bits set: Corresponding pin is output Bits cleared: Corresponding pin is input

Source§

impl R<u32, Reg<u32, _IS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn is(&self) -> IS_R

Bits 0:7 - 7:0] Bits set: Level on corresponding pin is detected Bits cleared: Edge on corresponding pin is detected

Source§

impl R<u32, Reg<u32, _IBE>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn ibe(&self) -> IBE_R

Bits 0:7 - 7:0] Bits set: Both edges on corresponding pin trigger an interrupt Bits cleared: Interrupt generation event is controlled by GPIOIEV Single edge: Determined by corresponding bit in GPIOIEV register

Source§

impl R<u32, Reg<u32, _IEV>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn iev(&self) -> IEV_R

Bits 0:7 - 7:0] Bits set: Rising edges or high levels on corresponding pin trigger interrupts Bits cleared: Falling edges or low levels on corresponding pin trigger interrupts

Source§

impl R<u32, Reg<u32, _IE>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn ie(&self) -> IE_R

Bits 0:7 - 7:0] Bits set: Corresponding pin is not masked Bits cleared: Corresponding pin is masked

Source§

impl R<u32, Reg<u32, _RIS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn ris(&self) -> RIS_R

Bits 0:7 - 7:0] Reflects the status of interrupts trigger conditions detected on pins (raw, before masking) Bits set: Requirements met by corresponding pins Bits clear: Requirements not met

Source§

impl R<u32, Reg<u32, _MIS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn mis(&self) -> MIS_R

Bits 0:7 - 7:0] Masked value of interrupt due to corresponding pin Bits clear: GPIO line interrupt not active Bits set: GPIO line asserting interrupt

Source§

impl R<u32, Reg<u32, _IC>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn ic(&self) -> IC_R

Bits 0:7 - 7:0] Bit written as 1: Clears edge detection logic Bit written as 0: Has no effect

Source§

impl R<u32, Reg<u32, _AFSEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn afsel(&self) -> AFSEL_R

Bits 0:7 - 7:0] Bit set: Enables hardware (peripheral) control mode Bit cleared: Enables software control mode

Source§

impl R<u32, Reg<u32, _GPIOLOCK>>

Source

pub fn lock(&self) -> LOCK_R

Bits 0:31 - 31:0] A read of this register returns the following values: Locked: 0x00000001 Unlocked: 0x00000000

Source§

impl R<u32, Reg<u32, _GPIOCR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved bits return an indeterminate value, and should never be changed.

Source

pub fn cr(&self) -> CR_R

Bits 0:7 - 7:0] On a bit-wise basis, any bit set allows the corresponding GPIOAFSEL bit to be set to its alternate function.

Source§

impl R<u32, Reg<u32, _PMUX>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn ckoen(&self) -> CKOEN_R

Bit 7 - 7:7] Clock out enable When this bit is set, the 32-kHz clock is routed to either PA[0] or PB[7] pins. PMUX.CKOPIN selects the pin to use. This overrides the current configuration setting for this pin. The pullup or pulldown is disabled and the direction is set to output for this pin.

Source

pub fn reserved7(&self) -> RESERVED7_R

Bits 5:6 - 6:5] These are spare registers that are unused in the design.

Source

pub fn ckopin(&self) -> CKOPIN_R

Bit 4 - 4:4] Decouple control pin select This control only has relevance when CKOEN is set. When 0, PA[0] becomes the 32-kHz clock output. When 1, PB[7] becomes the 32-kHz clock output.

Source

pub fn dcen(&self) -> DCEN_R

Bit 3 - 3:3] Decouple control enable When this bit is set, the on-die digital regulator status is routed to either PB[1] or PB[0] pins. PMUX.DCPIN selects the pin to use. This overrides the current configuration setting for this pin. The pullup or pulldown is disabled and the direction is set to output for this pin.

Source

pub fn reserved3(&self) -> RESERVED3_R

Bits 1:2 - 2:1] These are spare registers that are unused in the design.

Source

pub fn dcpin(&self) -> DCPIN_R

Bit 0 - 0:0] Decouple control pin select This control has relevance only when DCEN is set. When 0, PB[1] becomes the on-die digital regulator status (1 indicates the on-die digital regulator is active); when 1, PB[0] becomes the on-die digital regulator status. NOTE: PB[1] and PB[0] can also be controlled with other override features. In priority order for PB[1]: When POR/BOD test mode is active, PB[1] becomes the active low brown-out detected indicator. When DCEN is set and DCPIN is not set, PB[1] becomes the on-dir digital regulator status. In priority order for PB[0]: When POR/BOD test mode is active, PB[0] becomes the power-on-reset indicator. When DCEN and DCPIN are set, PB[0] becomes the on-die digital regulator status.

Source§

impl R<u32, Reg<u32, _P_EDGE_CTRL>>

Source

pub fn pdirc7(&self) -> PDIRC7_R

Bit 31 - 31:31] Port D bit 7 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc6(&self) -> PDIRC6_R

Bit 30 - 30:30] Port D bit 6 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc5(&self) -> PDIRC5_R

Bit 29 - 29:29] Port D bit 5 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc4(&self) -> PDIRC4_R

Bit 28 - 28:28] Port D bit 4 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc3(&self) -> PDIRC3_R

Bit 27 - 27:27] Port D bit 3 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc2(&self) -> PDIRC2_R

Bit 26 - 26:26] Port D bit 2 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc1(&self) -> PDIRC1_R

Bit 25 - 25:25] Port D bit 1 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc0(&self) -> PDIRC0_R

Bit 24 - 24:24] Port D bit 0 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc7(&self) -> PCIRC7_R

Bit 23 - 23:23] Port C bit 7 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc6(&self) -> PCIRC6_R

Bit 22 - 22:22] Port C bit 6 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc5(&self) -> PCIRC5_R

Bit 21 - 21:21] Port C bit 5 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc4(&self) -> PCIRC4_R

Bit 20 - 20:20] Port C bit 4 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc3(&self) -> PCIRC3_R

Bit 19 - 19:19] Port C bit 3 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc2(&self) -> PCIRC2_R

Bit 18 - 18:18] Port C bit 2 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc1(&self) -> PCIRC1_R

Bit 17 - 17:17] Port C bit 1 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc0(&self) -> PCIRC0_R

Bit 16 - 16:16] Port C bit 0 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc7(&self) -> PBIRC7_R

Bit 15 - 15:15] Port B bit 7 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc6(&self) -> PBIRC6_R

Bit 14 - 14:14] Port B bit 6 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc5(&self) -> PBIRC5_R

Bit 13 - 13:13] Port B bit 5 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc4(&self) -> PBIRC4_R

Bit 12 - 12:12] Port B bit 4 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc3(&self) -> PBIRC3_R

Bit 11 - 11:11] Port B bit 3 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc2(&self) -> PBIRC2_R

Bit 10 - 10:10] Port B bit 2 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc1(&self) -> PBIRC1_R

Bit 9 - 9:9] Port B bit 1 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc0(&self) -> PBIRC0_R

Bit 8 - 8:8] Port B bit 0 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc7(&self) -> PAIRC7_R

Bit 7 - 7:7] Port A bit 7 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc6(&self) -> PAIRC6_R

Bit 6 - 6:6] Port A bit 6 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc5(&self) -> PAIRC5_R

Bit 5 - 5:5] Port A bit 5 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc4(&self) -> PAIRC4_R

Bit 4 - 4:4] Port A bit 4 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc3(&self) -> PAIRC3_R

Bit 3 - 3:3] Port A bit 3 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc2(&self) -> PAIRC2_R

Bit 2 - 2:2] Port A bit 2 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc1(&self) -> PAIRC1_R

Bit 1 - 1:1] Port A bit 1 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc0(&self) -> PAIRC0_R

Bit 0 - 0:0] Port A bit 0 interrupt request condition: 0: Rising 1: Falling edge

Source§

impl R<u32, Reg<u32, _USB_CTRL>>

Source

pub fn reserved31(&self) -> RESERVED31_R

Bits 1:31

Source

pub fn usb_edge_ctl(&self) -> USB_EDGE_CTL_R

Bit 0 - 0:0] Used to set the edge which triggers the USB power up interrupt 0: Rising 1: Falling

Source§

impl R<u32, Reg<u32, _PI_IEN>>

Source

pub fn pdien7(&self) -> PDIEN7_R

Bit 31 - 31:31] Port D bit 7 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien6(&self) -> PDIEN6_R

Bit 30 - 30:30] Port D bit 6 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien5(&self) -> PDIEN5_R

Bit 29 - 29:29] Port D bit 5 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien4(&self) -> PDIEN4_R

Bit 28 - 28:28] Port D bit 4 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien3(&self) -> PDIEN3_R

Bit 27 - 27:27] Port D bit 3 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien2(&self) -> PDIEN2_R

Bit 26 - 26:26] Port D bit 2 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien1(&self) -> PDIEN1_R

Bit 25 - 25:25] Port D bit 1 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien0(&self) -> PDIEN0_R

Bit 24 - 24:24] Port D bit 0 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien7(&self) -> PCIEN7_R

Bit 23 - 23:23] Port C bit 7 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien6(&self) -> PCIEN6_R

Bit 22 - 22:22] Port C bit 6 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien5(&self) -> PCIEN5_R

Bit 21 - 21:21] Port C bit 5 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien4(&self) -> PCIEN4_R

Bit 20 - 20:20] Port C bit 4 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien3(&self) -> PCIEN3_R

Bit 19 - 19:19] Port C bit 3 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien2(&self) -> PCIEN2_R

Bit 18 - 18:18] Port C bit 2 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien1(&self) -> PCIEN1_R

Bit 17 - 17:17] Port C bit 1 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien0(&self) -> PCIEN0_R

Bit 16 - 16:16] Port C bit 0 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien7(&self) -> PBIEN7_R

Bit 15 - 15:15] Port B bit 7 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien6(&self) -> PBIEN6_R

Bit 14 - 14:14] Port B bit 6 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien5(&self) -> PBIEN5_R

Bit 13 - 13:13] Port B bit 5 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien4(&self) -> PBIEN4_R

Bit 12 - 12:12] Port B bit 4 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien3(&self) -> PBIEN3_R

Bit 11 - 11:11] Port B bit 3 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien2(&self) -> PBIEN2_R

Bit 10 - 10:10] Port B bit 2 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien1(&self) -> PBIEN1_R

Bit 9 - 9:9] Port B bit 1 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien0(&self) -> PBIEN0_R

Bit 8 - 8:8] Port B bit 0 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien7(&self) -> PAIEN7_R

Bit 7 - 7:7] Port A bit 7 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien6(&self) -> PAIEN6_R

Bit 6 - 6:6] Port A bit 6 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien5(&self) -> PAIEN5_R

Bit 5 - 5:5] Port A bit 5 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien4(&self) -> PAIEN4_R

Bit 4 - 4:4] Port A bit 4 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien3(&self) -> PAIEN3_R

Bit 3 - 3:3] Port A bit 3 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien2(&self) -> PAIEN2_R

Bit 2 - 2:2] Port A bit 2 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien1(&self) -> PAIEN1_R

Bit 1 - 1:1] Port A bit 1 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien0(&self) -> PAIEN0_R

Bit 0 - 0:0] Port A bit 0 interrupt enable: 1: Enabled 2: Disabled

Source§

impl R<u32, Reg<u32, _IRQ_DETECT_ACK>>

Source

pub fn pdiack7(&self) -> PDIACK7_R

Bit 31 - 31:31] Port D bit 7 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack6(&self) -> PDIACK6_R

Bit 30 - 30:30] Port D bit 6 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack5(&self) -> PDIACK5_R

Bit 29 - 29:29] Port D bit 5 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack4(&self) -> PDIACK4_R

Bit 28 - 28:28] Port D bit 4 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack3(&self) -> PDIACK3_R

Bit 27 - 27:27] Port D bit 3 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack2(&self) -> PDIACK2_R

Bit 26 - 26:26] Port D bit 2 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack1(&self) -> PDIACK1_R

Bit 25 - 25:25] Port D bit 1 masked interrupt status: 1: Detected0: Not detected

Source

pub fn pdiack0(&self) -> PDIACK0_R

Bit 24 - 24:24] Port D bit 0 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack7(&self) -> PCIACK7_R

Bit 23 - 23:23] Port C bit 7 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack6(&self) -> PCIACK6_R

Bit 22 - 22:22] Port C bit 6 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack5(&self) -> PCIACK5_R

Bit 21 - 21:21] Port C bit 5 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack4(&self) -> PCIACK4_R

Bit 20 - 20:20] Port C bit 4 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack3(&self) -> PCIACK3_R

Bit 19 - 19:19] Port C bit 3 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack2(&self) -> PCIACK2_R

Bit 18 - 18:18] Port C bit 2 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack1(&self) -> PCIACK1_R

Bit 17 - 17:17] Port C bit 1 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack0(&self) -> PCIACK0_R

Bit 16 - 16:16] Port C bit 0 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack7(&self) -> PBIACK7_R

Bit 15 - 15:15] Port B bit 7 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack6(&self) -> PBIACK6_R

Bit 14 - 14:14] Port B bit 6 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack5(&self) -> PBIACK5_R

Bit 13 - 13:13] Port B bit 5 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack4(&self) -> PBIACK4_R

Bit 12 - 12:12] Port B bit 4 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack3(&self) -> PBIACK3_R

Bit 11 - 11:11] Port B bit 3 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack2(&self) -> PBIACK2_R

Bit 10 - 10:10] Port B bit 2 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack1(&self) -> PBIACK1_R

Bit 9 - 9:9] Port B bit 1 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack0(&self) -> PBIACK0_R

Bit 8 - 8:8] Port B bit 0 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack7(&self) -> PAIACK7_R

Bit 7 - 7:7] Port A bit 7 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack6(&self) -> PAIACK6_R

Bit 6 - 6:6] Port A bit 6 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack5(&self) -> PAIACK5_R

Bit 5 - 5:5] Port A bit 5 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack4(&self) -> PAIACK4_R

Bit 4 - 4:4] Port A bit 4 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack3(&self) -> PAIACK3_R

Bit 3 - 3:3] Port A bit 3 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack2(&self) -> PAIACK2_R

Bit 2 - 2:2] Port A bit 2 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack1(&self) -> PAIACK1_R

Bit 1 - 1:1] Port A bit 1 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack0(&self) -> PAIACK0_R

Bit 0 - 0:0] Port A bit 0 masked interrupt status: 1: Detected 0: Not detected

Source§

impl R<u32, Reg<u32, _USB_IRQ_ACK>>

Source

pub fn reserved31(&self) -> RESERVED31_R

Bits 1:31

Source

pub fn usback(&self) -> USBACK_R

Bit 0 - 0:0] USB masked interrupt status: 1: Detected 0: Not detected

Source§

impl R<u32, Reg<u32, _IRQ_DETECT_UNMASK>>

Source

pub fn pdiack7(&self) -> PDIACK7_R

Bit 31 - 31:31] Port D bit 7 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack6(&self) -> PDIACK6_R

Bit 30 - 30:30] Port D bit 6 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack5(&self) -> PDIACK5_R

Bit 29 - 29:29] Port D bit 5 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack4(&self) -> PDIACK4_R

Bit 28 - 28:28] Port D bit 4 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack3(&self) -> PDIACK3_R

Bit 27 - 27:27] Port D bit 3 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack2(&self) -> PDIACK2_R

Bit 26 - 26:26] Port D bit 2 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack1(&self) -> PDIACK1_R

Bit 25 - 25:25] Port D bit 1 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack0(&self) -> PDIACK0_R

Bit 24 - 24:24] Port D bit 0 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack7(&self) -> PCIACK7_R

Bit 23 - 23:23] Port C bit 7 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack6(&self) -> PCIACK6_R

Bit 22 - 22:22] Port C bit 6 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack5(&self) -> PCIACK5_R

Bit 21 - 21:21] Port C bit 5 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack4(&self) -> PCIACK4_R

Bit 20 - 20:20] Port C bit 4 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack3(&self) -> PCIACK3_R

Bit 19 - 19:19] Port C bit 3 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack2(&self) -> PCIACK2_R

Bit 18 - 18:18] Port C bit 2 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack1(&self) -> PCIACK1_R

Bit 17 - 17:17] Port C bit 1 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack0(&self) -> PCIACK0_R

Bit 16 - 16:16] Port C bit 0 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack7(&self) -> PBIACK7_R

Bit 15 - 15:15] Port B bit 7 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack6(&self) -> PBIACK6_R

Bit 14 - 14:14] Port B bit 6 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack5(&self) -> PBIACK5_R

Bit 13 - 13:13] Port B bit 5 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack4(&self) -> PBIACK4_R

Bit 12 - 12:12] Port B bit 4 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack3(&self) -> PBIACK3_R

Bit 11 - 11:11] Port B bit 3 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack2(&self) -> PBIACK2_R

Bit 10 - 10:10] Port B bit 2 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack1(&self) -> PBIACK1_R

Bit 9 - 9:9] Port B bit 1 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack0(&self) -> PBIACK0_R

Bit 8 - 8:8] Port B bit 0 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack7(&self) -> PAIACK7_R

Bit 7 - 7:7] Port A bit 7 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack6(&self) -> PAIACK6_R

Bit 6 - 6:6] Port A bit 6 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack5(&self) -> PAIACK5_R

Bit 5 - 5:5] Port A bit 5 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack4(&self) -> PAIACK4_R

Bit 4 - 4:4] Port A bit 4 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack3(&self) -> PAIACK3_R

Bit 3 - 3:3] Port A bit 3 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack2(&self) -> PAIACK2_R

Bit 2 - 2:2] Port A bit 2 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack1(&self) -> PAIACK1_R

Bit 1 - 1:1] Port A bit 1 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack0(&self) -> PAIACK0_R

Bit 0 - 0:0] Port A bit 0 unmasked interrupt status: 1: Detected 0: Undetected

Source§

impl R<u32, Reg<u32, _DATA>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn data(&self) -> DATA_R

Bits 0:7 - 7:0] Input and output data

Source§

impl R<u32, Reg<u32, _DIR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn dir(&self) -> DIR_R

Bits 0:7 - 7:0] Bits set: Corresponding pin is output Bits cleared: Corresponding pin is input

Source§

impl R<u32, Reg<u32, _IS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn is(&self) -> IS_R

Bits 0:7 - 7:0] Bits set: Level on corresponding pin is detected Bits cleared: Edge on corresponding pin is detected

Source§

impl R<u32, Reg<u32, _IBE>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn ibe(&self) -> IBE_R

Bits 0:7 - 7:0] Bits set: Both edges on corresponding pin trigger an interrupt Bits cleared: Interrupt generation event is controlled by GPIOIEV Single edge: Determined by corresponding bit in GPIOIEV register

Source§

impl R<u32, Reg<u32, _IEV>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn iev(&self) -> IEV_R

Bits 0:7 - 7:0] Bits set: Rising edges or high levels on corresponding pin trigger interrupts Bits cleared: Falling edges or low levels on corresponding pin trigger interrupts

Source§

impl R<u32, Reg<u32, _IE>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn ie(&self) -> IE_R

Bits 0:7 - 7:0] Bits set: Corresponding pin is not masked Bits cleared: Corresponding pin is masked

Source§

impl R<u32, Reg<u32, _RIS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn ris(&self) -> RIS_R

Bits 0:7 - 7:0] Reflects the status of interrupts trigger conditions detected on pins (raw, before masking) Bits set: Requirements met by corresponding pins Bits clear: Requirements not met

Source§

impl R<u32, Reg<u32, _MIS>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn mis(&self) -> MIS_R

Bits 0:7 - 7:0] Masked value of interrupt due to corresponding pin Bits clear: GPIO line interrupt not active Bits set: GPIO line asserting interrupt

Source§

impl R<u32, Reg<u32, _IC>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn ic(&self) -> IC_R

Bits 0:7 - 7:0] Bit written as 1: Clears edge detection logic Bit written as 0: Has no effect

Source§

impl R<u32, Reg<u32, _AFSEL>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn afsel(&self) -> AFSEL_R

Bits 0:7 - 7:0] Bit set: Enables hardware (peripheral) control mode Bit cleared: Enables software control mode

Source§

impl R<u32, Reg<u32, _GPIOLOCK>>

Source

pub fn lock(&self) -> LOCK_R

Bits 0:31 - 31:0] A read of this register returns the following values: Locked: 0x00000001 Unlocked: 0x00000000

Source§

impl R<u32, Reg<u32, _GPIOCR>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31 - 31:8] Reserved bits return an indeterminate value, and should never be changed.

Source

pub fn cr(&self) -> CR_R

Bits 0:7 - 7:0] On a bit-wise basis, any bit set allows the corresponding GPIOAFSEL bit to be set to its alternate function.

Source§

impl R<u32, Reg<u32, _PMUX>>

Source

pub fn reserved32(&self) -> RESERVED32_R

Bits 8:31

Source

pub fn ckoen(&self) -> CKOEN_R

Bit 7 - 7:7] Clock out enable When this bit is set, the 32-kHz clock is routed to either PA[0] or PB[7] pins. PMUX.CKOPIN selects the pin to use. This overrides the current configuration setting for this pin. The pullup or pulldown is disabled and the direction is set to output for this pin.

Source

pub fn reserved7(&self) -> RESERVED7_R

Bits 5:6 - 6:5] These are spare registers that are unused in the design.

Source

pub fn ckopin(&self) -> CKOPIN_R

Bit 4 - 4:4] Decouple control pin select This control only has relevance when CKOEN is set. When 0, PA[0] becomes the 32-kHz clock output. When 1, PB[7] becomes the 32-kHz clock output.

Source

pub fn dcen(&self) -> DCEN_R

Bit 3 - 3:3] Decouple control enable When this bit is set, the on-die digital regulator status is routed to either PB[1] or PB[0] pins. PMUX.DCPIN selects the pin to use. This overrides the current configuration setting for this pin. The pullup or pulldown is disabled and the direction is set to output for this pin.

Source

pub fn reserved3(&self) -> RESERVED3_R

Bits 1:2 - 2:1] These are spare registers that are unused in the design.

Source

pub fn dcpin(&self) -> DCPIN_R

Bit 0 - 0:0] Decouple control pin select This control has relevance only when DCEN is set. When 0, PB[1] becomes the on-die digital regulator status (1 indicates the on-die digital regulator is active); when 1, PB[0] becomes the on-die digital regulator status. NOTE: PB[1] and PB[0] can also be controlled with other override features. In priority order for PB[1]: When POR/BOD test mode is active, PB[1] becomes the active low brown-out detected indicator. When DCEN is set and DCPIN is not set, PB[1] becomes the on-dir digital regulator status. In priority order for PB[0]: When POR/BOD test mode is active, PB[0] becomes the power-on-reset indicator. When DCEN and DCPIN are set, PB[0] becomes the on-die digital regulator status.

Source§

impl R<u32, Reg<u32, _P_EDGE_CTRL>>

Source

pub fn pdirc7(&self) -> PDIRC7_R

Bit 31 - 31:31] Port D bit 7 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc6(&self) -> PDIRC6_R

Bit 30 - 30:30] Port D bit 6 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc5(&self) -> PDIRC5_R

Bit 29 - 29:29] Port D bit 5 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc4(&self) -> PDIRC4_R

Bit 28 - 28:28] Port D bit 4 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc3(&self) -> PDIRC3_R

Bit 27 - 27:27] Port D bit 3 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc2(&self) -> PDIRC2_R

Bit 26 - 26:26] Port D bit 2 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc1(&self) -> PDIRC1_R

Bit 25 - 25:25] Port D bit 1 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pdirc0(&self) -> PDIRC0_R

Bit 24 - 24:24] Port D bit 0 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc7(&self) -> PCIRC7_R

Bit 23 - 23:23] Port C bit 7 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc6(&self) -> PCIRC6_R

Bit 22 - 22:22] Port C bit 6 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc5(&self) -> PCIRC5_R

Bit 21 - 21:21] Port C bit 5 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc4(&self) -> PCIRC4_R

Bit 20 - 20:20] Port C bit 4 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc3(&self) -> PCIRC3_R

Bit 19 - 19:19] Port C bit 3 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc2(&self) -> PCIRC2_R

Bit 18 - 18:18] Port C bit 2 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc1(&self) -> PCIRC1_R

Bit 17 - 17:17] Port C bit 1 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pcirc0(&self) -> PCIRC0_R

Bit 16 - 16:16] Port C bit 0 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc7(&self) -> PBIRC7_R

Bit 15 - 15:15] Port B bit 7 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc6(&self) -> PBIRC6_R

Bit 14 - 14:14] Port B bit 6 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc5(&self) -> PBIRC5_R

Bit 13 - 13:13] Port B bit 5 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc4(&self) -> PBIRC4_R

Bit 12 - 12:12] Port B bit 4 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc3(&self) -> PBIRC3_R

Bit 11 - 11:11] Port B bit 3 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc2(&self) -> PBIRC2_R

Bit 10 - 10:10] Port B bit 2 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc1(&self) -> PBIRC1_R

Bit 9 - 9:9] Port B bit 1 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pbirc0(&self) -> PBIRC0_R

Bit 8 - 8:8] Port B bit 0 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc7(&self) -> PAIRC7_R

Bit 7 - 7:7] Port A bit 7 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc6(&self) -> PAIRC6_R

Bit 6 - 6:6] Port A bit 6 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc5(&self) -> PAIRC5_R

Bit 5 - 5:5] Port A bit 5 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc4(&self) -> PAIRC4_R

Bit 4 - 4:4] Port A bit 4 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc3(&self) -> PAIRC3_R

Bit 3 - 3:3] Port A bit 3 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc2(&self) -> PAIRC2_R

Bit 2 - 2:2] Port A bit 2 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc1(&self) -> PAIRC1_R

Bit 1 - 1:1] Port A bit 1 interrupt request condition: 0: Rising 1: Falling edge

Source

pub fn pairc0(&self) -> PAIRC0_R

Bit 0 - 0:0] Port A bit 0 interrupt request condition: 0: Rising 1: Falling edge

Source§

impl R<u32, Reg<u32, _USB_CTRL>>

Source

pub fn reserved31(&self) -> RESERVED31_R

Bits 1:31

Source

pub fn usb_edge_ctl(&self) -> USB_EDGE_CTL_R

Bit 0 - 0:0] Used to set the edge which triggers the USB power up interrupt 0: Rising 1: Falling

Source§

impl R<u32, Reg<u32, _PI_IEN>>

Source

pub fn pdien7(&self) -> PDIEN7_R

Bit 31 - 31:31] Port D bit 7 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien6(&self) -> PDIEN6_R

Bit 30 - 30:30] Port D bit 6 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien5(&self) -> PDIEN5_R

Bit 29 - 29:29] Port D bit 5 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien4(&self) -> PDIEN4_R

Bit 28 - 28:28] Port D bit 4 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien3(&self) -> PDIEN3_R

Bit 27 - 27:27] Port D bit 3 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien2(&self) -> PDIEN2_R

Bit 26 - 26:26] Port D bit 2 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien1(&self) -> PDIEN1_R

Bit 25 - 25:25] Port D bit 1 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pdien0(&self) -> PDIEN0_R

Bit 24 - 24:24] Port D bit 0 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien7(&self) -> PCIEN7_R

Bit 23 - 23:23] Port C bit 7 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien6(&self) -> PCIEN6_R

Bit 22 - 22:22] Port C bit 6 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien5(&self) -> PCIEN5_R

Bit 21 - 21:21] Port C bit 5 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien4(&self) -> PCIEN4_R

Bit 20 - 20:20] Port C bit 4 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien3(&self) -> PCIEN3_R

Bit 19 - 19:19] Port C bit 3 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien2(&self) -> PCIEN2_R

Bit 18 - 18:18] Port C bit 2 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien1(&self) -> PCIEN1_R

Bit 17 - 17:17] Port C bit 1 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pcien0(&self) -> PCIEN0_R

Bit 16 - 16:16] Port C bit 0 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien7(&self) -> PBIEN7_R

Bit 15 - 15:15] Port B bit 7 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien6(&self) -> PBIEN6_R

Bit 14 - 14:14] Port B bit 6 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien5(&self) -> PBIEN5_R

Bit 13 - 13:13] Port B bit 5 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien4(&self) -> PBIEN4_R

Bit 12 - 12:12] Port B bit 4 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien3(&self) -> PBIEN3_R

Bit 11 - 11:11] Port B bit 3 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien2(&self) -> PBIEN2_R

Bit 10 - 10:10] Port B bit 2 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien1(&self) -> PBIEN1_R

Bit 9 - 9:9] Port B bit 1 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn pbien0(&self) -> PBIEN0_R

Bit 8 - 8:8] Port B bit 0 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien7(&self) -> PAIEN7_R

Bit 7 - 7:7] Port A bit 7 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien6(&self) -> PAIEN6_R

Bit 6 - 6:6] Port A bit 6 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien5(&self) -> PAIEN5_R

Bit 5 - 5:5] Port A bit 5 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien4(&self) -> PAIEN4_R

Bit 4 - 4:4] Port A bit 4 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien3(&self) -> PAIEN3_R

Bit 3 - 3:3] Port A bit 3 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien2(&self) -> PAIEN2_R

Bit 2 - 2:2] Port A bit 2 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien1(&self) -> PAIEN1_R

Bit 1 - 1:1] Port A bit 1 interrupt enable: 1: Enabled 2: Disabled

Source

pub fn paien0(&self) -> PAIEN0_R

Bit 0 - 0:0] Port A bit 0 interrupt enable: 1: Enabled 2: Disabled

Source§

impl R<u32, Reg<u32, _IRQ_DETECT_ACK>>

Source

pub fn pdiack7(&self) -> PDIACK7_R

Bit 31 - 31:31] Port D bit 7 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack6(&self) -> PDIACK6_R

Bit 30 - 30:30] Port D bit 6 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack5(&self) -> PDIACK5_R

Bit 29 - 29:29] Port D bit 5 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack4(&self) -> PDIACK4_R

Bit 28 - 28:28] Port D bit 4 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack3(&self) -> PDIACK3_R

Bit 27 - 27:27] Port D bit 3 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack2(&self) -> PDIACK2_R

Bit 26 - 26:26] Port D bit 2 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pdiack1(&self) -> PDIACK1_R

Bit 25 - 25:25] Port D bit 1 masked interrupt status: 1: Detected0: Not detected

Source

pub fn pdiack0(&self) -> PDIACK0_R

Bit 24 - 24:24] Port D bit 0 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack7(&self) -> PCIACK7_R

Bit 23 - 23:23] Port C bit 7 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack6(&self) -> PCIACK6_R

Bit 22 - 22:22] Port C bit 6 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack5(&self) -> PCIACK5_R

Bit 21 - 21:21] Port C bit 5 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack4(&self) -> PCIACK4_R

Bit 20 - 20:20] Port C bit 4 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack3(&self) -> PCIACK3_R

Bit 19 - 19:19] Port C bit 3 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack2(&self) -> PCIACK2_R

Bit 18 - 18:18] Port C bit 2 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack1(&self) -> PCIACK1_R

Bit 17 - 17:17] Port C bit 1 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pciack0(&self) -> PCIACK0_R

Bit 16 - 16:16] Port C bit 0 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack7(&self) -> PBIACK7_R

Bit 15 - 15:15] Port B bit 7 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack6(&self) -> PBIACK6_R

Bit 14 - 14:14] Port B bit 6 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack5(&self) -> PBIACK5_R

Bit 13 - 13:13] Port B bit 5 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack4(&self) -> PBIACK4_R

Bit 12 - 12:12] Port B bit 4 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack3(&self) -> PBIACK3_R

Bit 11 - 11:11] Port B bit 3 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack2(&self) -> PBIACK2_R

Bit 10 - 10:10] Port B bit 2 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack1(&self) -> PBIACK1_R

Bit 9 - 9:9] Port B bit 1 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn pbiack0(&self) -> PBIACK0_R

Bit 8 - 8:8] Port B bit 0 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack7(&self) -> PAIACK7_R

Bit 7 - 7:7] Port A bit 7 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack6(&self) -> PAIACK6_R

Bit 6 - 6:6] Port A bit 6 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack5(&self) -> PAIACK5_R

Bit 5 - 5:5] Port A bit 5 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack4(&self) -> PAIACK4_R

Bit 4 - 4:4] Port A bit 4 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack3(&self) -> PAIACK3_R

Bit 3 - 3:3] Port A bit 3 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack2(&self) -> PAIACK2_R

Bit 2 - 2:2] Port A bit 2 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack1(&self) -> PAIACK1_R

Bit 1 - 1:1] Port A bit 1 masked interrupt status: 1: Detected 0: Not detected

Source

pub fn paiack0(&self) -> PAIACK0_R

Bit 0 - 0:0] Port A bit 0 masked interrupt status: 1: Detected 0: Not detected

Source§

impl R<u32, Reg<u32, _USB_IRQ_ACK>>

Source

pub fn reserved31(&self) -> RESERVED31_R

Bits 1:31

Source

pub fn usback(&self) -> USBACK_R

Bit 0 - 0:0] USB masked interrupt status: 1: Detected 0: Not detected

Source§

impl R<u32, Reg<u32, _IRQ_DETECT_UNMASK>>

Source

pub fn pdiack7(&self) -> PDIACK7_R

Bit 31 - 31:31] Port D bit 7 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack6(&self) -> PDIACK6_R

Bit 30 - 30:30] Port D bit 6 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack5(&self) -> PDIACK5_R

Bit 29 - 29:29] Port D bit 5 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack4(&self) -> PDIACK4_R

Bit 28 - 28:28] Port D bit 4 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack3(&self) -> PDIACK3_R

Bit 27 - 27:27] Port D bit 3 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack2(&self) -> PDIACK2_R

Bit 26 - 26:26] Port D bit 2 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack1(&self) -> PDIACK1_R

Bit 25 - 25:25] Port D bit 1 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pdiack0(&self) -> PDIACK0_R

Bit 24 - 24:24] Port D bit 0 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack7(&self) -> PCIACK7_R

Bit 23 - 23:23] Port C bit 7 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack6(&self) -> PCIACK6_R

Bit 22 - 22:22] Port C bit 6 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack5(&self) -> PCIACK5_R

Bit 21 - 21:21] Port C bit 5 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack4(&self) -> PCIACK4_R

Bit 20 - 20:20] Port C bit 4 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack3(&self) -> PCIACK3_R

Bit 19 - 19:19] Port C bit 3 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack2(&self) -> PCIACK2_R

Bit 18 - 18:18] Port C bit 2 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack1(&self) -> PCIACK1_R

Bit 17 - 17:17] Port C bit 1 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pciack0(&self) -> PCIACK0_R

Bit 16 - 16:16] Port C bit 0 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack7(&self) -> PBIACK7_R

Bit 15 - 15:15] Port B bit 7 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack6(&self) -> PBIACK6_R

Bit 14 - 14:14] Port B bit 6 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack5(&self) -> PBIACK5_R

Bit 13 - 13:13] Port B bit 5 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack4(&self) -> PBIACK4_R

Bit 12 - 12:12] Port B bit 4 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack3(&self) -> PBIACK3_R

Bit 11 - 11:11] Port B bit 3 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack2(&self) -> PBIACK2_R

Bit 10 - 10:10] Port B bit 2 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack1(&self) -> PBIACK1_R

Bit 9 - 9:9] Port B bit 1 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn pbiack0(&self) -> PBIACK0_R

Bit 8 - 8:8] Port B bit 0 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack7(&self) -> PAIACK7_R

Bit 7 - 7:7] Port A bit 7 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack6(&self) -> PAIACK6_R

Bit 6 - 6:6] Port A bit 6 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack5(&self) -> PAIACK5_R

Bit 5 - 5:5] Port A bit 5 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack4(&self) -> PAIACK4_R

Bit 4 - 4:4] Port A bit 4 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack3(&self) -> PAIACK3_R

Bit 3 - 3:3] Port A bit 3 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack2(&self) -> PAIACK2_R

Bit 2 - 2:2] Port A bit 2 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack1(&self) -> PAIACK1_R

Bit 1 - 1:1] Port A bit 1 unmasked interrupt status: 1: Detected 0: Undetected

Source

pub fn paiack0(&self) -> PAIACK0_R

Bit 0 - 0:0] Port A bit 0 unmasked interrupt status: 1: Detected 0: Undetected

Source§

impl R<u32, Reg<u32, _STAT>>

Source

pub fn reserved11(&self) -> RESERVED11_R

Bits 21:31 - 31:21] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn dmachans(&self) -> DMACHANS_R

Bits 16:20 - 20:16] Available uDMA channels minus 1 This field contains a value equal to the number of uDMA channels the uDMA controller is configured to use, minus one. The value of 0x1F corresponds to 32 uDMA channels.

Source

pub fn reserved8(&self) -> RESERVED8_R

Bits 8:15 - 15:8] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn state(&self) -> STATE_R

Bits 4:7 - 7:4] Control state machine status This field shows the current status of the control state-machine. Status can be one of the following: 0x0: Idle 0x1: Reading channel controller data 0x2: Reading source end pointer 0x3: Reading destination end pointer 0x4: Reading source data 0x5: Writing destination data 0x6: Waiting for uDMA request to clear 0x7: Writing channel controller data 0x8: Stalled 0x9: Done 0xA-0xF: Undefined

Source

pub fn reserved3(&self) -> RESERVED3_R

Bits 1:3 - 3:1] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn masten(&self) -> MASTEN_R

Bit 0 - 0:0] Master enable status 0: The uDMA controller is disabled. 1: The uDMA controller is enabled.

Source§

impl R<u32, Reg<u32, _CFG>>

Source

pub fn reserved31(&self) -> RESERVED31_R

Bits 1:31 - 31:1] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn masten(&self) -> MASTEN_R

Bit 0 - 0:0] Controller master enable 0: Disables the uDMA controller. 1: Enables the uDMA controller.

Source§

impl R<u32, Reg<u32, _CTLBASE>>

Source

pub fn addr(&self) -> ADDR_R

Bits 10:31 - 31:10] Channel control base address This field contains the pointer to the base address of the channel control table. The base address must be 1024-byte alligned.

Source

pub fn reserved10(&self) -> RESERVED10_R

Bits 0:9 - 9:0] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source§

impl R<u32, Reg<u32, _ALTBASE>>

Source

pub fn addr(&self) -> ADDR_R

Bits 0:31 - 31:0] Alternate channel address pointer This field provides the base address of the alternate channel control structures.

Source§

impl R<u32, Reg<u32, _WAITSTAT>>

Source

pub fn waitreq(&self) -> WAITREQ_R

Bits 0:31 - 31:0] Channel [n] wait status These bits provide the tchannel wait-on-request status. Bit 0 corresponds to channel 0. 1: The corresponding channel is waiting on a request. 0: The corresponding channel is not waiting on a request.

Source§

impl R<u32, Reg<u32, _SWREQ>>

Source

pub fn swreq(&self) -> SWREQ_R

Bits 0:31 - 31:0] Channel [n] software request These bits generate software requests. Bit 0 corresponds to channel 0. 1: Generate a software request for the corresponding channel 0: No request generated These bits are automatically cleared when the software request has been completed.

Source§

impl R<u32, Reg<u32, _USEBURSTSET>>

Source

pub fn set(&self) -> SET_R

Bits 0:31 - 31:0] Channel [n] useburst set 0: uDMA channel [n] responds to single or burst requests. 1: uDMA channel [n] responds only to burst requests. Bit 0 corresponds to channel 0. This bit is automatically cleared as described above. A bit can also be manually cleared by setting the corresponding CLR[n] bit in the DMAUSEBURSTCLR register.

Source§

impl R<u32, Reg<u32, _USEBURSTCLR>>

Source

pub fn clr(&self) -> CLR_R

Bits 0:31 - 31:0] Channel [n] useburst clear 0: No effect 1: Setting a bit clears the corresponding SET[n] bit in the DMAUSEBURSTSET register meaning that uDMA channel [n] responds to single and burst requests.

Source§

impl R<u32, Reg<u32, _REQMASKSET>>

Source

pub fn set(&self) -> SET_R

Bits 0:31 - 31:0] Channel [n] request mask set 0: The peripheral associated with channel [n] is enabled to request uDMA transfers 1: The peripheral associated with channel [n] is not able to request uDMA transfers. Channel [n] may be used for software-initiated transfers. Bit 0 corresponds to channel 0. A bit can only be cleared by setting the corresponding CLR[n] bit in the DMAREQMASKCLR register.

Source§

impl R<u32, Reg<u32, _REQMASKCLR>>

Source

pub fn clr(&self) -> CLR_R

Bits 0:31 - 31:0] Channel [n] request mask clear 0: No effect 1: Setting a bit clears the corresponding SET[n] bit in the DMAREQMASKSET register meaning that the peripheral associated with channel [n] is enabled to request uDMA transfers.

Source§

impl R<u32, Reg<u32, _ENASET>>

Source

pub fn set(&self) -> SET_R

Bits 0:31 - 31:0] Channel [n] enable set 0: uDMA channel [n] is disabled 1: uDMA channel [n] is enabled Bit 0 corresponds to channel 0. A bit can only be cleared by setting the corresponding CLR[n] bit in the DMAENACLR register.

Source§

impl R<u32, Reg<u32, _ENACLR>>

Source

pub fn clr(&self) -> CLR_R

Bits 0:31 - 31:0] Channel [n] enable clear 0: No effect 1: Setting a bit clears the corresponding SET[n] bit in the DMAENASET register meaning that channel [n] is disabled for uDMA transfers. Note: The controller disables a channel when it completes the uDMA cycle.

Source§

impl R<u32, Reg<u32, _ALTSET>>

Source

pub fn set(&self) -> SET_R

Bits 0:31 - 31:0] Channel [n] alternate set 0: uDMA channel [n] is using the primary control structure 1: uDMA channel [n] is using the alternate control structure Bit 0 corresponds to channel 0. A bit can only be cleared by setting the corresponding CLR[n] bit in the DMAALTCLR register. Note: For Ping-Pong and Scatter-Gather cycle types, the uDMA controller automatically sets these bits to select the alternate channel control data structure.

Source§

impl R<u32, Reg<u32, _ALTCLR>>

Source

pub fn clr(&self) -> CLR_R

Bits 0:31 - 31:0] Channel [n] alternate clear 0: No effect 1: Setting a bit clears the corresponding SET[n] bit in the DMAALTSET register meaning that channel [n] is using the primary control structure. Note: For Ping-Pong and Scatter-Gather cycle types, the uDMA controller automatically sets these bits to select the alternate channel control data structure.

Source§

impl R<u32, Reg<u32, _PRIOSET>>

Source

pub fn set(&self) -> SET_R

Bits 0:31 - 31:0] Channel [n] priority set 0: uDMA channel [n] is using the default priority level 1: uDMA channel [n] is using a high priority level Bit 0 corresponds to channel 0. A bit can only be cleared by setting the corresponding CLR[n] bit in the DMAPRIOCLR register.

Source§

impl R<u32, Reg<u32, _PRIOCLR>>

Source

pub fn clr(&self) -> CLR_R

Bits 0:31 - 31:0] Channel [n] priority clear 0: No effect 1: Setting a bit clears the corresponding SET[n] bit in the DMAPRIOSET register meaning that channel [n] is using the default priority level.

Source§

impl R<u32, Reg<u32, _ERRCLR>>

Source

pub fn reserved31(&self) -> RESERVED31_R

Bits 1:31 - 31:1] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn errclr(&self) -> ERRCLR_R

Bit 0 - 0:0] uDMA bus error status 0: No bus error is pending 1: A bus error is pending This bit is cleared by writing 1 to it.

Source§

impl R<u32, Reg<u32, _CHASGN>>

Source

pub fn chasgn(&self) -> CHASGN_R

Bits 0:31 - 31:0] Channel [n] assignment select 0: Use the primary channel assignment 1: Use the secondary channel assignment

Source§

impl R<u32, Reg<u32, _CHIS>>

Source

pub fn chis(&self) -> CHIS_R

Bits 0:31 - 31:0] Channel [n] interrupt status 0: The corresponding uDMA channel has not caused an interrupt. 1: The corresponding uDMA channel has caused an interrupt. This bit is cleared by writing 1 to it.

Source§

impl R<u32, Reg<u32, _CHMAP0>>

Source

pub fn ch7sel(&self) -> CH7SEL_R

Bits 28:31 - 31:28] uDMA channel 7 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch6sel(&self) -> CH6SEL_R

Bits 24:27 - 27:24] uDMA channel 6 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch5sel(&self) -> CH5SEL_R

Bits 20:23 - 23:20] uDMA channel 5 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch4sel(&self) -> CH4SEL_R

Bits 16:19 - 19:16] uDMA channel 4 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch3sel(&self) -> CH3SEL_R

Bits 12:15 - 15:12] uDMA channel 3 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch2sel(&self) -> CH2SEL_R

Bits 8:11 - 11:8] uDMA channel 2 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch1sel(&self) -> CH1SEL_R

Bits 4:7 - 7:4] uDMA channel 1 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch0sel(&self) -> CH0SEL_R

Bits 0:3 - 3:0] uDMA channel 0 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source§

impl R<u32, Reg<u32, _CHMAP1>>

Source

pub fn ch15sel(&self) -> CH15SEL_R

Bits 28:31 - 31:28] uDMA channel 15 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch14sel(&self) -> CH14SEL_R

Bits 24:27 - 27:24] uDMA channel 14 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch13sel(&self) -> CH13SEL_R

Bits 20:23 - 23:20] uDMA channel 13 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch12sel(&self) -> CH12SEL_R

Bits 16:19 - 19:16] uDMA channel 12 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch11sel(&self) -> CH11SEL_R

Bits 12:15 - 15:12] uDMA channel 11 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch10sel(&self) -> CH10SEL_R

Bits 8:11 - 11:8] uDMA channel 10 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch9sel(&self) -> CH9SEL_R

Bits 4:7 - 7:4] uDMA channel 9 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch8sel(&self) -> CH8SEL_R

Bits 0:3 - 3:0] uDMA channel 8 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source§

impl R<u32, Reg<u32, _CHMAP2>>

Source

pub fn ch23sel(&self) -> CH23SEL_R

Bits 28:31 - 31:28] uDMA channel 23 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch22sel(&self) -> CH22SEL_R

Bits 24:27 - 27:24] uDMA channel 22 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch21sel(&self) -> CH21SEL_R

Bits 20:23 - 23:20] uDMA channel 21 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch20sel(&self) -> CH20SEL_R

Bits 16:19 - 19:16] uDMA channel 20 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch19sel(&self) -> CH19SEL_R

Bits 12:15 - 15:12] uDMA channel 19 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch18sel(&self) -> CH18SEL_R

Bits 8:11 - 11:8] uDMA channel 18 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch17sel(&self) -> CH17SEL_R

Bits 4:7 - 7:4] uDMA channel 17 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch16sel(&self) -> CH16SEL_R

Bits 0:3 - 3:0] uDMA channel 16 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source§

impl R<u32, Reg<u32, _CHMAP3>>

Source

pub fn ch31sel(&self) -> CH31SEL_R

Bits 28:31 - 31:28] uDMA channel 31 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch30sel(&self) -> CH30SEL_R

Bits 24:27 - 27:24] uDMA channel 30 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch29sel(&self) -> CH29SEL_R

Bits 20:23 - 23:20] uDMA channel 29 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch28sel(&self) -> CH28SEL_R

Bits 16:19 - 19:16] uDMA channel 28 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch27sel(&self) -> CH27SEL_R

Bits 12:15 - 15:12] uDMA channel 27 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch26sel(&self) -> CH26SEL_R

Bits 8:11 - 11:8] uDMA channel 26 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch25sel(&self) -> CH25SEL_R

Bits 4:7 - 7:4] uDMA channel 25 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source

pub fn ch24sel(&self) -> CH24SEL_R

Bits 0:3 - 3:0] uDMA channel 24 source select See section titled “Channel Assignments” in Micro Direct Memory Access chapter.

Source§

impl R<u32, Reg<u32, _LPBKGPT>>

Source

pub fn reserved1(&self) -> RESERVED1_R

Bits 22:31 - 31:22] Reserved

Source

pub fn lpbk32gpt3(&self) -> LPBK32GPT3_R

Bits 20:21 - 21:20] GPTimer3 32-bit RTC loopback modes 00: Normal operation 01: GPT0 GPTimerA PWM connected to GPT3 capture 10: GPT0 capture connected to GPT3 PWM GPTimer A 11: Reserved, defaults to normal operation

Source

pub fn lpbk32gpt2(&self) -> LPBK32GPT2_R

Bits 18:19 - 19:18] GPTimer2 32-bit RTC loopback modes 00: Normal operation 01: GPT0 Timer A PWM connected to GPT2 capture 10: GPT0 capture connected to GPT2 PWM Timer A 11: Reserved, defaults to normal operation

Source

pub fn lpbk32gpt1(&self) -> LPBK32GPT1_R

Bits 16:17 - 17:16] GPTimer1 32-bit RTC loopback modes 00: Normal operation 01: GPT0 timerA PWM connected to GPT1 capture 10: GPT0 capture connected to GPT1 PWM Timer A 11: Reserved, defaults to normal operation

Source

pub fn reserved2(&self) -> RESERVED2_R

Bits 8:15 - 15:8] Reserved

Source

pub fn lpbk16gpt3(&self) -> LPBK16GPT3_R

Bits 6:7 - 7:6] GPTimer3 16-bit loopback modes 00: Normal operation 01: Timer A PWM connected to Timer B capture 10: Timer A capture connected to Timer B PWM 11: Reserved, defaults to normal operation

Source

pub fn lpbk16gpt2(&self) -> LPBK16GPT2_R

Bits 4:5 - 5:4] GPTimer2 16-bit loopback modes 00: Normal operation 01: Timer A PWM connected to Timer B capture 10: Timer A capture connected to Timer B PWM 11: Reserved, defaults to normal operation

Source

pub fn lpbk16gpt1(&self) -> LPBK16GPT1_R

Bits 2:3 - 3:2] GPTimer1 16-bit loopback modes 00: Normal operation 01: Timer A PWM connected to Timer B capture 10: Timer A capture connected to Timer B PWM 11: Reserved, defaults to normal operation

Source

pub fn lpbk16gpt0(&self) -> LPBK16GPT0_R

Bits 0:1 - 1:0] GPTimer0 16-bit loopback modes 00: Normal operation 01: Timer A PWM connected to Timer B capture 10: Timer A capture connected to Timer B PWM 11: Reserved, defaults to normal operation

Source§

impl R<u32, Reg<u32, _LPBKUART>>

Source

pub fn lpbkuart(&self) -> LPBKUART_R

Bit 0 - 0:0] UART0/1 loopback mode 0: Normal operation 1: UART0 TX (RX) connected to UART1 RX (TX)

Source§

impl R<u32, Reg<u32, _LPBKI2C>>

Source

pub fn lpbki2c(&self) -> LPBKI2C_R

Bit 0 - 0:0] I2C0 Master/slave loopback mode 0: Normal mode

Source§

impl R<u32, Reg<u32, _PTME1>>

Source

pub fn reserved1(&self) -> RESERVED1_R

Bits 10:31 - 31:10] Reserved

Source

pub fn uart1tme(&self) -> UART1TME_R

Bit 9 - 9:9] UART1 test mode enable

Source

pub fn uart0tme(&self) -> UART0TME_R

Bit 8 - 8:8] UART0 test mode enable

Source

pub fn reserved2(&self) -> RESERVED2_R

Bits 0:7 - 7:0] Reserved

Source§

impl R<u32, Reg<u32, _PTME2>>

Source

pub fn reserved1(&self) -> RESERVED1_R

Bits 20:31 - 31:20] Reserved

Source

pub fn t3tme(&self) -> T3TME_R

Bit 19 - 19:19] Timer3 test mode enable

Source

pub fn mttme(&self) -> MTTME_R

Bit 18 - 18:18] MacTimer test mode enable

Source

pub fn t1tme(&self) -> T1TME_R

Bit 17 - 17:17] Timer1 test mode enable

Source

pub fn t0tme(&self) -> T0TME_R

Bit 16 - 16:16] Timer0 test mode enable

Source

pub fn reserved2(&self) -> RESERVED2_R

Bits 1:15 - 15:1] Reserved

Source

pub fn i2c0tme(&self) -> I2C0TME_R

Bit 0 - 0:0] I2C 0 test mode enable

Source§

impl R<u32, Reg<u32, _GPT>>

Source

pub fn reserved1(&self) -> RESERVED1_R

Bits 9:31 - 31:9] Reserved

Source

pub fn gptidoe(&self) -> GPTIDOE_R

Bit 8 - 8:8] GPTimer increment/decrement override enable

Source

pub fn reserved2(&self) -> RESERVED2_R

Bits 5:7 - 7:5] Reserved

Source

pub fn gptidov(&self) -> GPTIDOV_R

Bits 0:4 - 4:0] GPTimer increment/decrement override value

Source§

impl R<u32, Reg<u32, _APTR>>

Source

pub fn aptr(&self) -> APTR_R

Bits 0:10 - 10:0] This register specifies the location of vector A within the PKA RAM. Vectors are identified through the location of their least-significant 32-bit word. Note that bit [0] must be zero to ensure that the vector starts at an 8-byte boundary.

Source§

impl R<u32, Reg<u32, _BPTR>>

Source

pub fn bptr(&self) -> BPTR_R

Bits 0:10 - 10:0] This register specifies the location of vector B within the PKA RAM. Vectors are identified through the location of their least-significant 32-bit word. Note that bit [0] must be zero to ensure that the vector starts at an 8-byte boundary.

Source§

impl R<u32, Reg<u32, _CPTR>>

Source

pub fn cptr(&self) -> CPTR_R

Bits 0:10 - 10:0] This register specifies the location of vector C within the PKA RAM. Vectors are identified through the location of their least-significant 32-bit word. Note that bit [0] must be zero to ensure that the vector starts at an 8-byte boundary.

Source§

impl R<u32, Reg<u32, _DPTR>>

Source

pub fn dptr(&self) -> DPTR_R

Bits 0:10 - 10:0] This register specifies the location of vector D within the PKA RAM. Vectors are identified through the location of their least-significant 32-bit word. Note that bit [0] must be zero to ensure that the vector starts at an 8-byte boundary.

Source§

impl R<u32, Reg<u32, _ALENGTH>>

Source

pub fn alength(&self) -> ALENGTH_R

Bits 0:8 - 8:0] This register specifies the length (in 32-bit words) of Vector A.

Source§

impl R<u32, Reg<u32, _BLENGTH>>

Source

pub fn blength(&self) -> BLENGTH_R

Bits 0:8 - 8:0] This register specifies the length (in 32-bit words) of Vector B.

Source§

impl R<u32, Reg<u32, _SHIFT>>

Source

pub fn num_bits_to_shift(&self) -> NUM_BITS_TO_SHIFT_R

Bits 0:4 - 4:0] This register specifies the number of bits to shift the input vector (in the range 0-31) during a Rshift or Lshift operation.

Source§

impl R<u32, Reg<u32, _FUNCTION>>

Source

pub fn reserved1(&self) -> RESERVED1_R

Bits 25:31 - 31:25] Set to zero on write, ignore on read

Source

pub fn stall_result(&self) -> STALL_RESULT_R

Bit 24 - 24:24] When written with a 1b, updating of the PKA_COMPARE, PKA_MSW and PKA_DIVMSW registers, as well as resetting the run bit is stalled beyond the point that a running operation is actually finished. Use this to allow software enough time to read results from a previous operation when the newly started operation is known to take only a short amount of time. If a result is waiting, the result registers is updated and the run bit is reset in the clock cycle following writing the stall result bit back to 0b. The Stall result function may only be used for basic PKCP operations.

Source

pub fn reserved2(&self) -> RESERVED2_R

Bits 16:23 - 23:16] Set to zero on write, ignore on read

Source

pub fn run(&self) -> RUN_R

Bit 15 - 15:15] The host sets this bit to instruct the PKA module to begin processing the basic PKCP or complex sequencer operation. This bit is reset low automatically when the operation is complete. The complement of this bit is output as interrupts[1]. After a reset, the run bit is always set to 1b. Depending on the option, program ROM or program RAM, the following applies: Program ROM - The first sequencer instruction sets the bit to 0b. This is done immediately after the hardware reset is released. Program RAM - The sequencer must set the bit to 0b. As a valid firmware may not have been loaded, the sequencer is held in software reset after the hardware reset is released (the reset bit in PKA_SEQ_CRTL is set to 1b). After the FW image is loaded and the Reset bit is cleared, the sequencer starts to execute the FW. The first instruction clears the run bit. In both cases a few clock cycles are needed before the first instruction is executed and the run bit state has been propagated.

Source

pub fn sequencer_operations(&self) -> SEQUENCER_OPERATIONS_R

Bits 12:14 - 14:12] These bits select the complex sequencer operation to perform: 000b: None 001b: ExpMod-CRT 010b: ExpMod-ACT4 (compatible with EIP2315) 011b: ECC-ADD (if available in firmware, otherwise reserved) 100b: ExpMod-ACT2 (compatible with EIP2316) 101b: ECC-MUL (if available in firmware, otherwise reserved) 110b: ExpMod-variable 111b: ModInv (if available in firmware, otherwise reserved) The encoding of these operations is determined by sequencer firmware.

Source

pub fn copy(&self) -> COPY_R

Bit 11 - 11:11] Perform copy operation

Source

pub fn compare(&self) -> COMPARE_R

Bit 10 - 10:10] Perform compare operation

Source

pub fn modulo(&self) -> MODULO_R

Bit 9 - 9:9] Perform modulo operation

Source

pub fn divide(&self) -> DIVIDE_R

Bit 8 - 8:8] Perform divide operation

Source

pub fn lshift(&self) -> LSHIFT_R

Bit 7 - 7:7] Perform left shift operation

Source

pub fn rshift(&self) -> RSHIFT_R

Bit 6 - 6:6] Perform right shift operation

Source

pub fn subtract(&self) -> SUBTRACT_R

Bit 5 - 5:5] Perform subtract operation

Source

pub fn add(&self) -> ADD_R

Bit 4 - 4:4] Perform add operation

Source

pub fn ms_one(&self) -> MS_ONE_R

Bit 3 - 3:3] Loads the location of the Most Significant one bit within the result word indicated in the PKA_MSW register into bits [4:0] of the PKA_DIVMSW register - can only be used with basic PKCP operations, except for Divide, Modulo and Compare.

Source

pub fn reserved3(&self) -> RESERVED3_R

Bit 2 - 2:2] Set to zero on write, ignore on read

Source

pub fn addsub(&self) -> ADDSUB_R

Bit 1 - 1:1] Perform combined add/subtract operation

Source

pub fn multiply(&self) -> MULTIPLY_R

Bit 0 - 0:0] Perform multiply operation

Source§

impl R<u32, Reg<u32, _COMPARE>>

Source

pub fn a_greater_than_b(&self) -> A_GREATER_THAN_B_R

Bit 2 - 2:2] Vector_A is greater than Vector_B

Source

pub fn a_less_than_b(&self) -> A_LESS_THAN_B_R

Bit 1 - 1:1] Vector_A is less than Vector_B

Source

pub fn a_equals_b(&self) -> A_EQUALS_B_R

Bit 0 - 0:0] Vector_A is equal to Vector_B

Source§

impl R<u32, Reg<u32, _MSW>>

Source

pub fn reserved1(&self) -> RESERVED1_R

Bits 16:31 - 31:16] Ignore on read

Source

pub fn result_is_zero(&self) -> RESULT_IS_ZERO_R

Bit 15 - 15:15] The result vector is all zeroes, ignore the address returned in bits [10:0]

Source

pub fn reserved2(&self) -> RESERVED2_R

Bits 11:14 - 14:11] Ignore on read

Source

pub fn msw_address(&self) -> MSW_ADDRESS_R

Bits 0:10 - 10:0] Address of the most-significant nonzero 32-bit word of the result vector in PKA RAM

Source§

impl R<u32, Reg<u32, _DIVMSW>>

Source

pub fn reserved1(&self) -> RESERVED1_R

Bits 16:31 - 31:16] Ignore on read

Source

pub fn result_is_zero(&self) -> RESULT_IS_ZERO_R

Bit 15 - 15:15] The result vector is all zeroes, ignore the address returned in bits [10:0]

Source

pub fn reserved2(&self) -> RESERVED2_R

Bits 11:14 - 14:11] Ignore on read

Source

pub fn msw_address(&self) -> MSW_ADDRESS_R

Bits 0:10 - 10:0] Address of the most significant nonzero 32-bit word of the remainder result vector in PKA RAM

Source§

impl R<u32, Reg<u32, _SEQ_CTRL>>

Source

pub fn reset(&self) -> RESET_R

Bit 31 - 31:31] Option program ROM: Reset value = 0. Read/Write, reset value 0b (ZERO). Writing 1b resets the sequencer, write to 0b to restart operations again. As the reset value is 0b, the sequencer will automatically start operations executing from program ROM. This bit should always be written with zero and ignored when reading this register. Option Program RAM: Reset value =1. Read/Write, reset value 1b (ONE). When 1b, the sequencer is held in a reset state and the PKA_PROGRAM area is accessible for loading the sequencer program (while the PKA_DATA_RAM is inaccessible), write to 0b to (re)start sequencer operations and disable PKA_PROGRAM area accessibility (also enables the PKA_DATA_RAM accesses). Resetting the sequencer (in order to load other firmware) should only be done when the PKA Engine is not performing any operations (i.e. the run bit in the PKA_FUNCTION register should be zero).

Source

pub fn sequencer_status(&self) -> SEQUENCER_STATUS_R

Bits 8:15 - 15:8] These read-only bits can be used by the sequencer to communicate status to the outside world. Bit [8] is also used as sequencer interrupt, with the complement of this bit ORed into the run bit in PKA_FUNCTION. This field should always be written with zeroes and ignored when reading this register.

Source

pub fn sw_control_status(&self) -> SW_CONTROL_STATUS_R

Bits 0:7 - 7:0] These bits can be used by software to trigger sequencer operations. External logic can set these bits by writing 1b, cannot reset them by writing 0b. The sequencer can reset these bits by writing 0b, cannot set them by writing 1b. Setting the run bit in PKA_FUNCTION together with a nonzero sequencer operations field automatically sets bit [0] here. This field should always be written with zeroes and ignored when reading this register.

Source§

impl R<u32, Reg<u32, _OPTIONS>>

Source

pub fn first_lnme_fifo_depth(&self) -> FIRST_LNME_FIFO_DEPTH_R

Bits 24:31 - 31:24] Number of words in the first LNME’s FIFO RAM Should be ignored if LNME configuration is 0. The contents of this field indicate the actual depth as selected by the LNME FIFO RAM size strap input, fifo_size_sel. Note: Reset value is undefined

Source

pub fn reserved1(&self) -> RESERVED1_R

Bits 22:23 - 23:22] Ignore on read

Source

pub fn first_lnme_nr_of_pes(&self) -> FIRST_LNME_NR_OF_PES_R

Bits 16:21 - 21:16] Number of processing elements in the pipeline of the first LNME Should be ignored if LNME configuration is 0. Note: Reset value is undefined.

Source

pub fn reserved2(&self) -> RESERVED2_R

Bits 13:15 - 15:13] Ignore on read

Source

pub fn mmm3a(&self) -> MMM3A_R

Bit 12 - 12:12] Reserved for a future functional extension to the LNME Always 0b

Source

pub fn int_masking(&self) -> INT_MASKING_R

Bit 11 - 11:11] Value 0b indicates that the main interrupt output (bit [1] of the interrupts output bus) is the direct complement of the run bit in the PKA_CONTROL register, value 1b indicates that interrupt masking logic is present for this output. Note: Reset value is undefined

Source

pub fn protection_option(&self) -> PROTECTION_OPTION_R

Bits 8:10 - 10:8] Value 0 indicates no additional protection against side channel attacks, value 1 indicates the SCAP option, value 3 indicates the PROT option; other values are reserved. Note: Reset value is undefined

Source

pub fn program_ram(&self) -> PROGRAM_RAM_R

Bit 7 - 7:7] Value 1b indicates sequencer program storage in RAM, value 0b in ROM. Note: Reset value is undefined

Source

pub fn sequencer_configuration(&self) -> SEQUENCER_CONFIGURATION_R

Bits 5:6 - 6:5] Value 1 indicates a standard sequencer; other values are reserved.

Source

pub fn lnme_configuration(&self) -> LNME_CONFIGURATION_R

Bits 2:4 - 4:2] Value 0 indicates NO LNME, value 1 indicates one standard LNME (with alpha = 32, beta = 8); other values reserved. Note: Reset value is undefined

Source

pub fn pkcp_configuration(&self) -> PKCP_CONFIGURATION_R

Bits 0:1 - 1:0] Value 1 indicates a PKCP with a 16x16 multiplier, value 2 indicates a PKCP with a 32x32 multiplier, other values reserved. Note: Reset value is undefined.

Source§

impl R<u32, Reg<u32, _SW_REV>>

Source

pub fn fw_capabilities(&self) -> FW_CAPABILITIES_R

Bits 28:31 - 31:28] 4-bit binary encoding for the functionality implemented in the firmware. Value 0 indicates basic ModExp with/without CRT. Value 1 adds Modular Inversion, value 2 adds Modular Inversion and ECC operations. Values 3-15 are reserved.

Source

pub fn major_fw_revision(&self) -> MAJOR_FW_REVISION_R

Bits 24:27 - 27:24] 4-bit binary encoding of the major firmware revision number

Source

pub fn minor_fw_revision(&self) -> MINOR_FW_REVISION_R

Bits 20:23 - 23:20] 4-bit binary encoding of the minor firmware revision number

Source

pub fn fw_patch_level(&self) -> FW_PATCH_LEVEL_R

Bits 16:19 - 19:16] 4-bit binary encoding of the firmware patch level, initial release will carry value zero Patches are used to remove bugs without changing the functionality or interface of a module.

Source§

impl R<u32, Reg<u32, _REVISION>>

Source

pub fn major_hw_revision(&self) -> MAJOR_HW_REVISION_R

Bits 24:27 - 27:24] 4-bit binary encoding of the major hardware revision number

Source

pub fn minor_hw_revision(&self) -> MINOR_HW_REVISION_R

Bits 20:23 - 23:20] 4-bit binary encoding of the minor hardware revision number

Source

pub fn hw_patch_level(&self) -> HW_PATCH_LEVEL_R

Bits 16:19 - 19:16] 4-bit binary encoding of the hardware patch level, initial release will carry value zero Patches are used to remove bugs without changing the functionality or interface of a module.

Source

pub fn complement_of_basic_eip_number(&self) -> COMPLEMENT_OF_BASIC_EIP_NUMBER_R

Bits 8:15 - 15:8] Bit-by-bit logic complement of bits [7:0], EIP-28 gives 0xE3

Source

pub fn basic_eip_number(&self) -> BASIC_EIP_NUMBER_R

Bits 0:7 - 7:0] 8-bit binary encoding of the EIP number, EIP-28 gives 0x1C

Source§

impl R<u32, Reg<u32, _IO>>

Source

pub fn sc(&self) -> SC_R

Bit 0 - 0:0] I/O strength control bit Common to all digital output pads Should be set when unregulated voltage is below approximately 2.6 V.

Source§

impl R<u32, Reg<u32, _OBSSEL0>>

Source

pub fn en(&self) -> EN_R

Bit 7 - 7:7] Observation output 0 enable control for PC0 0: Observation output disabled 1: Observation output enabled Note: If enabled, this overwrites the standard GPIO behavior of PC0.

Source

pub fn sel(&self) -> SEL_R

Bits 0:6 - 6:0] n - obs_sigs[n] output on output 0: 0: rfc_obs_sig0 1: rfc_obs_sig1 2: rfc_obs_sig2 Others: Reserved

Source§

impl R<u32, Reg<u32, _OBSSEL1>>

Source

pub fn en(&self) -> EN_R

Bit 7 - 7:7] Observation output 1 enable control for PC1 0: Observation output disabled 1: Observation output enabled Note: If enabled, this overwrites the standard GPIO behavior of PC1.

Source

pub fn sel(&self) -> SEL_R

Bits 0:6 - 6:0] n - obs_sigs[n] output on output 1: 0: rfc_obs_sig0 1: rfc_obs_sig1 2: rfc_obs_sig2 Others: Reserved

Source§

impl R<u32, Reg<u32, _OBSSEL2>>

Source

pub fn en(&self) -> EN_R

Bit 7 - 7:7] Observation output 2 enable control for PC2 0: Observation output disabled 1: Observation output enabled Note: If enabled, this overwrites the standard GPIO behavior of PC2.

Source

pub fn sel(&self) -> SEL_R

Bits 0:6 - 6:0] n - obs_sigs[n] output on output 2: 0: rfc_obs_sig0 1: rfc_obs_sig1 2: rfc_obs_sig2 Others: Reserved

Source§

impl R<u32, Reg<u32, _OBSSEL3>>

Source

pub fn en(&self) -> EN_R

Bit 7 - 7:7] Observation output 3 enable control for PC3 0: Observation output disabled 1: Observation output enabled Note: If enabled, this overwrites the standard GPIO behavior of PC3.

Source

pub fn sel(&self) -> SEL_R

Bits 0:6 - 6:0] n - obs_sigs[n] output on output 3: 0: rfc_obs_sig0 1: rfc_obs_sig1 2: rfc_obs_sig2 Others: Reserved

Source§

impl R<u32, Reg<u32, _OBSSEL4>>

Source

pub fn en(&self) -> EN_R

Bit 7 - 7:7] Observation output 4 enable control for PC4 0: Observation output disabled 1: Observation output enabled Note: If enabled, this overwrites the standard GPIO behavior of PC4.

Source

pub fn sel(&self) -> SEL_R

Bits 0:6 - 6:0] n - obs_sigs[n] output on output 4: 0: rfc_obs_sig0 1: rfc_obs_sig1 2: rfc_obs_sig2 Others: Reserved

Source§

impl R<u32, Reg<u32, _OBSSEL5>>

Source

pub fn en(&self) -> EN_R

Bit 7 - 7:7] Observation output 5 enable control for PC5 0: Observation output disabled 1: Observation output enabled Note: If enabled, this overwrites the standard GPIO behavior of PC5.

Source

pub fn sel(&self) -> SEL_R

Bits 0:6 - 6:0] n - obs_sigs[n] output on output 5: 0: rfc_obs_sig0 1: rfc_obs_sig1 2: rfc_obs_sig2 Others: Reserved

Source§

impl R<u32, Reg<u32, _OBSSEL6>>

Source

pub fn en(&self) -> EN_R

Bit 7 - 7:7] Observation output 6 enable control for PC6 0: Observation output disabled 1: Observation output enabled Note: If enabled, this overwrites the standard GPIO behavior of PC6.

Source

pub fn sel(&self) -> SEL_R

Bits 0:6 - 6:0] n - obs_sigs[n] output on output 6: 0: rfc_obs_sig0 1: rfc_obs_sig1 2: rfc_obs_sig2 Others: Reserved

Source§

impl R<u32, Reg<u32, _OBSSEL7>>

Source

pub fn en(&self) -> EN_R

Bit 7 - 7:7] Observation output 7 enable control for PC7 0: Observation output disabled 1: Observation output enabled Note: If enabled, this overwrites the standard GPIO behavior of PC7.

Source

pub fn sel(&self) -> SEL_R

Bits 0:6 - 6:0] n - obs_sigs[n] output on output 7: 0: rfc_obs_sig0 1: rfc_obs_sig1 2: rfc_obs_sig2 Others: Reserved

Source§

impl R<u32, Reg<u32, _TR0>>

Source

pub fn reserved2(&self) -> RESERVED2_R

Bit 2 - 2:2] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source

pub fn adctm(&self) -> ADCTM_R

Bit 1 - 1:1] Set to 1 to connect the temperature sensor to the SOC_ADC. See also RFCORE_XREG_ATEST register description to enable the temperature sensor.

Source

pub fn reserved0(&self) -> RESERVED0_R

Bit 0 - 0:0] Software should not rely on the value of a reserved bit. To provide compatibility with future products, the value of a reserved bit should be preserved across a read-modify-write operation.

Source§

impl R<u32, Reg<u32, _USBCTRL>>

Source

pub fn usb_stb(&self) -> USB_STB_R

Bit 0 - 0:0] USB PHY stand-by override bit When this bit is cleared to 0 (default state) the USB module cannot change the stand-by mode of the PHY (USB pads) and the PHY is forced out of stand-by mode. This bit must be 1 as well as the stand-by control from the USB controller, before the mode of the PHY is stand-by.

Trait Implementations§

Source§

impl<U, T, FI> PartialEq<FI> for R<U, T>
where U: PartialEq, FI: Copy + Into<U>,

Source§

fn eq(&self, other: &FI) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

§

impl<U, T> Freeze for R<U, T>
where U: Freeze,

§

impl<U, T> RefUnwindSafe for R<U, T>

§

impl<U, T> Send for R<U, T>
where U: Send, T: Send,

§

impl<U, T> Sync for R<U, T>
where U: Sync, T: Sync,

§

impl<U, T> Unpin for R<U, T>
where U: Unpin, T: Unpin,

§

impl<U, T> UnwindSafe for R<U, T>
where U: UnwindSafe, T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.