Go to the documentation of this file.
23 static int32_t m_bnd_ix[] = {0, 1, 2, 3, 4, 5, 6, 7, -1, 8, 9, 10, 11,
26 static int32_t lam_cirrus = 1378;
27 static float f0_cirrus = 36.463;
28 int iprm, ix_in, ix_out, ibnd;
30 int *lcl_int, *out_int;
31 float *lcl_flt, *out_flt;
35 if (strcmp(pname,
"Lambda") == 0)
37 else if (strcmp(pname,
"Fobar") == 0)
40 printf(
"%s, %d: parameter %s is outside values this routine can handle\n",
41 __FILE__, __LINE__, pname);
48 printf(
"%s, %d: failure to read sensor parameter %s\n",
49 __FILE__, __LINE__, pname);
53 case 0: lcl_int = (
int *) lcl_prm;
54 out_int = (
int *) pval;
56 case 1: lcl_flt = (
float *) lcl_prm;
57 out_flt = (
float *) pval;
64 for (ibnd = 0, ix_out =
MAX_BND - 1; ibnd <
MAX_BND; ibnd++, ix_out--) {
65 if (m_bnd_ix[ix_out] >= 0) {
67 case 0: *(out_int + ix_out) = *(lcl_int + ix_in);
69 case 1: *(out_flt + ix_out) = *(lcl_flt + ix_in);
75 case 0: *(out_int + ix_out) = lam_cirrus;
77 case 1: *(out_flt + ix_out) = f0_cirrus;
int bnd_ix_2_sen_info(char *pname, void *pval)
int32_t rdsensorinfo(int32_t, int32_t, const char *, void **)