The program sends the current location over the cellular network.

Dependencies:   aconno_I2C ublox-at-cellular-interface gnss ublox-cellular-base Lis2dh12 ublox-cellular-base-n2xx ublox-at-cellular-interface-n2xx low-power-sleep

Fork of example-gnss by u-blox

tasks/tasks.h

Committer:
jurica238814
Date:
2018-11-30
Revision:
8:2bf886335fd0
Child:
9:f943c09d9173

File content as of revision 8:2bf886335fd0:

/**
 * Collection of all tasks  
 * Made by Jurica @ aconno
 * More info @ aconno.de
 * 
 */

#ifndef __TASKS_H__
#define __TASKS_H__

#include "mbed.h"
#include "aconnoConfig.h"
#include "uBloxSara.h"
#include "gnss.h"

struct myParams_t
{
    GnssSerial *gnss;
    UBloxSara *sara;
};

enum MainStates
{
    STATE_IDLE,
    STATE_ALARM,
    STATE_ALARM_OFF,
    STATE_LIS_DETECTION
};

void idleCallback();
void alarmCallback(myParams_t *myParams);
void alarmOffCallback();
void movementCallback();
void gnssLocationCallback(GnssSerial *gnss);

#endif // __TASKS_H__