[][src]Type Definition lpc845_pac::spi0::stat::R

type R = R<u32, STAT>;

Reader of register STAT

Methods

impl R[src]

pub fn rxrdy(&self) -> RXRDY_R[src]

Bit 0 - Receiver Ready flag. When 1, indicates that data is available to be read from the receiver buffer. Cleared after a read of the RXDAT register.

pub fn txrdy(&self) -> TXRDY_R[src]

Bit 1 - Transmitter Ready flag. When 1, this bit indicates that data may be written to the transmit buffer. Previous data may still be in the process of being transmitted. Cleared when data is written to TXDAT or TXDATCTL until the data is moved to the transmit shift register.

pub fn stalled(&self) -> STALLED_R[src]

Bit 6 - Stalled status flag. This indicates whether the SPI is currently in a stall condition.

pub fn endtransfer(&self) -> ENDTRANSFER_R[src]

Bit 7 - End Transfer control bit. Software can set this bit to force an end to the current transfer when the transmitter finishes any activity already in progress, as if the EOT flag had been set prior to the last transmission. This capability is included to support cases where it is not known when transmit data is written that it will be the end of a transfer. The bit is cleared when the transmitter becomes idle as the transfer comes to an end. Forcing an end of transfer in this manner causes any specified FRAME_DELAY and TRANSFER_DELAY to be inserted.

pub fn mstidle(&self) -> MSTIDLE_R[src]

Bit 8 - Master idle status flag. This bit is 1 whenever the SPI master function is fully idle. This means that the transmit holding register is empty and the transmitter is not in the process of sending data.