Struct lpc13xx::i2c::DAT
[−]
[src]
pub struct DAT { /* fields omitted */ }
I2C Data Register. During master or slave transmit mode, data to be transmitted is written to this register. During master or slave receive mode, data that has been received may be read from this register.
Methods
impl DAT
[src]
pub fn modify<F>(&self, f: F) where
F: FnOnce(&R, &'w mut W) -> &'w mut W,
[src]
F: FnOnce(&R, &'w mut W) -> &'w mut W,
Modifies the contents of the register
pub fn read(&self) -> R
[src]
Reads the contents of the register
pub fn write<F>(&self, f: F) where
F: FnOnce(&mut W) -> &mut W,
[src]
F: FnOnce(&mut W) -> &mut W,
Writes to the register
pub fn reset(&self)
[src]
Writes the reset value to the register