Home
last modified time | relevance | path

Searched refs:prms (Results 1 – 2 of 2) sorted by relevance

/hardware/akm/AK8975_FS/akmdfs/
DAKFS_FileIO.c43 int16 AKFS_LoadParameters(AK8975PRMS * prms, const char* path) in AKFS_LoadParameters() argument
58 if (fscanf(fp, AKFS_SCANF_FORMAT, buf, &prms->mfv_ho.u.x) != 2) { in AKFS_LoadParameters()
65 if (fscanf(fp, AKFS_SCANF_FORMAT, buf, &prms->mfv_ho.u.y) != 2) { in AKFS_LoadParameters()
72 if (fscanf(fp, AKFS_SCANF_FORMAT, buf, &prms->mfv_ho.u.z) != 2) { in AKFS_LoadParameters()
103 int16 AKFS_SaveParameters(AK8975PRMS *prms, const char* path) in AKFS_SaveParameters() argument
115 if (fprintf(fp, AKFS_PRINTF_FORMAT, "HO.x", prms->mfv_ho.u.x) < 0) { ret = 0; } in AKFS_SaveParameters()
116 if (fprintf(fp, AKFS_PRINTF_FORMAT, "HO.y", prms->mfv_ho.u.y) < 0) { ret = 0; } in AKFS_SaveParameters()
117 if (fprintf(fp, AKFS_PRINTF_FORMAT, "HO.z", prms->mfv_ho.u.z) < 0) { ret = 0; } in AKFS_SaveParameters()
DAKFS_FileIO.h35 int16 AKFS_LoadParameters(AK8975PRMS *prms, const char* path);
37 int16 AKFS_SaveParameters(AK8975PRMS* prms, const char* path);