STLUX library
UM1753
12/21
DocID026248 Rev 1
Header
Input parameters
Output parameters
Functionality
ADC_PowerUp
This function performs the
correct power-on sequence
for the ADC (after a power
down to save power).
ADC_PowerDown
This function performs the
correct power-down
sequence for the ADC (to
save power).
ADC_Delay
ADC_Delay_Value
This function introduces
a delay in the following
conversion.
ADC_Measure
ADC_Channel_Measure is the channel
number to be activated for the data
acquisition.
ADC_Gain_Measure is the gain factor
to be applied for the conversion.
This function returns
the 16-bit value
coming from the
specified channel.
Given a channel number and
a gain factor, the function
returns a 16-bit value
captured by the ADC.
ADC_GetStatus
The returned data is
the current value of
the ADC status
register.
This function gets the current
ADC status.
ADC_SetStatus
EOS: end of sequence mode bit.HW
sets this bit at the end of conversion
sequence and must be cleared by SW.
This bit is white-clear.
EOC: end of conversion mode bit. HW
sets this bit at the end of each
conversion and must be cleared by SW.
This bit is white-clear.
This function sets the current
ADC status.
Table 5. STLUX385A analog-to-digital converter (continued)