35 #include "dsclientlogger.h"
44 printf(
"<<<<< Front Panel is initialized in Multi-App Mode >>>>>>>>\r\n");
46 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
49 (
char *)IARM_BUS_DSMGR_API_dsFPInit,
53 if (IARM_RESULT_SUCCESS == rpcRet)
66 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
68 (
char *)IARM_BUS_DSMGR_API_dsFPTerm,
72 if (IARM_RESULT_SUCCESS == rpcRet)
85 int len = strlen(pszChars),i=0;
86 unsigned char text[128]={
'\0'};
90 text[i] = pszChars[i];
94 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
97 (
char *)IARM_BUS_DSMGR_API_dsSetFPText,
101 if (IARM_RESULT_SUCCESS == rpcRet)
117 param.nHours = uHour;
118 param.nMinutes = uMinutes;
121 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
124 (
char *)IARM_BUS_DSMGR_API_dsSetFPTime,
128 if (IARM_RESULT_SUCCESS == rpcRet)
135 dsError_t dsSetFPScroll(
unsigned int nScrollHoldOnDur,
unsigned int nHorzScrollIterations,
unsigned int nVertScrollIterations)
142 param.nScrollHoldOnDur = nScrollHoldOnDur;
143 param.nHorzScrollIterations = nHorzScrollIterations;
144 param.nVertScrollIterations = nVertScrollIterations;
146 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
149 (
char *)IARM_BUS_DSMGR_API_dsSetFPScroll,
153 if (IARM_RESULT_SUCCESS == rpcRet)
168 param.eIndicator = eIndicator;
169 param.nBlinkDuration = nBlinkDuration;
170 param.nBlinkIterations = nBlinkIterations;
172 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
175 (
char *)IARM_BUS_DSMGR_API_dsSetFPBlink,
179 if (IARM_RESULT_SUCCESS == rpcRet)
193 param.eIndicator = eIndicator;
194 param.eBrightness = 0;
196 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
199 (
char *)IARM_BUS_DSMGR_API_dsGetFPBrightness,
203 if (IARM_RESULT_SUCCESS == rpcRet)
205 *pBrightness = param.eBrightness;
218 if(eIndicator >= dsFPD_INDICATOR_MAX || eBrightness > 100)
222 param.eIndicator = eIndicator;
223 param.eBrightness = eBrightness;
224 param.toPersist =
true;
226 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
229 (
char *)IARM_BUS_DSMGR_API_dsSetFPBrightness,
233 if (IARM_RESULT_SUCCESS == rpcRet)
247 if(eIndicator >= dsFPD_INDICATOR_MAX || eBrightness > 100)
252 param.eIndicator = eIndicator;
253 param.eBrightness = eBrightness;
254 param.toPersist = toPersist;
256 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
259 (
char *)IARM_BUS_DSMGR_API_dsSetFPBrightness,
263 if (IARM_RESULT_SUCCESS == rpcRet)
276 param.eIndicator = eIndicator;
277 param.eBrightness = 0;
279 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
282 (
char *)IARM_BUS_DSMGR_API_dsGetFPTextBrightness,
286 if (IARM_RESULT_SUCCESS == rpcRet)
288 *pBrightness = param.eBrightness;
300 param.eIndicator = eIndicator;
301 param.eBrightness = eBrightness;
303 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
306 (
char *)IARM_BUS_DSMGR_API_dsSetFPTextBrightness,
310 if (IARM_RESULT_SUCCESS == rpcRet)
322 param.eIndicator = eIndicator;
326 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
329 (
char *)IARM_BUS_DSMGR_API_dsGetFPColor,
333 if (IARM_RESULT_SUCCESS == rpcRet)
335 *pColor = param.eColor;
348 param.eIndicator = eIndicator;
349 param.eColor = eColor;
350 param.toPersist =
true;
352 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
355 (
char *)IARM_BUS_DSMGR_API_dsSetFPColor,
359 if (IARM_RESULT_SUCCESS == rpcRet)
372 param.eIndicator = eIndicator;
373 param.eColor = eColor;
374 param.toPersist = toPersist;
376 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
379 (
char *)IARM_BUS_DSMGR_API_dsSetFPColor,
383 if (IARM_RESULT_SUCCESS == rpcRet)
393 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
394 int ienable = enable;
397 (
char *)IARM_BUS_DSMGR_API_dsFPEnableCLockDisplay,
401 if (IARM_RESULT_SUCCESS == rpcRet)
415 param.eIndicator = eIndicator;
418 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
421 (
char *)IARM_BUS_DSMGR_API_dsSetFPState,
425 if (IARM_RESULT_SUCCESS == rpcRet)
442 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
445 (
char *)IARM_BUS_DSMGR_API_dsGetTimeFormat,
449 if (IARM_RESULT_SUCCESS == rpcRet)
451 *pTimeFormat = param.eTime;
463 param.eTime = eTimeFormat;
465 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
468 (
char *)IARM_BUS_DSMGR_API_dsSetTimeFormat,
472 if (IARM_RESULT_SUCCESS == rpcRet)
485 param.eIndicator = eIndicator;
488 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
491 (
char *)IARM_BUS_DSMGR_API_dsGetFPState,
495 if (IARM_RESULT_SUCCESS == rpcRet)
497 *state = param.state;
506 #ifndef USE_WPE_THUNDER_PLUGIN
512 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
515 (
char *)IARM_BUS_DSMGR_API_dsSetFPDMode,
519 if (IARM_RESULT_SUCCESS == rpcRet)
524 printf(
"%s currently not supported in Thunder Framework\n",__FUNCTION__);