|
CTS-SAT-1-OBC-Firmware
|


Go to the source code of this file.
Functions | |
| uint8_t | MPI_send_command_get_response (const uint8_t *bytes_to_send, const size_t bytes_to_send_len, uint8_t *rx_buffer, const size_t rx_buffer_max_size, uint16_t *rx_buffer_len) |
| Sends commandcode+params to the MPI as bytes. | |
| uint8_t | MPI_enable_active_mode (const char output_file_path[]) |
| Turns on MPI science mode and Enables DMA interrupt for MPI channel. | |
| uint8_t | MPI_disable_active_mode (MPI_reason_for_stopping_active_mode_enum_t reason_for_stopping) |
| uint8_t | MPI_validate_command_response (const uint8_t command_code, uint8_t *rx_buffer, const uint16_t rx_buffer_len) |
| The MPI responds to each telecommand with a response code consisting of an echo of the telecommand code byte and a status byte (either 254 or OxFE) for success or error code otherwise. | |
| char * | MPI_reason_for_stopping_active_mode_enum_to_str (MPI_reason_for_stopping_active_mode_enum_t reason) |
Variables | |
| static const uint8_t | MPI_COMMAND_SUCCESS_RESPONSE_VALUE = 0xFE |
| volatile MPI_rx_mode_enum_t | MPI_current_uart_rx_mode |
| Current mode under which the MPI is being operated. | |
| uint8_t | MPI_science_data_file_is_open |
| volatile uint32_t | MPI_science_data_bytes_lost |
| lfs_file_t | MPI_science_data_file_pointer |
| uint32_t | MPI_recording_start_uptime_ms |
| uint8_t MPI_disable_active_mode | ( | MPI_reason_for_stopping_active_mode_enum_t | reason_for_stopping | ) |


| uint8_t MPI_enable_active_mode | ( | const char | output_file_path[] | ) |
Turns on MPI science mode and Enables DMA interrupt for MPI channel.


| char * MPI_reason_for_stopping_active_mode_enum_to_str | ( | MPI_reason_for_stopping_active_mode_enum_t | reason | ) |

| uint8_t MPI_send_command_get_response | ( | const uint8_t * | bytes_to_send, |
| const size_t | bytes_to_send_len, | ||
| uint8_t * | rx_buffer, | ||
| const size_t | rx_buffer_max_size, | ||
| uint16_t * | rx_buffer_len ) |
Sends commandcode+params to the MPI as bytes.
| bytes_to_send | Buffer containing the telecommand + params (IF ANY) as hex bytes |
| bytes_to_send_len | Size of telecommand buffer |
| rx_buffer | Buffer to store incoming response from the MPI |
| rx_buffer_max_size | The maximum size of the MPI response buffer |
| rx_buffer_len | Pointer to variable that will contain the length of the populated MPI response buffer |


| uint8_t MPI_validate_command_response | ( | const uint8_t | command_code, |
| uint8_t * | rx_buffer, | ||
| const uint16_t | rx_buffer_len ) |
The MPI responds to each telecommand with a response code consisting of an echo of the telecommand code byte and a status byte (either 254 or OxFE) for success or error code otherwise.
| tx_buffer | MPI telecommand buffer containing bytes sent |
| rx_buffer | MPI response buffer containing bytes received |
| tx_buffer_size | Size of the MPI response buffer |

|
static |
|
extern |
Current mode under which the MPI is being operated.
|
extern |
|
extern |
|
extern |
|
extern |