Type Alias d1_pac::uart::mcr::FUNCTION_R

source ·
pub type FUNCTION_R = FieldReader<u8, FUNCTION_A>;
Expand description

Field function reader - UART Function: Select IrDA or RS485

Aliased Type§

struct FUNCTION_R { /* private fields */ }

Implementations§

source§

impl FUNCTION_R

source

pub fn variant(&self) -> FUNCTION_A

Get enumerated values variant

source

pub fn is_uart(&self) -> bool

Checks if the value of the field is UART

source

pub fn is_ir_da_sir(&self) -> bool

Checks if the value of the field is IR_DA_SIR

source

pub fn is_rs485(&self) -> bool

Checks if the value of the field is RS485