보드 제어를 위한 클래스 (시리얼 통신 기반) 더 자세히 ...
#include <board_control.h>
Public 멤버 함수 | |
BoardController (const std::string &device, int board_id) | |
생성자 | |
~BoardController () | |
소멸자. 포트를 닫음 | |
void | send_lcd_on () |
LCD ON 명령을 보냄 | |
void | send_lcd_off () |
LCD OFF 명령을 보냄 | |
bool | send_time_sync_from_system () |
시스템 시간 기반 시간 동기화 명령을 보냄 | |
bool | send_lcd_on_with_ack (int retries=3, int timeout_ms=1000) |
LCD ON 명령을 전송하고 ACK를 대기 | |
bool | send_lcd_off_with_ack (int retries=3, int timeout_ms=1000) |
LCD OFF 명령을 전송하고 ACK를 대기 | |
보드 제어를 위한 클래스 (시리얼 통신 기반)
BoardController::BoardController | ( | const std::string & | device, |
int | board_id | ||
) |
BoardController::~BoardController | ( | ) |
소멸자. 포트를 닫음
BoardController 소멸자. 포트를 닫습니다.
void BoardController::send_lcd_off | ( | ) |
LCD OFF 명령을 보냄
LCD OFF 명령을 보냅니다.
bool BoardController::send_lcd_off_with_ack | ( | int | retries = 3 , |
int | timeout_ms = 1000 |
||
) |
LCD OFF 명령을 전송하고 ACK를 대기
LCD OFF 명령을 전송하고 ACK를 대기합니다.
retries | 재시도 횟수 |
timeout_ms | 타임아웃(ms) |
void BoardController::send_lcd_on | ( | ) |
LCD ON 명령을 보냄
LCD ON 명령을 보냅니다.
bool BoardController::send_lcd_on_with_ack | ( | int | retries = 3 , |
int | timeout_ms = 1000 |
||
) |
LCD ON 명령을 전송하고 ACK를 대기
LCD ON 명령을 전송하고 ACK를 대기합니다.
retries | 재시도 횟수 |
timeout_ms | 타임아웃(ms) |
bool BoardController::send_time_sync_from_system | ( | ) |
시스템 시간 기반 시간 동기화 명령을 보냄
시스템의 현재 로컬타임(12시간제)으로 시간 동기화 명령을 보냅니다.