// Listen RS485 bus and process received messages. void *digit_receive_thread(void *ptr) { rs485_open(RS485_FILE); sleep(2); // sec while (true) { digit_receive_msgs(); } return NULL; }
/** * @brief Open an RSI session * * @return File descriptor for session */ uInt16_t rsi_open(void) { crcInit(); return rs485_open(); }