mirror of
https://github.com/holub/mame
synced 2025-04-26 10:13:37 +03:00
diserial: Make is_receiver_register_full and is_transmit_register_empty const and inline (nw)
This commit is contained in:
parent
880786341d
commit
fc82839871
@ -442,16 +442,6 @@ u8 device_serial_interface::transmit_register_get_data_bit()
|
|||||||
return bit;
|
return bit;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool device_serial_interface::is_receive_register_full()
|
|
||||||
{
|
|
||||||
return m_rcv_flags & RECEIVE_REGISTER_FULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool device_serial_interface::is_transmit_register_empty()
|
|
||||||
{
|
|
||||||
return m_tra_flags & TRANSMIT_REGISTER_EMPTY;
|
|
||||||
}
|
|
||||||
|
|
||||||
const char *device_serial_interface::parity_tostring(parity_t parity)
|
const char *device_serial_interface::parity_tostring(parity_t parity)
|
||||||
{
|
{
|
||||||
switch (parity)
|
switch (parity)
|
||||||
|
@ -105,8 +105,8 @@ protected:
|
|||||||
|
|
||||||
u8 serial_helper_get_parity(u8 data) { return m_serial_parity_table[data]; }
|
u8 serial_helper_get_parity(u8 data) { return m_serial_parity_table[data]; }
|
||||||
|
|
||||||
bool is_receive_register_full();
|
bool is_receive_register_full() const { return m_rcv_flags & RECEIVE_REGISTER_FULL; }
|
||||||
bool is_transmit_register_empty();
|
bool is_transmit_register_empty() const { return m_tra_flags & TRANSMIT_REGISTER_EMPTY; }
|
||||||
bool is_receive_register_synchronized() const { return m_rcv_flags & RECEIVE_REGISTER_SYNCHRONISED; }
|
bool is_receive_register_synchronized() const { return m_rcv_flags & RECEIVE_REGISTER_SYNCHRONISED; }
|
||||||
bool is_receive_register_shifting() const { return m_rcv_bit_count_received > 0; }
|
bool is_receive_register_shifting() const { return m_rcv_bit_count_received > 0; }
|
||||||
bool is_receive_framing_error() const { return m_rcv_framing_error; }
|
bool is_receive_framing_error() const { return m_rcv_framing_error; }
|
||||||
|
Loading…
Reference in New Issue
Block a user