Hello Perin,
When read the result , please write :
AD1_GetValue8((byte*)value);
For in the function of "byte AD2_GetValue8(byte *Values)" , it has include read the two channel result :
/* ===================================================================*/
byte AD2_GetValue8(byte *Values)
{
if (OutFlg != 0x03U) { /* Is output flag set? */
return ERR_NOTAVAIL; /* If no then error */
}
Values[0] = (byte)((byte)(AD2_OutV[0] >> 8U)); /* Save measured values to the output buffer */
Values[1] = (byte)((byte)(AD2_OutV[1] >> 8U)); /* Save measured values to the output buffer */
return ERR_OK; /* OK */
}
Hope it helps
Have a great day,
Alice
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------