CTS-SAT-1-OBC-Firmware
|
Go to the source code of this file.
Classes | |
struct | ANT_deployment_status_struct_t |
Functions | |
uint8_t | ANT_CMD_reset (enum ANT_i2c_bus_mcu i2c_bus_mcu) |
Performs a reset of the antenna deployment systems microcontroller which is specified. | |
uint8_t | ANT_CMD_arm_antenna_system (enum ANT_i2c_bus_mcu i2c_bus_mcu) |
Arm the antenna deploy system. | |
uint8_t | ANT_CMD_disarm_antenna_system (enum ANT_i2c_bus_mcu i2c_bus_mcu) |
Disarms the antenna deploy system. | |
uint8_t | ANT_CMD_deploy_antenna (enum ANT_i2c_bus_mcu i2c_bus_mcu, uint8_t antenna, uint8_t activation_time_seconds) |
activates the deployment system for the selected antenna for the specified amount of time | |
uint8_t | ANT_CMD_start_automated_sequential_deployment (enum ANT_i2c_bus_mcu i2c_bus_mcu, uint8_t activation_time_seconds) |
deploys all antennas one by one sequentially. | |
uint8_t | ANT_CMD_deploy_antenna_with_override (enum ANT_i2c_bus_mcu i2c_bus_mcu, uint8_t antenna, uint8_t activation_time_seconds) |
initiates deployment of the selected antenna, ignoring whether the current status of that antenna is deployed | |
uint8_t | ANT_CMD_cancel_deployment_system_activation (enum ANT_i2c_bus_mcu i2c_bus_mcu) |
cancels any active attempts to deploy an antenna | |
uint8_t | ANT_CMD_measure_temp (enum ANT_i2c_bus_mcu i2c_bus_mcu, uint16_t *result) |
Measures the temperature at the antenna controller system. | |
int16_t | ANT_convert_raw_temp_to_cCelsius (uint16_t measurement) |
Converts temperature measurement to centi-degrees celsius. | |
uint8_t | ANT_CMD_report_deployment_status (enum ANT_i2c_bus_mcu i2c_bus_mcu, ANT_deployment_status_struct_t *response) |
Writes 2 bytes of information representing the deployment status of the antennas to the passed buffer, information on interpreting the response may be found in the ISIS Antenna System user manual. Doc ID: ISIS.ANTS.UM.001 pg. 42. | |
uint8_t | ANT_CMD_report_antenna_deployment_activation_count (enum ANT_i2c_bus_mcu i2c_bus_mcu, uint8_t antenna, uint8_t *response) |
writes the number of times deployment has been attempted (for a specified antenna and mcu) in a response buffer. | |
uint8_t | ANT_CMD_get_antenna_deployment_activation_time (enum ANT_i2c_bus_mcu i2c_bus_mcu, uint8_t antenna, uint32_t *result) |
writes the cumulative time (in ms increments) that the deployment system has been active (for a specified antenna and mcu) in a response buffer. | |
Variables | |
static const uint32_t | ANT_POWER_ON_BOOTUP_DURATION_MS = 800 |
Duration to wait after enabling power to the antenna deployment system before sending commands. | |
uint8_t ANT_CMD_arm_antenna_system | ( | enum ANT_i2c_bus_mcu | i2c_bus_mcu | ) |
Arm the antenna deploy system.
i2c_bus_mcu | specifies which mcu on the antenna deployment system to arm, and which i2c bus to use |
uint8_t ANT_CMD_cancel_deployment_system_activation | ( | enum ANT_i2c_bus_mcu | i2c_bus_mcu | ) |
cancels any active attempts to deploy an antenna
i2c_bus_mcu | specifies which mcu on the antenna deployment system to transmit to, and which i2c bus to use |
uint8_t ANT_CMD_deploy_antenna | ( | enum ANT_i2c_bus_mcu | i2c_bus_mcu, |
uint8_t | antenna, | ||
uint8_t | activation_time_seconds ) |
activates the deployment system for the selected antenna for the specified amount of time
i2c_bus_mcu | specifies which mcu on the antenna deployment system to use, and which i2c bus to use |
antenna | The antenna number of the antenna to deploy, this is a number between 1-4. |
activation_time_seconds | the amount of time the deployment system should be active for in seconds. |
uint8_t ANT_CMD_deploy_antenna_with_override | ( | enum ANT_i2c_bus_mcu | i2c_bus_mcu, |
uint8_t | antenna, | ||
uint8_t | activation_time_seconds ) |
initiates deployment of the selected antenna, ignoring whether the current status of that antenna is deployed
i2c_bus_mcu | specifies which mcu on the antenna deployment system to use, and which i2c bus to use |
antenna | the antenna to deploy |
activation_time_seconds | the amount of time the deployment system should be active for in seconds. |
uint8_t ANT_CMD_disarm_antenna_system | ( | enum ANT_i2c_bus_mcu | i2c_bus_mcu | ) |
Disarms the antenna deploy system.
i2c_bus_mcu | specifies which mcu on the antenna deployment system to disarm, and which i2c bus to use |
uint8_t ANT_CMD_get_antenna_deployment_activation_time | ( | enum ANT_i2c_bus_mcu | i2c_bus_mcu, |
uint8_t | antenna, | ||
uint32_t * | result_ms ) |
writes the cumulative time (in ms increments) that the deployment system has been active (for a specified antenna and mcu) in a response buffer.
i2c_bus_mcu | specifies which mcu on the antenna deployment system to transmit to, and which i2c bus to use |
antenna | the antenna to check. A number between 1-4 |
result_ms | a 2 byte buffer where the cumulative deployment time (in ms increments) will be written. divide the response by 20 to get seconds. |
uint8_t ANT_CMD_measure_temp | ( | enum ANT_i2c_bus_mcu | i2c_bus_mcu, |
uint16_t * | result ) |
Measures the temperature at the antenna controller system.
i2c_bus_mcu | specifies which mcu on the antenna deployment system to transmit to, and which i2c bus to use |
result | a pointer to a 16 bit unsigned integer where the temperature measurement is written. Refer to the "ISIS.ANTS.UM.001" datasheet by ISISpace for information on interpreting this measurement |
uint8_t ANT_CMD_report_antenna_deployment_activation_count | ( | enum ANT_i2c_bus_mcu | i2c_bus_mcu, |
uint8_t | antenna, | ||
uint8_t * | response ) |
writes the number of times deployment has been attempted (for a specified antenna and mcu) in a response buffer.
i2c_bus_mcu | specifies which mcu on the antenna deployment system to check, and which i2c bus to use |
antenna | the antenna to check |
response | a 1 byte buffer where the count of attempted deployments will be written |
uint8_t ANT_CMD_report_deployment_status | ( | enum ANT_i2c_bus_mcu | i2c_bus_mcu, |
ANT_deployment_status_struct_t * | response ) |
Writes 2 bytes of information representing the deployment status of the antennas to the passed buffer, information on interpreting the response may be found in the ISIS Antenna System user manual. Doc ID: ISIS.ANTS.UM.001 pg. 42.
i2c_bus_mcu | specifies which mcu on the antenna deployment system to transmit to, and which i2c bus to use |
response | a two byte buffer where the status information is written to. |
uint8_t ANT_CMD_reset | ( | enum ANT_i2c_bus_mcu | i2c_bus_mcu | ) |
Performs a reset of the antenna deployment systems microcontroller which is specified.
i2c_bus_mcu | specifies which mcu on the antenna deployment system to reset, and which i2c bus to use |
uint8_t ANT_CMD_start_automated_sequential_deployment | ( | enum ANT_i2c_bus_mcu | i2c_bus_mcu, |
uint8_t | activation_time_seconds ) |
deploys all antennas one by one sequentially.
i2c_bus_mcu | specifies which mcu on the antenna deployment system to use, and which i2c bus to use |
activation_time_seconds | the amount of time the deployment system for each antenna should be active for in seconds |
int16_t ANT_convert_raw_temp_to_cCelsius | ( | uint16_t | measurement | ) |
Converts temperature measurement to centi-degrees celsius.
measurement | measurement result from ANT_CMD_measure_temp() |
|
static |
Duration to wait after enabling power to the antenna deployment system before sending commands.