PebbleOS
Loading...
Searching...
No Matches
Enumerations | Functions
firmware_update.h File Reference
#include <stdbool.h>
#include <kernel/events.h>

Enumerations

enum  FirmwareUpdateStatus { FirmwareUpdateStopped = 0 , FirmwareUpdateRunning = 1 , FirmwareUpdateCancelled = 2 , FirmwareUpdateFailed = 3 }
 State of the firmware update, also sent to the phone in the start response. More...
 

Functions

void firmware_update_init (void)
 Initialize the firmware update service.
 
unsigned int firmware_update_get_percent_progress (void)
 Get the progress of the running update.
 
void firmware_update_event_handler (PebbleSystemMessageEvent *event)
 Handle a firmware update start, failure or completion system message.
 
void firmware_update_pb_event_handler (PebblePutBytesEvent *event)
 Handle a put_bytes event during an update.
 
FirmwareUpdateStatus firmware_update_current_status (void)
 Get the state of the firmware update.
 
bool firmware_update_is_in_progress (void)
 Check whether a firmware update is running.