A N 3 7 0
44
Rev. 1.0
vDmdTs_IsrCall
Description
: This function is to be called form the user application DMD ISR. It is up to
the main application to define a DMD ISR routine. Then this function must be called from
within that ISR.
The function skips the number of temperate sensor demodulator samples specified in the
biSampleSkipCount argument of the vDmdTs_Setup() function before it produces a new
reading. It also updates a samples taken count which can be acquired by the bDmdTs_Get-
SamplesTaken() function. Once the appropriate number of samples have been skipped
then it calls iDmdTs_GetData() and stores the returned value in the local variable. The
stored value of the latest sample can be accessed by calling the functions iDmdTs_GetLat-
estDmdSample() to get the raw sample or iDmdTs_GetLatestTemp() to get the sample
converted to temperature in internal units.
Inputs
:
None
Outputs
:
None
bDmdTs_GetSamplesTaken
Description
: Returns the number of valid (not skipped!) samples taken by the vDm-
dTs_IsrCall() since enable or since the number of samples was cleared by reading the lat-
est sample by calling iDmdTs_GetLatestDmdSample() or iDmdTs_GetLatestTemp().
Inputs
:
None
Outputs
:
Samples Taken: (BYTE) Number of valid samples taken by the vDmdTs_IsrCall()
since enable or last clear of the sample count by reading the latest sample value.