41 #include "safec_lib.h"
49 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
51 (
char *)IARM_BUS_DSMGR_API_dsSetPreferredSleepMode,
54 if (IARM_RESULT_SUCCESS == rpcRet)
69 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
72 (
char *)IARM_BUS_DSMGR_API_dsGetPreferredSleepMode,
76 if (IARM_RESULT_SUCCESS != rpcRet)
94 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
96 param.temperature = 0.0;
99 (
char *)IARM_BUS_DSMGR_API_dsGetCPUTemperature,
103 if (IARM_RESULT_SUCCESS != rpcRet)
108 *cpuTemperature = param.temperature;
120 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
122 param.versionNumber = 0x10000;
125 (
char *)IARM_BUS_DSMGR_API_dsGetVersion,
129 if (IARM_RESULT_SUCCESS != rpcRet)
134 *versionNumber = param.versionNumber;
145 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
147 param.versionNumber = versionNumber;
150 (
char *)IARM_BUS_DSMGR_API_dsSetVersion,
154 if (IARM_RESULT_SUCCESS != rpcRet)
171 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
174 (
char *)IARM_BUS_DSMGR_API_dsGetSocIDFromSDK,
178 if (IARM_RESULT_SUCCESS != rpcRet)
182 rc = strcpy_s(socID,
sizeof(param.socID),param.socID);
194 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
199 printf(
"dsCLI::getHostEDID \r\n");
202 (
char *)IARM_BUS_DSMGR_API_dsGetHostEDID,
206 if (IARM_RESULT_SUCCESS == rpcRet)
209 printf(
"dsCLI ::getHostEDID returns %d bytes\r\n", param.length);
210 rc = memcpy_s((
void *)edid,param.length, param.bytes, param.length);
215 *length = param.length;