pub enum INTIDR {
RECEIVE_LINE_STATUS,
RECEIVE_DATA_AVAILABLE,
CHARACTER_TIMEOUT_INDICATOR,
THRE_INTERRUPT,
MODEM_STATUS,
_Reserved(u8),
}
Expand description
Possible values of the field INTID
Variants§
RECEIVE_LINE_STATUS
1 - Receive Line Status (RLS).
RECEIVE_DATA_AVAILABLE
2a - Receive Data Available (RDA).
CHARACTER_TIMEOUT_INDICATOR
2b - Character Time-out Indicator (CTI).
THRE_INTERRUPT
3 - THRE Interrupt.
MODEM_STATUS
4 - Modem status
_Reserved(u8)
Reserved
Implementations§
source§impl INTIDR
impl INTIDR
sourcepub fn is_receive_line_status(&self) -> bool
pub fn is_receive_line_status(&self) -> bool
Checks if the value of the field is RECEIVE_LINE_STATUS
sourcepub fn is_receive_data_available(&self) -> bool
pub fn is_receive_data_available(&self) -> bool
Checks if the value of the field is RECEIVE_DATA_AVAILABLE
sourcepub fn is_character_timeout_indicator(&self) -> bool
pub fn is_character_timeout_indicator(&self) -> bool
Checks if the value of the field is CHARACTER_TIMEOUT_INDICATOR
sourcepub fn is_thre_interrupt(&self) -> bool
pub fn is_thre_interrupt(&self) -> bool
Checks if the value of the field is THRE_INTERRUPT
sourcepub fn is_modem_status(&self) -> bool
pub fn is_modem_status(&self) -> bool
Checks if the value of the field is MODEM_STATUS