MakerLabs ACM
FirmwareUpdate Namespace Reference

Classes

struct  FirmwareUpdateActorState
 

Typedefs

using string = std::string
 
using string_view = std::experimental::string_view
 
using MD5Sum = std::array< uint8_t, 16 >
 
using FirmwareVersion = uint64_t
 
using UUID = UUID::UUID
 
using MutableFileMetadataFlatbuffer = std::vector< uint8_t >
 

Functions

auto get_current_partition () -> const esp_partition_t *
 
auto get_next_ota_partition () -> const esp_partition_t *
 
auto get_factory_partition () -> const esp_partition_t *
 
auto compare_partitions (const esp_partition_t *lhs, const esp_partition_t *rhs) -> bool
 
auto reboot () -> void
 
auto factory_reset () -> void
 
auto get_current_firmware_version () -> FirmwareVersion
 
auto checksum_partition_md5 (const esp_partition_t *partition, const size_t partition_size) -> MD5Sum
 
auto checksum_file_md5 (const string_view path) -> MD5Sum
 
auto get_md5sum_hex_str (const MD5Sum &md5sum) -> std::string
 
auto firmware_update_actor_behaviour (const Pid &self, StatePtr &_state, const Message &message) -> ResultUnion
 
auto firmware_update_actor_behaviour (const ActorModel::Pid &self, ActorModel::StatePtr &state, const ActorModel::Message &message) -> ActorModel::ResultUnion
 

Variables

constexpr char TAG [] = "firmware_update"
 

Typedef Documentation

◆ FirmwareVersion

using FirmwareUpdate::FirmwareVersion = typedef uint64_t

◆ MD5Sum

using FirmwareUpdate::MD5Sum = typedef std::array<uint8_t, 16>

◆ MutableFileMetadataFlatbuffer

using FirmwareUpdate::MutableFileMetadataFlatbuffer = typedef std::vector<uint8_t>

◆ string

typedef std::string FirmwareUpdate::string

◆ string_view

typedef std::experimental::string_view FirmwareUpdate::string_view

◆ UUID

using FirmwareUpdate::UUID = typedef UUID::UUID

Function Documentation

◆ checksum_file_md5()

auto FirmwareUpdate::checksum_file_md5 ( const string_view  path) -> MD5Sum

◆ checksum_partition_md5()

auto FirmwareUpdate::checksum_partition_md5 ( const esp_partition_t *  partition,
const size_t  partition_size 
) -> MD5Sum

◆ compare_partitions()

auto FirmwareUpdate::compare_partitions ( const esp_partition_t *  lhs,
const esp_partition_t *  rhs 
) -> bool

◆ factory_reset()

auto FirmwareUpdate::factory_reset ( ) -> void
Here is the call graph for this function:

◆ firmware_update_actor_behaviour() [1/2]

auto FirmwareUpdate::firmware_update_actor_behaviour ( const ActorModel::Pid &  self,
ActorModel::StatePtr &  state,
const ActorModel::Message &  message 
) -> ActorModel::ResultUnion

◆ firmware_update_actor_behaviour() [2/2]

auto FirmwareUpdate::firmware_update_actor_behaviour ( const Pid &  self,
StatePtr &  _state,
const Message &  message 
) -> ResultUnion
Here is the call graph for this function:

◆ get_current_firmware_version()

auto FirmwareUpdate::get_current_firmware_version ( ) -> FirmwareVersion

◆ get_current_partition()

auto FirmwareUpdate::get_current_partition ( ) -> const esp_partition_t *

◆ get_factory_partition()

auto FirmwareUpdate::get_factory_partition ( ) -> const esp_partition_t *

◆ get_md5sum_hex_str()

auto FirmwareUpdate::get_md5sum_hex_str ( const MD5Sum &  md5sum) -> std::string

◆ get_next_ota_partition()

auto FirmwareUpdate::get_next_ota_partition ( ) -> const esp_partition_t *
Here is the call graph for this function:

◆ reboot()

auto FirmwareUpdate::reboot ( ) -> void

Variable Documentation

◆ TAG

constexpr char FirmwareUpdate::TAG[] = "firmware_update"