12#define MYUBRR (FOSC / 16 / BAUD - 1)
19const char ascVersion =
'0';
20const char appVersion =
'0';
22const size_t dataLen = 2;
28 ascii_serial_com_set_ignore_CRC_mismatch(&asc);
33 Catch(e) {
return e; }
41 &asc, ascVersion, appVersion, dataBuffer, dataLen);
42 if (dataBuffer[0] ==
'9') {
50 Catch(e) { nExceptions++; }
#define uart_tx_from_circ_buf(uart_no, circ_buf_ptr)
Transmit a byte from the circular buffer.
circular_buffer_uint8 * ascii_serial_com_get_output_buffer(ascii_serial_com *asc)
ASCII Serial Com get output buffer.
void ascii_serial_com_put_s_message_in_output_buffer(ascii_serial_com *asc, char ascVersion, char appVersion, const char *data, size_t dataLen)
ASCII Serial Com Pack and put 's' message in output buffer.
void ascii_serial_com_init(ascii_serial_com *asc)
ASCII Serial Com Interface init method.
#define UART_Init(uart_no, ubrr, rxIntEnable)
Initialize USART.
bool circular_buffer_is_empty_uint8(const circular_buffer_uint8 *circ_buf)
circular buffer get if empty
ASCII Serial Com Interface State struct.