Buoyancy Firmware  1.0
Buoyancy Vehicle Firmware Documentation
timers.c File Reference
#include "timers.h"
#include "FSM.h"
#include "mission.h"
Include dependency graph for timers.c:

Functions

nrfx_timer_event_handler_t missionTimerHandler (nrf_timer_event_t event_type, void *p_context)
 mission Timer Handler - End current mission when triggered. More...
 
void SleepTimerHandler (void)
 IDLE-to-Sleep timer handler. More...
 
void stopMotorTimerHandler (void)
 stop Motor timer handler. More...
 
void timers_init (void)
 Function for Timer initialization. More...
 
void start_updateFSM_timer_handler ()
 
More...
 
void stop_updateFSM_timer_handler ()
 
More...
 
void startSampleSensorDatatimer ()
 
More...
 
void stopSampleSensorDatatimer ()
 
More...
 
void startSleepTimer ()
 
More...
 
void stopSleepTimer ()
 [start timer for Idle-to-sleep event] More...
 
void startMotorStopTimer ()
 [stop timer for Idle-to-sleep event] More...
 
void startBatteryMeasureTimer ()
 
More...
 
void stopBatteryMeasureTimer ()
 
More...
 
void startUpdateMissionLogTimer ()
 
More...
 
void stopUpdateMissionLogTimer ()
 
More...
 
void startMissiontimer ()
 
More...
 
void stopMissiontimer ()
 
More...
 
void updateMissiontimer (uint32_t time)
 
More...
 
void uninitMissiontimer ()
 
More...
 

Variables

FSM_t fsm
 Create Finite State Machine struct instance. More...
 
mission_t mission
 Create mission struct instance. More...
 
bool sampleSensorData
 Flag to signal sampling battery, pressure, and TMP117. More...
 
bool updateFSM
 Init to true in order to access state machine. More...
 
bool missionLogUpdated
 Flag to signal mission log is updated. More...
 
bool motorStopped
 Flag to signal if motor is stopped or need to be stopped. More...