|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Go to the source code of this file.
Functions | |
| bool | board_adc_init (void) |
| bool | board_adc_read (board_adc_input_t input, uint16_t *counts, uint32_t timeout_ms) |
| void | board_adc_snapshot (board_adc_snapshot_t *snapshot, uint32_t timeout_ms) |
Variables | |
| ADC_HandleTypeDef | hadc1 |
| static const uint32_t | channels [BOARD_ADC_COUNT] |
| static bool | calibrated |
| bool board_adc_init | ( | void | ) |
Definition at line 19 of file board_adc.c.
References ADC_CALIB_OFFSET_LINEARITY, ADC_SINGLE_ENDED, calibrated, hadc1, HAL_ADCEx_Calibration_Start(), and HAL_OK.
Referenced by board_bringup_power_up().
| bool board_adc_read | ( | board_adc_input_t | input, |
| uint16_t * | counts, | ||
| uint32_t | timeout_ms ) |
Definition at line 28 of file board_adc.c.
References ADC_OFFSET_NONE, ADC_REGULAR_RANK_1, ADC_SAMPLETIME_387CYCLES_5, ADC_SINGLE_ENDED, BOARD_ADC_COUNT, channels, config, DISABLE, hadc1, HAL_ADC_ConfigChannel(), HAL_ADC_GetValue(), HAL_ADC_PollForConversion(), HAL_ADC_Start(), HAL_ADC_Stop(), HAL_OK, and ok.
Referenced by board_adc_snapshot(), and board_bringup_read_battery().
| void board_adc_snapshot | ( | board_adc_snapshot_t * | snapshot, |
| uint32_t | timeout_ms ) |
Definition at line 54 of file board_adc.c.
References BOARD_ADC_COUNT, and board_adc_read().
Referenced by bringup_task().
|
static |
Definition at line 17 of file board_adc.c.
Referenced by board_adc_init(), fsw::calibration::IMUCalibrationSystem::calibrateIMU(), fsw::calibration::IMUCalibration::calibrateReading(), fsw::calibration::IMUCalibration::computeCalibrationQuality(), main(), and fsw::nav::EKFNavigationEnhanced::processMagnetometerMeasurement().
|
static |
Definition at line 7 of file board_adc.c.
Referenced by board_adc_read(), anonymous_namespace{config_broadcast_service_main.cpp}::buildPackets(), fsw::config::BoardDiscovery::generate_sensor_config(), t7(), and fsw::config::DynamicConfigManager::update_with_boards().
|
extern |
Definition at line 48 of file main.c.
Referenced by board_adc_init(), board_adc_read(), and MX_ADC1_Init().