Enum nrf52832_pac::spi0::config::CPHAR
source · pub enum CPHAR {
LEADING,
TRAILING,
}
Expand description
Possible values of the field CPHA
Variants§
LEADING
Sample on leading edge of clock, shift serial data on trailing edge
TRAILING
Sample on trailing edge of clock, shift serial data on leading edge
Implementations§
source§impl CPHAR
impl CPHAR
sourcepub fn bit_is_clear(&self) -> bool
pub fn bit_is_clear(&self) -> bool
Returns true
if the bit is clear (0)
sourcepub fn bit_is_set(&self) -> bool
pub fn bit_is_set(&self) -> bool
Returns true
if the bit is set (1)
sourcepub fn is_leading(&self) -> bool
pub fn is_leading(&self) -> bool
Checks if the value of the field is LEADING
sourcepub fn is_trailing(&self) -> bool
pub fn is_trailing(&self) -> bool
Checks if the value of the field is TRAILING