X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fadapter%2FUSBCECAdapterCommunication.h;h=3e5066b9843caba6d47d86881f490da957eff14c;hb=9ff1aa8068f4d4b0db936cfa6c69674a8c520ad6;hp=98f72fc427c9a2a9d6cde09c675de8d74bab07a6;hpb=c214d19778a6184cf45ed5d9d3d1e93565fdb95e;p=deb_libcec.git diff --git a/src/lib/adapter/USBCECAdapterCommunication.h b/src/lib/adapter/USBCECAdapterCommunication.h index 98f72fc..3e5066b 100644 --- a/src/lib/adapter/USBCECAdapterCommunication.h +++ b/src/lib/adapter/USBCECAdapterCommunication.h @@ -84,17 +84,36 @@ namespace CEC virtual uint16_t GetFirmwareVersion(void); virtual bool SetControlledMode(bool controlled); virtual bool PersistConfiguration(libcec_configuration *configuration); + virtual bool GetConfiguration(libcec_configuration *configuration); virtual CStdString GetPortName(void); virtual uint16_t GetPhysicalAddress(void) { return 0; } void *Process(void); private: - bool SetAutoEnabled(bool enabled); - bool SetDefaultLogicalAddress(cec_logical_address address); - bool SetLogicalAddressMask(uint16_t iMask); - bool SetPhysicalAddress(uint16_t iPhysicalAddress); - bool SetCECVersion(cec_version version); - bool SetOSDName(const char *strOSDName); + bool SendCommand(cec_adapter_messagecode msgCode, CCECAdapterMessage ¶ms, bool bExpectAck = true, bool bIsTransmission = false, bool bSendDirectly = true, bool bIsRetry = false); + cec_datapacket GetSetting(cec_adapter_messagecode msgCode, uint8_t iResponseLength); + + bool SetSettingAutoEnabled(bool enabled); + bool GetSettingAutoEnabled(bool &enabled); + + bool SetSettingDeviceType(cec_device_type type); + bool GetSettingDeviceType(cec_device_type &type); + + bool SetSettingDefaultLogicalAddress(cec_logical_address address); + bool GetSettingDefaultLogicalAddress(cec_logical_address &address); + + bool SetSettingLogicalAddressMask(uint16_t iMask); + bool GetSettingLogicalAddressMask(uint16_t &iMask); + + bool SetSettingPhysicalAddress(uint16_t iPhysicalAddress); + bool GetSettingPhysicalAddress(uint16_t &iPhysicalAddress); + + bool SetSettingCECVersion(cec_version version); + bool GetSettingCECVersion(cec_version &version); + + bool SetSettingOSDName(const char *strOSDName); + bool GetSettingOSDName(CStdString &strOSDName); + bool WriteEEPROM(void); bool SetAckMaskInternal(uint16_t iMask, bool bWriteDirectly = false);