MSGCODE_GET_OSD_NAME,
MSGCODE_SET_OSD_NAME,
MSGCODE_WRITE_EEPROM,
+ MSGCODE_GET_ADAPTER_TYPE,
MSGCODE_FRAME_EOM = 0x80,
MSGCODE_FRAME_ACK = 0x40,
} cec_adapter_messagecode;
+ typedef enum p8_cec_adapter_type
+ {
+ P8_ADAPTERTYPE_UNKNOWN = 0,
+ P8_ADAPTERTYPE_EXTERNAL,
+ P8_ADAPTERTYPE_DAUGHTERBOARD,
+ } p8_cec_adapter_type;
+
class CCECAdapterMessage
{
public:
bool IsACK(void) const;
/*!
- * @return True when this message has been replied with an error code, false otherwise.
+ * @brief Checks whether the given messagecode is an error message.
+ * @param code The code to check.
+ * @return True when it's an error, false otherwise.
+ */
+ static bool MessageCodeIsError(const cec_adapter_messagecode code);
+
+ /*!
+ * @return True when this message contains an error code, false otherwise.
*/
bool IsError(void) const;
+ /*!
+ * @return True when this message has been replied with an error code, false otherwise.
+ */
+ bool ReplyIsError(void) const;
+
/*!
* @return True when this message has been replied with an error code and needs to be retried, false otherwise.
*/