Axeda Ready Demo for Freescale FRDM-KL46Z as accident alert system

Dependencies:   FRDM_MMA8451Q KL46Z-USBHost MAG3110 SocketModem TSI mbed FATFileSystem

Fork of AxedaGo-Freescal_FRDM-KL46Z by Axeda Corp

Committer:
AxedaCorp
Date:
Tue Jul 01 21:31:54 2014 +0000
Revision:
0:65004368569c
Made initial

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AxedaCorp 0:65004368569c 1 /************************************************************************************/
AxedaCorp 0:65004368569c 2 /* axSerializer.c */
AxedaCorp 0:65004368569c 3 /* ©2013 Axeda Corporation */
AxedaCorp 0:65004368569c 4 /* */
AxedaCorp 0:65004368569c 5 /* Defines methods for transposing the data in domain objects into a serialized */
AxedaCorp 0:65004368569c 6 /* encoding for transmission to the Platform Endpoint. This is a platform independent*/
AxedaCorp 0:65004368569c 7 /* implementation that can be applied to any device that supports ANSI C. */
AxedaCorp 0:65004368569c 8 /* */
AxedaCorp 0:65004368569c 9 /************************************************************************************/
AxedaCorp 0:65004368569c 10
AxedaCorp 0:65004368569c 11 #ifndef AXSERIALIZER_H
AxedaCorp 0:65004368569c 12 #define AXSERIALIZER_H
AxedaCorp 0:65004368569c 13
AxedaCorp 0:65004368569c 14 #include "cJSON.h"
AxedaCorp 0:65004368569c 15 #include "axTypes.h"
AxedaCorp 0:65004368569c 16 #include "axConstants.h"
AxedaCorp 0:65004368569c 17
AxedaCorp 0:65004368569c 18 extern int terse_enable;
AxedaCorp 0:65004368569c 19
AxedaCorp 0:65004368569c 20 #ifdef __cplusplus
AxedaCorp 0:65004368569c 21 extern "C" {
AxedaCorp 0:65004368569c 22 #endif
AxedaCorp 0:65004368569c 23
AxedaCorp 0:65004368569c 24
AxedaCorp 0:65004368569c 25 cJSON *dataSet2JSON(ax_dataSet *di[], int len, int terse_on);
AxedaCorp 0:65004368569c 26 cJSON *getRegistrationJSON(ax_deviceID *device, int pingRate);
AxedaCorp 0:65004368569c 27 cJSON *getPKGStatusJSON(int status, char *error, int priority, int time, int terse_on);
AxedaCorp 0:65004368569c 28 cJSON *AlarmsToJSON(ax_alarm *alarms[], int len, int terse_on);
AxedaCorp 0:65004368569c 29 cJSON *eventsToJSON(ax_event *events[], int len, int terse_on);
AxedaCorp 0:65004368569c 30 cJSON *locationsToJSON(ax_location *locations[], int len, int terse_on);
AxedaCorp 0:65004368569c 31
AxedaCorp 0:65004368569c 32 #ifdef __cplusplus
AxedaCorp 0:65004368569c 33 }
AxedaCorp 0:65004368569c 34 #endif
AxedaCorp 0:65004368569c 35
AxedaCorp 0:65004368569c 36 #endif
AxedaCorp 0:65004368569c 37