openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
cec_msg Struct Reference

#include <linux-uapi-cec.h>

Public Attributes

__u64 tx_ts
 
__u64 rx_ts
 
__u32 len
 
__u32 timeout
 
__u32 sequence
 
__u32 flags
 
__u8 msg [CEC_MAX_MSG_SIZE]
 
__u8 reply
 
__u8 rx_status
 
__u8 tx_status
 
__u8 tx_arb_lost_cnt
 
__u8 tx_nack_cnt
 
__u8 tx_low_drive_cnt
 
__u8 tx_error_cnt
 

Detailed Description

struct cec_msg - CEC message structure. @tx_ts: Timestamp in nanoseconds using CLOCK_MONOTONIC. Set by the driver when the message transmission has finished. @rx_ts: Timestamp in nanoseconds using CLOCK_MONOTONIC. Set by the driver when the message was received. @len: Length in bytes of the message. @timeout: The timeout (in ms) that is used to timeout CEC_RECEIVE. Set to 0 if you want to wait forever. This timeout can also be used with CEC_TRANSMIT as the timeout for waiting for a reply. If 0, then it will use a 1 second timeout instead of waiting forever as is done with CEC_RECEIVE. @sequence: The framework assigns a sequence number to messages that are sent. This can be used to track replies to previously sent messages. @flags: Set to 0. @msg: The message payload. @reply: This field is ignored with CEC_RECEIVE and is only used by CEC_TRANSMIT. If non-zero, then wait for a reply with this opcode. Set to CEC_MSG_FEATURE_ABORT if you want to wait for a possible ABORT reply. If there was an error when sending the msg or FeatureAbort was returned, then reply is set to 0. If reply is non-zero upon return, then len/msg are set to the received message. If reply is zero upon return and status has the CEC_TX_STATUS_FEATURE_ABORT bit set, then len/msg are set to the received feature abort message. If reply is zero upon return and status has the CEC_TX_STATUS_MAX_RETRIES bit set, then no reply was seen at all. If reply is non-zero for CEC_TRANSMIT and the message is a broadcast, then -EINVAL is returned. if reply is non-zero, then timeout is set to 1000 (the required maximum response time). @rx_status: The message receive status bits. Set by the driver. @tx_status: The message transmit status bits. Set by the driver. @tx_arb_lost_cnt: The number of 'Arbitration Lost' events. Set by the driver. @tx_nack_cnt: The number of 'Not Acknowledged' events. Set by the driver. @tx_low_drive_cnt: The number of 'Low Drive Detected' events. Set by the driver. @tx_error_cnt: The number of 'Error' events. Set by the driver.

Member Data Documentation

◆ flags

__u32 cec_msg::flags

◆ len

__u32 cec_msg::len

◆ msg

__u8 cec_msg::msg[CEC_MAX_MSG_SIZE]

◆ reply

__u8 cec_msg::reply

◆ rx_status

__u8 cec_msg::rx_status

◆ rx_ts

__u64 cec_msg::rx_ts

◆ sequence

__u32 cec_msg::sequence

◆ timeout

__u32 cec_msg::timeout

◆ tx_arb_lost_cnt

__u8 cec_msg::tx_arb_lost_cnt

◆ tx_error_cnt

__u8 cec_msg::tx_error_cnt

◆ tx_low_drive_cnt

__u8 cec_msg::tx_low_drive_cnt

◆ tx_nack_cnt

__u8 cec_msg::tx_nack_cnt

◆ tx_status

__u8 cec_msg::tx_status

◆ tx_ts

__u64 cec_msg::tx_ts

The documentation for this struct was generated from the following file: