Add support for .ini file,

Add support for extended messages (advanced protocol),
Add handy command lines for Power, Volume in db, and Mute.
This commit is contained in:
2026-01-31 14:39:37 -06:00
parent 936f71b737
commit 49edca0238
8 changed files with 368 additions and 195 deletions

View File

@@ -24,20 +24,20 @@
class CSerialPort
{
public:
void Set_RTS_State(BOOL state);
void Set_DTR_State(BOOL state);
BOOL Get_RTS_State();
BOOL Get_DTR_State();
BOOL Get_RI_State();
BOOL Get_DSR_State();
BOOL Get_CTS_State();
BOOL Get_CD_State();
bool Set_RTS_State(bool state);
bool Set_DTR_State(bool state);
bool Get_RTS_State();
bool Get_DTR_State();
bool Get_RI_State();
bool Get_DSR_State();
bool Get_CTS_State();
bool Get_CD_State();
virtual uint32_t Write(const LPVOID Buffer, uint32_t BufferSize);
virtual uint32_t Read(LPVOID Buffer, uint32_t BufferSize);
virtual BOOL IsOpen();
virtual bool IsOpen();
virtual void Close();
// Use PortName usually "COM1:" ... "COM4:" note that the name must end by ":"
virtual BOOL Open(LPCTSTR PortName, uint32_t BaudRate, BYTE ByteSize, BYTE Parity, BYTE StopBits, uint32_t DesiredAccess = GENERIC_READ|GENERIC_WRITE);
virtual bool Open(LPCTSTR PortName, uint32_t BaudRate, BYTE ByteSize, BYTE Parity, BYTE StopBits, uint32_t DesiredAccess = GENERIC_READ|GENERIC_WRITE);
CSerialPort();
virtual ~CSerialPort();