MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / uart_get_modem_inputs

Function uart_get_modem_inputs

core/uart.c:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28static uint8_t uart_get_modem_inputs(void) {
29 if (uart.mcr >> 4 & 1) {
30 /* Loopback mode */
31 return uart.mcr & UART_MSR_BITS;
32 } else {
33 return uart.msr >> 4 & UART_MSR_BITS;
34 }
35}
36
37void uart_set_modem_inputs(uint8_t msr) {
38 uint8_t modemDiff = uart_get_modem_inputs();

Callers 3

uart_set_modem_inputsFunction · 0.85
uart_readFunction · 0.85
uart_writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected