Document number
205065
Version
Rev. N
Issue date
2019-02-04
Sirius OBC and TCM User Manual
Page
89
of
174
HK channel
Formula
Temp [m°C]
Temp_mV = (ADC_value*2500)/2^24
Temp_mC = (1000*(3V3_mV - Temp_mV) - Temp_mV*1210) / 0.00385*(Temp_mV - 3300)
Iin [mA]
Iin_mA = (ADC_value*5000)/(2^24)
Vin [mV]
Vin_mV = (ADC_value*20575)/(2^24)
3V3 [mV]
3V3_mV = (ADC_value*5000)/(2^24)
2V5 [mV]
2V5_mV = (ADC_value*5000)/(2^24)
1V2 [mV]
1V2_mV =(ADC_value*2525)/(2^24)
5.10.2. RTEMS API
This API represents the driver interface of the module from an RTEMS user application's
perspective.
The driver functionality is accessed through the RTEMS POSIX API for ease of usage. In
case of a failure on a function call, the
errno
value is set for determining the cause.
5.10.2.1. Enum adc_ioctl_sample_rate_e
Enumerator for the ADC sample rate.
Enumerator
Description
ADC_IOCTL_SPS_31250
SPS 31250
ADC_IOCTL_SPS_15625
SPS 15625
ADC_IOCTL_SPS_10417
SPS 10417
ADC_IOCTL_SPS_5208
SPS 5208
ADC_IOCTL_SPS_2597
SPS 2597
ADC_IOCTL_SPS_1007
SPS 1007
ADC_IOCTL_SPS_503_8
SPS 503.8
ADC_IOCTL_SPS_381
SPS 381
ADC_IOCTL_SPS_200_3
SPS 200.3
ADC_IOCTL_SPS_100_5
SPS 100.5
ADC_IOCTL_SPS_59_52
SPS 59.52
ADC_IOCTL_SPS_49_68
SPS 49.68
ADC_IOCTL_SPS_20_01
SPS 20.01
ADC_IOCTL_SPS_16_63
SPS 16.63
ADC_IOCTL_SPS_10
SPS 10
ADC_IOCTL_SPS_5
SPS 5
ADC_IOCTL_SPS_2_5
SPS 2.5
ADC_IOCTL_SPS_1_25
SPS 1.25