Question.4
A developer models a UART status register using bitfields:
typedef struct {
uint8_t RX_Ready : 1; // bit 0
uint8_t TX_Ready : 1; // bit 1
uint8_t Error : 1; // bit 2
uint8_t Reserved : 5; // bits 3-7
} UART_Status;
UART_Status *st = (UART_Status *)&status_reg;If the hardware status register reads 0x05 (00000101), what are the values of st->RX_Ready, st->TX_Ready and st->Error?