Buoyancy Firmware  1.0
Buoyancy Vehicle Firmware Documentation
timers.h
Go to the documentation of this file.
1 #ifndef _TIMERS_H_
2 #define _TIMERS_H_
3 
4 #include "app_timer.h"
5 #include "nrfx_timer.h"
6 #include "main.h"
7 
17 #define IDLE_TO_SLEEP_TIME APP_TIMER_TICKS(2000*60)
18 #define MOTOR_STOP_TIME APP_TIMER_TICKS(5000)
19 #define UPDATE_MISSIONLOG_TIMER APP_TIMER_TICKS(1000)
20 #define MEASURE_BATTERY_TIMER APP_TIMER_TICKS(10000)
21 #define SENSORS_SAMPLE_TIMER APP_TIMER_TICKS(500)
22 #define UPDATE_FSM_TIMER APP_TIMER_TICKS(500)
23 #define KHZ_TO_SEC 125000
25 APP_TIMER_DEF(m_updateFSM_timer_id);
26 APP_TIMER_DEF(m_sleep_timer_id);
27 APP_TIMER_DEF(m_motorStop_timer_id);
28 APP_TIMER_DEF(m_repeatedBattery_timer_id);
29 APP_TIMER_DEF(m_sampleSensorData_timer_id);
30 APP_TIMER_DEF(m_updateMissionLog_timer_id);
34 void start_updateFSM_timer_handler(void);
35 
39 
43 
46 void stopSampleSensorDatatimer(void);
47 
50 void startSleepTimer(void);
51 
54 void stopSleepTimer(void);
55 
58 void startStopMotorTimer(void);
59 
62 void startMissiontimer(void);
63 
66 void stopMissiontimer(void);
67 
70 void startBatteryMeasureTimer(void);
71 
74 void stopBatteryMeasureTimer(void);
75 
79 
82 void stopUpdateMissionLogTimer(void);
83 
84 
90 
93 void uninitMissiontimer(void);
94 
95 
100 void timers_init(void);
101 
102 #endif // _TIMERS_H_
103 
104 
void stopBatteryMeasureTimer()
Definition: timers.c:204
void stopMissiontimer()
Definition: timers.c:232
void startSleepTimer()
Definition: timers.c:175
void uninitMissiontimer()
Definition: timers.c:249
void startMissiontimer()
Definition: timers.c:226
void updateMissiontimer(uint32_t time)
Definition: timers.c:238
void startUpdateMissionLogTimer()
Definition: timers.c:211
void stopSampleSensorDatatimer()
Definition: timers.c:167
void startBatteryMeasureTimer()
Definition: timers.c:197
void startSampleSensorDatatimer()
Definition: timers.c:160
void stop_updateFSM_timer_handler()
Definition: timers.c:153
void stopUpdateMissionLogTimer()
Definition: timers.c:218
unsigned int uint32_t
Definition: nrf_drv_uart_PP.c:30
void stopSleepTimer()
[start timer for Idle-to-sleep event]
Definition: timers.c:183
void startStopMotorTimer(void)
start timer for count down until check if motor has stopped.
void timers_init(void)
Function for Timer initialization.
Definition: timers.c:78