libCEC 8.1.0
C / C++ API — control CEC-capable HDMI devices
Loading...
Searching...
No Matches
cecc.h File Reference
#include "cectypes.h"
Include dependency graph for cecc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CECEXPORTS_C_H_
 
#define CEC_NAMESPACE   CEC::
 

Typedefs

typedef CEC::ICECAdapterlibcec_connection_t
 

Functions

libcec_connection_t libcec_initialise (CEC::libcec_configuration *configuration)
 
void libcec_destroy (libcec_connection_t connection)
 
int libcec_open (libcec_connection_t connection, const char *strPort, uint32_t iTimeout)
 
void libcec_close (libcec_connection_t connection)
 
void libcec_clear_configuration (CEC::libcec_configuration *configuration)
 
int libcec_set_callbacks (libcec_connection_t connection, CEC::ICECCallbacks *callbacks, void *cbParam)
 
int libcec_disable_callbacks (libcec_connection_t connection)
 
int8_t libcec_find_adapters (libcec_connection_t connection, CEC::cec_adapter *deviceList, uint8_t iBufSize, const char *strDevicePath)
 
int libcec_ping_adapters (libcec_connection_t connection)
 
int libcec_start_bootloader (libcec_connection_t connection)
 
int libcec_power_on_devices (libcec_connection_t connection, CEC::cec_logical_address address)
 
int libcec_standby_devices (libcec_connection_t connection, CEC::cec_logical_address address)
 
int libcec_set_active_source (libcec_connection_t connection, CEC::cec_device_type type)
 
int libcec_set_deck_control_mode (libcec_connection_t connection, CEC::cec_deck_control_mode mode, int bSendUpdate)
 
int libcec_set_deck_info (libcec_connection_t connection, CEC::cec_deck_info info, int bSendUpdate)
 
int libcec_set_inactive_view (libcec_connection_t connection)
 
int libcec_set_menu_state (libcec_connection_t connection, CEC::cec_menu_state state, int bSendUpdate)
 
int libcec_transmit (libcec_connection_t connection, const CEC::cec_command *data)
 
int libcec_set_logical_address (libcec_connection_t connection, CEC::cec_logical_address iLogicalAddress)
 
int libcec_set_physical_address (libcec_connection_t connection, uint16_t iPhysicalAddress)
 
int libcec_set_osd_string (libcec_connection_t connection, CEC::cec_logical_address iLogicalAddress, CEC::cec_display_control duration, const char *strMessage)
 
int libcec_switch_monitoring (libcec_connection_t connection, int bEnable)
 
CEC::cec_version libcec_get_device_cec_version (libcec_connection_t connection, CEC::cec_logical_address iLogicalAddress)
 
int libcec_get_device_menu_language (libcec_connection_t connection, CEC::cec_logical_address iLogicalAddress, CEC::cec_menu_language language)
 
uint32_t libcec_get_device_vendor_id (libcec_connection_t connection, CEC::cec_logical_address iLogicalAddress)
 
uint16_t libcec_get_device_physical_address (libcec_connection_t connection, CEC::cec_logical_address iLogicalAddress)
 
CEC::cec_logical_address libcec_get_active_source (libcec_connection_t connection)
 
int libcec_is_active_source (libcec_connection_t connection, CEC::cec_logical_address iAddress)
 
CEC::cec_power_status libcec_get_device_power_status (libcec_connection_t connection, CEC::cec_logical_address iLogicalAddress)
 
int libcec_poll_device (libcec_connection_t connection, CEC::cec_logical_address iLogicalAddress)
 
CEC::cec_logical_addresses libcec_get_active_devices (libcec_connection_t connection)
 
int libcec_is_active_device (libcec_connection_t connection, CEC::cec_logical_address address)
 
int libcec_is_active_device_type (libcec_connection_t connection, CEC::cec_device_type type)
 
int libcec_set_hdmi_port (libcec_connection_t connection, CEC::cec_logical_address baseDevice, uint8_t iPort)
 
int libcec_volume_up (libcec_connection_t connection, int bSendRelease)
 
int libcec_volume_down (libcec_connection_t connection, int bSendRelease)
 
int libcec_mute_audio (libcec_connection_t connection, int bSendRelease)
 
int libcec_send_keypress (libcec_connection_t connection, CEC::cec_logical_address iDestination, CEC::cec_user_control_code key, int bWait)
 
int libcec_send_key_release (libcec_connection_t connection, CEC::cec_logical_address iDestination, int bWait)
 
int libcec_get_device_osd_name (libcec_connection_t connection, CEC::cec_logical_address iAddress, CEC::cec_osd_name name)
 
int libcec_set_stream_path_logical (libcec_connection_t connection, CEC::cec_logical_address iAddress)
 
int libcec_set_stream_path_physical (libcec_connection_t connection, uint16_t iPhysicalAddress)
 
CEC::cec_logical_addresses libcec_get_logical_addresses (libcec_connection_t connection)
 
int libcec_get_current_configuration (libcec_connection_t connection, CEC::libcec_configuration *configuration)
 
int libcec_can_save_configuration (libcec_connection_t connection)
 
int libcec_set_configuration (libcec_connection_t connection, const CEC::libcec_configuration *configuration)
 
void libcec_rescan_devices (libcec_connection_t connection)
 
int libcec_is_libcec_active_source (libcec_connection_t connection)
 
int libcec_get_device_information (libcec_connection_t connection, const char *strPort, CEC::libcec_configuration *config, uint32_t iTimeoutMs)
 
const char * libcec_get_lib_info (libcec_connection_t connection)
 
void libcec_init_video_standalone (libcec_connection_t connection)
 
uint16_t libcec_get_adapter_vendor_id (libcec_connection_t connection)
 
uint16_t libcec_get_adapter_product_id (libcec_connection_t connection)
 
uint8_t libcec_audio_toggle_mute (libcec_connection_t connection)
 
uint8_t libcec_audio_mute (libcec_connection_t connection)
 
uint8_t libcec_audio_unmute (libcec_connection_t connection)
 
uint8_t libcec_audio_get_status (libcec_connection_t connection)
 
int libcec_system_audio_mode (libcec_connection_t connection, int bEnable)
 
uint8_t libcec_system_audio_mode_get_status (libcec_connection_t connection)
 
int8_t libcec_detect_adapters (libcec_connection_t connection, CEC::cec_adapter_descriptor *deviceList, uint8_t iBufSize, const char *strDevicePath, int bQuickScan)
 
int libcec_get_stats (libcec_connection_t connection, struct CEC::cec_adapter_stats *stats)
 
void libcec_menu_state_to_string (const CEC::cec_menu_state state, char *buf, size_t bufsize)
 
void libcec_cec_version_to_string (const CEC::cec_version version, char *buf, size_t bufsize)
 
void libcec_power_status_to_string (const CEC::cec_power_status status, char *buf, size_t bufsize)
 
void libcec_logical_address_to_string (const CEC::cec_logical_address address, char *buf, size_t bufsize)
 
void libcec_deck_control_mode_to_string (const CEC::cec_deck_control_mode mode, char *buf, size_t bufsize)
 
void libcec_deck_status_to_string (const CEC::cec_deck_info status, char *buf, size_t bufsize)
 
void libcec_opcode_to_string (const CEC::cec_opcode opcode, char *buf, size_t bufsize)
 
void libcec_system_audio_status_to_string (const CEC::cec_system_audio_status mode, char *buf, size_t bufsize)
 
void libcec_audio_status_to_string (const CEC::cec_audio_status status, char *buf, size_t bufsize)
 
void libcec_vendor_id_to_string (const CEC::cec_vendor_id vendor, char *buf, size_t bufsize)
 
void libcec_user_control_key_to_string (const CEC::cec_user_control_code key, char *buf, size_t bufsize)
 
void libcec_adapter_type_to_string (const CEC::cec_adapter_type type, char *buf, size_t bufsize)
 
void libcec_version_to_string (uint32_t version, char *buf, size_t bufsize)
 

Macro Definition Documentation

◆ CECEXPORTS_C_H_

#define CECEXPORTS_C_H_

Definition at line 35 of file cecc.h.

◆ CEC_NAMESPACE

#define CEC_NAMESPACE   CEC::

Definition at line 44 of file cecc.h.

Typedef Documentation

◆ libcec_connection_t

Definition at line 45 of file cecc.h.

Function Documentation

◆ libcec_initialise()

libcec_connection_t libcec_initialise ( CEC::libcec_configuration configuration)
extern

◆ libcec_destroy()

void libcec_destroy ( libcec_connection_t  connection)
extern

◆ libcec_open()

int libcec_open ( libcec_connection_t  connection,
const char *  strPort,
uint32_t  iTimeout 
)
extern

◆ libcec_close()

void libcec_close ( libcec_connection_t  connection)
extern

◆ libcec_clear_configuration()

void libcec_clear_configuration ( CEC::libcec_configuration configuration)
extern

◆ libcec_set_callbacks()

int libcec_set_callbacks ( libcec_connection_t  connection,
CEC::ICECCallbacks *  callbacks,
void *  cbParam 
)
extern

◆ libcec_disable_callbacks()

int libcec_disable_callbacks ( libcec_connection_t  connection)
extern

◆ libcec_find_adapters()

int8_t libcec_find_adapters ( libcec_connection_t  connection,
CEC::cec_adapter *  deviceList,
uint8_t  iBufSize,
const char *  strDevicePath 
)
extern

◆ libcec_ping_adapters()

int libcec_ping_adapters ( libcec_connection_t  connection)
extern

◆ libcec_start_bootloader()

int libcec_start_bootloader ( libcec_connection_t  connection)
extern

◆ libcec_power_on_devices()

int libcec_power_on_devices ( libcec_connection_t  connection,
CEC::cec_logical_address  address 
)
extern

◆ libcec_standby_devices()

int libcec_standby_devices ( libcec_connection_t  connection,
CEC::cec_logical_address  address 
)
extern

◆ libcec_set_active_source()

int libcec_set_active_source ( libcec_connection_t  connection,
CEC::cec_device_type  type 
)
extern

◆ libcec_set_deck_control_mode()

int libcec_set_deck_control_mode ( libcec_connection_t  connection,
CEC::cec_deck_control_mode  mode,
int  bSendUpdate 
)
extern

◆ libcec_set_deck_info()

int libcec_set_deck_info ( libcec_connection_t  connection,
CEC::cec_deck_info  info,
int  bSendUpdate 
)
extern

◆ libcec_set_inactive_view()

int libcec_set_inactive_view ( libcec_connection_t  connection)
extern

◆ libcec_set_menu_state()

int libcec_set_menu_state ( libcec_connection_t  connection,
CEC::cec_menu_state  state,
int  bSendUpdate 
)
extern

◆ libcec_transmit()

int libcec_transmit ( libcec_connection_t  connection,
const CEC::cec_command *  data 
)
extern

◆ libcec_set_logical_address()

int libcec_set_logical_address ( libcec_connection_t  connection,
CEC::cec_logical_address  iLogicalAddress 
)
extern

◆ libcec_set_physical_address()

int libcec_set_physical_address ( libcec_connection_t  connection,
uint16_t  iPhysicalAddress 
)
extern

◆ libcec_set_osd_string()

int libcec_set_osd_string ( libcec_connection_t  connection,
CEC::cec_logical_address  iLogicalAddress,
CEC::cec_display_control  duration,
const char *  strMessage 
)
extern

◆ libcec_switch_monitoring()

int libcec_switch_monitoring ( libcec_connection_t  connection,
int  bEnable 
)
extern

◆ libcec_get_device_cec_version()

CEC::cec_version libcec_get_device_cec_version ( libcec_connection_t  connection,
CEC::cec_logical_address  iLogicalAddress 
)
extern

◆ libcec_get_device_menu_language()

int libcec_get_device_menu_language ( libcec_connection_t  connection,
CEC::cec_logical_address  iLogicalAddress,
CEC::cec_menu_language  language 
)
extern

◆ libcec_get_device_vendor_id()

uint32_t libcec_get_device_vendor_id ( libcec_connection_t  connection,
CEC::cec_logical_address  iLogicalAddress 
)
extern

◆ libcec_get_device_physical_address()

uint16_t libcec_get_device_physical_address ( libcec_connection_t  connection,
CEC::cec_logical_address  iLogicalAddress 
)
extern

◆ libcec_get_active_source()

CEC::cec_logical_address libcec_get_active_source ( libcec_connection_t  connection)
extern

◆ libcec_is_active_source()

int libcec_is_active_source ( libcec_connection_t  connection,
CEC::cec_logical_address  iAddress 
)
extern

◆ libcec_get_device_power_status()

CEC::cec_power_status libcec_get_device_power_status ( libcec_connection_t  connection,
CEC::cec_logical_address  iLogicalAddress 
)
extern

◆ libcec_poll_device()

int libcec_poll_device ( libcec_connection_t  connection,
CEC::cec_logical_address  iLogicalAddress 
)
extern

◆ libcec_get_active_devices()

CEC::cec_logical_addresses libcec_get_active_devices ( libcec_connection_t  connection)
extern

◆ libcec_is_active_device()

int libcec_is_active_device ( libcec_connection_t  connection,
CEC::cec_logical_address  address 
)
extern

◆ libcec_is_active_device_type()

int libcec_is_active_device_type ( libcec_connection_t  connection,
CEC::cec_device_type  type 
)
extern

◆ libcec_set_hdmi_port()

int libcec_set_hdmi_port ( libcec_connection_t  connection,
CEC::cec_logical_address  baseDevice,
uint8_t  iPort 
)
extern

◆ libcec_volume_up()

int libcec_volume_up ( libcec_connection_t  connection,
int  bSendRelease 
)
extern

◆ libcec_volume_down()

int libcec_volume_down ( libcec_connection_t  connection,
int  bSendRelease 
)
extern

◆ libcec_mute_audio()

int libcec_mute_audio ( libcec_connection_t  connection,
int  bSendRelease 
)
extern

◆ libcec_send_keypress()

int libcec_send_keypress ( libcec_connection_t  connection,
CEC::cec_logical_address  iDestination,
CEC::cec_user_control_code  key,
int  bWait 
)
extern

◆ libcec_send_key_release()

int libcec_send_key_release ( libcec_connection_t  connection,
CEC::cec_logical_address  iDestination,
int  bWait 
)
extern

◆ libcec_get_device_osd_name()

int libcec_get_device_osd_name ( libcec_connection_t  connection,
CEC::cec_logical_address  iAddress,
CEC::cec_osd_name  name 
)
extern

◆ libcec_set_stream_path_logical()

int libcec_set_stream_path_logical ( libcec_connection_t  connection,
CEC::cec_logical_address  iAddress 
)
extern

◆ libcec_set_stream_path_physical()

int libcec_set_stream_path_physical ( libcec_connection_t  connection,
uint16_t  iPhysicalAddress 
)
extern

◆ libcec_get_logical_addresses()

CEC::cec_logical_addresses libcec_get_logical_addresses ( libcec_connection_t  connection)
extern

◆ libcec_get_current_configuration()

int libcec_get_current_configuration ( libcec_connection_t  connection,
CEC::libcec_configuration configuration 
)
extern

◆ libcec_can_save_configuration()

int libcec_can_save_configuration ( libcec_connection_t  connection)
extern

◆ libcec_set_configuration()

int libcec_set_configuration ( libcec_connection_t  connection,
const CEC::libcec_configuration configuration 
)
extern

◆ libcec_rescan_devices()

void libcec_rescan_devices ( libcec_connection_t  connection)
extern

◆ libcec_is_libcec_active_source()

int libcec_is_libcec_active_source ( libcec_connection_t  connection)
extern

◆ libcec_get_device_information()

int libcec_get_device_information ( libcec_connection_t  connection,
const char *  strPort,
CEC::libcec_configuration config,
uint32_t  iTimeoutMs 
)
extern

◆ libcec_get_lib_info()

const char * libcec_get_lib_info ( libcec_connection_t  connection)
extern

◆ libcec_init_video_standalone()

void libcec_init_video_standalone ( libcec_connection_t  connection)
extern

◆ libcec_get_adapter_vendor_id()

uint16_t libcec_get_adapter_vendor_id ( libcec_connection_t  connection)
extern

◆ libcec_get_adapter_product_id()

uint16_t libcec_get_adapter_product_id ( libcec_connection_t  connection)
extern

◆ libcec_audio_toggle_mute()

uint8_t libcec_audio_toggle_mute ( libcec_connection_t  connection)
extern

◆ libcec_audio_mute()

uint8_t libcec_audio_mute ( libcec_connection_t  connection)
extern

◆ libcec_audio_unmute()

uint8_t libcec_audio_unmute ( libcec_connection_t  connection)
extern

◆ libcec_audio_get_status()

uint8_t libcec_audio_get_status ( libcec_connection_t  connection)
extern

◆ libcec_system_audio_mode()

int libcec_system_audio_mode ( libcec_connection_t  connection,
int  bEnable 
)
extern

◆ libcec_system_audio_mode_get_status()

uint8_t libcec_system_audio_mode_get_status ( libcec_connection_t  connection)
extern

◆ libcec_detect_adapters()

int8_t libcec_detect_adapters ( libcec_connection_t  connection,
CEC::cec_adapter_descriptor *  deviceList,
uint8_t  iBufSize,
const char *  strDevicePath,
int  bQuickScan 
)
extern

◆ libcec_get_stats()

int libcec_get_stats ( libcec_connection_t  connection,
struct CEC::cec_adapter_stats stats 
)
extern

◆ libcec_menu_state_to_string()

void libcec_menu_state_to_string ( const CEC::cec_menu_state  state,
char *  buf,
size_t  bufsize 
)
extern

◆ libcec_cec_version_to_string()

void libcec_cec_version_to_string ( const CEC::cec_version  version,
char *  buf,
size_t  bufsize 
)
extern

◆ libcec_power_status_to_string()

void libcec_power_status_to_string ( const CEC::cec_power_status  status,
char *  buf,
size_t  bufsize 
)
extern

◆ libcec_logical_address_to_string()

void libcec_logical_address_to_string ( const CEC::cec_logical_address  address,
char *  buf,
size_t  bufsize 
)
extern

◆ libcec_deck_control_mode_to_string()

void libcec_deck_control_mode_to_string ( const CEC::cec_deck_control_mode  mode,
char *  buf,
size_t  bufsize 
)
extern

◆ libcec_deck_status_to_string()

void libcec_deck_status_to_string ( const CEC::cec_deck_info  status,
char *  buf,
size_t  bufsize 
)
extern

◆ libcec_opcode_to_string()

void libcec_opcode_to_string ( const CEC::cec_opcode  opcode,
char *  buf,
size_t  bufsize 
)
extern

◆ libcec_system_audio_status_to_string()

void libcec_system_audio_status_to_string ( const CEC::cec_system_audio_status  mode,
char *  buf,
size_t  bufsize 
)
extern

◆ libcec_audio_status_to_string()

void libcec_audio_status_to_string ( const CEC::cec_audio_status  status,
char *  buf,
size_t  bufsize 
)
extern

◆ libcec_vendor_id_to_string()

void libcec_vendor_id_to_string ( const CEC::cec_vendor_id  vendor,
char *  buf,
size_t  bufsize 
)
extern

◆ libcec_user_control_key_to_string()

void libcec_user_control_key_to_string ( const CEC::cec_user_control_code  key,
char *  buf,
size_t  bufsize 
)
extern

◆ libcec_adapter_type_to_string()

void libcec_adapter_type_to_string ( const CEC::cec_adapter_type  type,
char *  buf,
size_t  bufsize 
)
extern

◆ libcec_version_to_string()

void libcec_version_to_string ( uint32_t  version,
char *  buf,
size_t  bufsize 
)
extern