 |
RDK Documentation (Open Sourced RDK Components)
|
48 void _EventHandler(
const char *owner, IARM_EventId_t eventId,
void *data,
size_t len);
49 void _EventHandler(
const char *owner, IARM_EventId_t eventId,
void *data,
size_t len)
51 if (strcmp(owner,IARM_BUS_DSMGR_NAME) == 0)
53 printf(
"Ds Mgr Event Handler called %d ......... \r\n",eventId);
58 printf(
"EVENT_TIME_FORMAT_CHANGE Event %d Recvd \r\n",eventId);
59 printf(
"Time Format change to %s \r\n",eventData->data.FPDTimeFormat.eTimeFormat ==
dsFPD_TIME_12_HOUR ?
"12_HR":
"24_HR");
61 printf(
"Set Time format \r\n");
63 printf(
"Set Time format over\r\n");
66 printf(
"Exception Caught during setting time format \r\n");
78 int main(
int argc,
char *argv[])
81 printf(
"%s : <Timezone - 0(12_HR)-1(24_HR)> >\r\n", argv[0]);
85 int timzone = atoi((
const char *)argv[1]);
105 printf(
"Exception Caught during [%s]\r\n", argv[0]);
IARM_Result_t IARM_Bus_Term(void)
This API is used to terminate the IARM-Bus library.
FrontPanelTextDisplay & getTextDisplay(int id)
This function gets the FrontPanelTextDisplay instance corresponding to the specified id,...
static FrontPanelConfig & getInstance()
This API gets the instance of the FrontPanelConfig. When called for the first time,...
@ IARM_BUS_DSMGR_EVENT_TIME_FORMAT_CHANGE
Classes and structures for front panel text display are defined here.
It contains class referenced by manager.cpp file.
IARM_Result_t IARM_Bus_RegisterEventHandler(const char *ownerName, IARM_EventId_t eventId, IARM_EventHandler_t handler)
This API register to listen to event and provide the callback function for event notification....
Device Settings HAL error codes.
void setTime(const int uiHours, const int uiMinutes)
This API sets the time of the LED display by switching the text display to time mode.
Device Settings HAL utilities.
IARM_Result_t IARM_Bus_Disconnect(void)
This API disconnect Application from IARM Bus so the application will not receive any IARM event or R...
static void Initialize()
This API is used to initialize the Device Setting module. Each API should be called by any client of ...
RDK IARM-Bus API Declarations.
Structures and classes to manage front panel are defined here.
void setTimeFormat(const int iTimeFormat)
This API sets the time format of the LED display to either 12hr or 24hr format.
static void DeInitialize()
This API is used to deinitialize the device settings module. DeInitialize() must be called to release...
IARM_Result_t IARM_Bus_Connect(void)
This API is used to connect application to the IARM bus daemon. After connected, the application can ...
IARM_Result_t IARM_Bus_Init(const char *name)
This API is used to initialize the IARM-Bus library.