![]() |
SatNOGS-COMMS
4.1.0
A COMMS subsystem for CubeSats
|
#include <ota.hpp>
Classes | |
| class | start_tlc |
| class | data_tlc |
| class | fin_tlc |
| class | response_tlm |
| class | session |
| class | inval_session |
Public Types | |
| enum class | subsys : uint8_t { MCU_SLOT0 , MCU_SLOT1 , FPGA_WIC , MCU_LITTLEFS , FPGA_LITTLEFS } |
| Destination target for a firmware file. More... | |
| enum class | status : uint8_t { OK , INVALID_SEQ , INVALID_SESSION , INVALID_DST , INVALID_SLOT , INVALID_HASH , INVALID_SIZE , INVALID_STATE , INVALID_DATA , NO_SESSIONS_LEFT , FIN_OPERATION_PENDING , INTERNAL_ERROR , CURRENT_IMG_NOT_CONFIRMED } |
Public Member Functions | |
| ota (ota const &)=delete | |
| void | operator= (ota const &)=delete |
| void | reset_session (uint32_t id) |
| void | reset_sessions () |
| void | start (const start_tlc &req, response_tlm &tlm) |
| void | recv (const data_tlc &tlc, response_tlm &tlm) |
| void | finalize (const fin_tlc &tlc, response_tlm &tlm, int wdgid) |
| void | confirm_image () |
| Sets the running firmware as confirmed. | |
| bool | get_session_info (uint8_t id, session &out) const |
Static Public Member Functions | |
| static ota & | get_instance () |
Static Public Attributes | |
| static constexpr size_t | MAX_FILE_LEN = 64 |
| The maximum supported filename length. | |
| static constexpr const char * | LITTLEFS_MCU_DIR = "/SD/ota-mcu/" |
| static constexpr const char * | LITTLEFS_FPGA_DIR = "/SD/ota-fpga/" |
Protected Member Functions | |
| ota () | |
Static Protected Attributes | |
| static constexpr size_t | OTA_RETENTION_MEM_SIZE = 1752 |
| The available retention memory for the OTA service. | |
|
strong |
|
strong |
Destination target for a firmware file.
|
delete |
| void satnogs::comms::ota::confirm_image | ( | ) |
Sets the running firmware as confirmed.
| void satnogs::comms::ota::finalize | ( | const fin_tlc & | tlc, |
| response_tlm & | tlm, | ||
| int | wdgid ) |
| bool satnogs::comms::ota::get_session_info | ( | uint8_t | id, |
| session & | out ) const |
|
delete |
| void satnogs::comms::ota::recv | ( | const data_tlc & | tlc, |
| response_tlm & | tlm ) |
| void satnogs::comms::ota::start | ( | const start_tlc & | req, |
| response_tlm & | tlm ) |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexprprotected |