/*************************************************************************** * Copyright (c) 2010, Broadcom Corporation * All Rights Reserved * Confidential Property of Broadcom Corporation * * THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE * AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR * EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. * * $brcm_Workfile: $ * $brcm_Revision: $ * $brcm_Date: $ * * Module Description: * * Revision History: * * $brcm_Log: $ * ***************************************************************************/ #ifndef BAPP_REMOTE_H__ #define BAPP_REMOTE_H__ #include "bapp_types.h" /* Key code modifier stored in msb of event but this might not work for all protocols */ typedef enum ir_key_type_t { eKEY_DOWN = (int)0x80000000, eKEY_UP = (int)0x40000000, eKEY_CMD = (int)0x20000000 }ir_key_type_t; typedef struct bapp_remote *bapp_remote_t; typedef struct bapp_remote_config_t { unsigned int user_io_id; /* used to select remote protocol(s) */ bool use_rf4ce; /* process only rf4ce protocol */ bool use_ir; }bapp_remote_config_t; typedef struct bapp_event_t { unsigned int code; }bapp_event_t; #ifdef __cplusplus extern "C" { #endif bapp_result_t bapp_remote_open( bapp_remote_t *p_remote ); void bapp_remote_close( bapp_remote_t handle ); void bapp_remote_set_config( bapp_remote_config_t *p_config ); void bapp_remote_get_config( bapp_remote_config_t *p_config ); bapp_result_t bapp_remote_get_event( bapp_remote_t handle, bapp_event_t *p_event /* [out] event from the user input device */ ); #ifdef __cplusplus } #endif #endif /* BAPP_REMOTE_H__ */