* @param strPort The name of the com port to use.
* @param iBaudRate The baudrate to use on the com port connection.
*/
* @param strPort The name of the com port to use.
* @param iBaudRate The baudrate to use on the com port connection.
*/
- CUSBCECAdapterCommunication(IAdapterCommunicationCallback *callback, const char *strPort, uint16_t iBaudRate = 38400);
+ CUSBCECAdapterCommunication(IAdapterCommunicationCallback *callback, const char *strPort, uint16_t iBaudRate = CEC_SERIAL_DEFAULT_BAUDRATE);
- bool Open(uint32_t iTimeoutMs = 10000, bool bSkipChecks = false, bool bStartListening = true);
+ bool Open(uint32_t iTimeoutMs = CEC_DEFAULT_CONNECT_TIMEOUT, bool bSkipChecks = false, bool bStartListening = true);
- bool PersistConfiguration(libcec_configuration *configuration);
- bool GetConfiguration(libcec_configuration *configuration);
+ bool IsRunningLatestFirmware(void);
+ bool PersistConfiguration(const libcec_configuration &configuration);
+ bool GetConfiguration(libcec_configuration &configuration);
CStdString GetPortName(void);
uint16_t GetPhysicalAddress(void) { return 0; }
bool SetControlledMode(bool controlled);
CStdString GetPortName(void);
uint16_t GetPhysicalAddress(void) { return 0; }
bool SetControlledMode(bool controlled);
* @param iTimeoutMs The timeout after which this fails if no proper data was received.
* @return True when the checks passed, false otherwise.
*/
* @param iTimeoutMs The timeout after which this fails if no proper data was received.
* @return True when the checks passed, false otherwise.
*/
PLATFORM::ISocket * m_port; /**< the com port connection */
PLATFORM::CMutex m_mutex; /**< mutex for changes in this class */
uint8_t m_iLineTimeout; /**< the current line timeout on the CEC line */
PLATFORM::ISocket * m_port; /**< the com port connection */
PLATFORM::CMutex m_mutex; /**< mutex for changes in this class */
uint8_t m_iLineTimeout; /**< the current line timeout on the CEC line */
CAdapterPingThread * m_pingThread; /**< ping thread, that pings the adapter every 15 seconds */
CUSBCECAdapterCommands * m_commands; /**< commands that can be sent to the adapter */
CCECAdapterMessageQueue * m_adapterMessageQueue; /**< the incoming and outgoing message queue */
CAdapterPingThread * m_pingThread; /**< ping thread, that pings the adapter every 15 seconds */
CUSBCECAdapterCommands * m_commands; /**< commands that can be sent to the adapter */
CCECAdapterMessageQueue * m_adapterMessageQueue; /**< the incoming and outgoing message queue */