Struct zinc_hal_lpc11xx::ioregs::SPI0_sr_Get
[−]
[src]
pub struct SPI0_sr_Get { // some fields omitted }
SR
: Status Register
Methods
impl SPI0_sr_Get
fn new(reg: &SPI0_sr) -> SPI0_sr_Get
Create a getter reflecting the current value of the given register.
fn raw(&self) -> u32
Get the raw value of the register.
fn tfe(&self) -> bool
Get value of TFE
field: Transmit FIFO Empty. This bit is 1 is the Transmit FIFO is empty, 0 if not.
fn tnf(&self) -> bool
Get value of TNF
field: Transmit FIFO Not Full. This bit is 0 if the Tx FIFO is full, 1 if not.
fn rne(&self) -> bool
Get value of RNE
field: Receive FIFO Not Empty. This bit is 0 if the Receive FIFO is empty, 1 if not.
fn rff(&self) -> bool
Get value of RFF
field: Receive FIFO Full. This bit is 1 if the Receive FIFO is full, 0 if not.
fn bsy(&self) -> bool
Get value of BSY
field: Busy. This bit is 0 if the SPI controller is idle, 1 if it is currently sending/receiving a frame and/or the Tx FIFO is not empty.