38 #define MetLinkDevice (&(MET_LINK).device)
40 #define MetBuffer() MetLinkDevice->char_available(MetLinkDevice->periph)
41 #define MetGetch() MetLinkDevice->get_byte(MetLinkDevice->periph)
42 #define ReadMetBuffer() { while (MetBuffer()&&!met_msg_received) parse_met_buffer(MetGetch()); }
43 #define MetSend1(c) MetLinkDevice->put_byte(MetLinkDevice->periph, 0, c)
44 #define MetUartSend1(c) MetSend1(c)
45 #define MetSend(_dat,_len) { for (uint8_t i = 0; i< (_len); i++) MetSend1(_dat[i]); };
46 #define MetUartSetBaudrate(_b) uart_periph_set_baudrate(&(MET_LINK), _b)
47 #define MetUartRunning (MET_LINK).tx_running
void humid_sht_uart_periodic(void)
void humid_sht_uart_event(void)
void humid_sht_uart_init(void)
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.