hdmi_cec_device 结构参考

hdmi_cec_device 结构参考

#include < hdmi_cec.h >

数据字段

struct hw_device_t   common
 
int(*  add_logical_address )(const struct hdmi_cec_device *dev, cec_logical_address_t addr)
 
void(*  clear_logical_address )(const struct hdmi_cec_device *dev)
 
int(*  get_physical_address )(const struct hdmi_cec_device *dev, uint16_t *addr)
 
int(*  send_message )(const struct hdmi_cec_device *dev, const cec_message_t *)
 
void(*  register_event_callback )(const struct hdmi_cec_device *dev, event_callback_t callback, void *arg)
 
void(*  get_version )(const struct hdmi_cec_device *dev, int *version)
 
void(*  get_vendor_id )(const struct hdmi_cec_device *dev, uint32_t *vendor_id)
 
void(*  get_port_info )(const struct hdmi_cec_device *dev, struct hdmi_port_info *list[], int *total)
 
void(*  set_option )(const struct hdmi_cec_device *dev, int flag, int value)
 
void(*  set_audio_return_channel )(const struct hdmi_cec_device *dev, int port_id, int flag)
 
int(*  is_connected )(const struct hdmi_cec_device *dev, int port_id)
 
void *  保留 [16-11]
 

详细说明

定义位于文件 hdmi_cec.h 的第 299 行。

字段文档

int(* add_logical_address)(const struct hdmi_cec_device *dev, cec_logical_address_t addr)

文件 hdmi_cec.h 319 行中的定义。

void(* clear_logical_address)(const struct hdmi_cec_device *dev)

定义位于文件 hdmi_cec.h 的第 328 行。

struct hw_device_t common

HDMI CEC 设备的常用方法。此成员 必须 是 hdmi_cec_device 的第一个成员, 因为此结构的用户会在已知 hw_device_t 引用 hdmi_cec_device 的上下文中将 hw_device_t 强制转换为 hdmi_cec_device 指针。

文件 hdmi_cec.h 第 305 行的定义。

int(* get_physical_address)(const struct hdmi_cec_device *dev, uint16_t *addr)

文件 hdmi_cec.h 第 341 行的定义。

void(* get_port_info)(const struct hdmi_cec_device *dev, struct hdmi_port_info *list[], int *total)

文件 hdmi_cec.h 385 行的定义。

void(* get_vendor_id)(const struct hdmi_cec_device *dev, uint32_t *vendor_id)

文件 hdmi_cec.h 第 378 行的定义。

void(* get_version)(const struct hdmi_cec_device *dev, int *version)

文件 hdmi_cec.h 第 371 行的定义。

int(* is_connected)(const struct hdmi_cec_device *dev, int port_id)

文件 hdmi_cec.h 409 行的定义。

void(* register_event_callback)(const struct hdmi_cec_device *dev, event_callback_t callback, void *arg)

文件 hdmi_cec.h 第 365 行的定义。 365

void* reserved[16-11]

文件 hdmi_cec.h 第 412 行的定义。

int(* send_message)(const struct hdmi_cec_device *dev, const cec_message_t *)

文件 hdmi_cec.h 第 356 行的定义。

void(* set_audio_return_channel)(const struct hdmi_cec_device *dev, int port_id, int flag)

定义位于文件 hdmi_cec.h 的第 402 行。

void(* set_option)(const struct hdmi_cec_device *dev, int flag, int value)

定义位于文件 hdmi_cec.h 的第 393 行。


此结构体的文档是从以下文件生成的: