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:
Wed Jul 02 19:57:37 2014 +0000
Revision:
2:2f9019c5a9fc
Parent:
0:65004368569c
ip switch

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AxedaCorp 0:65004368569c 1
AxedaCorp 0:65004368569c 2
AxedaCorp 0:65004368569c 3 #ifndef _AXTRANSPORT_H_
AxedaCorp 0:65004368569c 4 #define _AXTRANSPORT_H_
AxedaCorp 0:65004368569c 5
AxedaCorp 0:65004368569c 6 #include "axTypes.h"
AxedaCorp 0:65004368569c 7
AxedaCorp 0:65004368569c 8 /************************************************************************************/
AxedaCorp 0:65004368569c 9 /*Struct ax_socket */
AxedaCorp 0:65004368569c 10 /* */
AxedaCorp 0:65004368569c 11 /*The following structure is meant as a mechanism to pass information from a network*/
AxedaCorp 0:65004368569c 12 /*function to the next. It can be overridden with machine specific code, provided */
AxedaCorp 0:65004368569c 13 /* that all of the functions in this file prefixed with net_ can handle it correctly*/
AxedaCorp 0:65004368569c 14 /************************************************************************************/
AxedaCorp 0:65004368569c 15 typedef struct {
AxedaCorp 0:65004368569c 16 //put any structures/file descriptors here so you can access them from any of the net_ calls.
AxedaCorp 0:65004368569c 17 }ax_socket;
AxedaCorp 0:65004368569c 18
AxedaCorp 0:65004368569c 19 #ifdef __cplusplus
AxedaCorp 0:65004368569c 20 extern "C" {
AxedaCorp 0:65004368569c 21 #endif
AxedaCorp 0:65004368569c 22
AxedaCorp 0:65004368569c 23
AxedaCorp 0:65004368569c 24 long getEpoch();
AxedaCorp 0:65004368569c 25 void ax_print(int msgType, char *msg);
AxedaCorp 0:65004368569c 26 int randInt();
AxedaCorp 0:65004368569c 27 int seedRand();
AxedaCorp 0:65004368569c 28
AxedaCorp 0:65004368569c 29 void sys_delay(int seconds);
AxedaCorp 0:65004368569c 30
AxedaCorp 0:65004368569c 31 int net_socketInit(ax_socket *sock);
AxedaCorp 0:65004368569c 32 int net_socketOpen(ax_socket *sock, char *server, int port, int secure);
AxedaCorp 0:65004368569c 33 int net_socketWrite(ax_socket *sock, char *data, int size);
AxedaCorp 0:65004368569c 34 int net_socketClose(ax_socket *sock);
AxedaCorp 0:65004368569c 35 int net_socketFlush(ax_socket *sock);
AxedaCorp 0:65004368569c 36 int net_socketRead(ax_socket *sock, int timeout, unsigned char *buffer, int bufferSz, int *readSz);
AxedaCorp 0:65004368569c 37
AxedaCorp 0:65004368569c 38 int scm_download_req(ax_package *request);
AxedaCorp 0:65004368569c 39 int scm_file_write(char *filename, char *data, int length, ax_package_instruction *downloadInfo);
AxedaCorp 0:65004368569c 40 int data_item_write(char *name, char *sValue, int dValue, int ax_type);
AxedaCorp 0:65004368569c 41 int data_item_request(char *name);
AxedaCorp 0:65004368569c 42
AxedaCorp 0:65004368569c 43 int initializeCellular();
AxedaCorp 0:65004368569c 44 #ifdef __cplusplus
AxedaCorp 0:65004368569c 45 }
AxedaCorp 0:65004368569c 46 #endif
AxedaCorp 0:65004368569c 47
AxedaCorp 0:65004368569c 48
AxedaCorp 0:65004368569c 49 #endif
AxedaCorp 0:65004368569c 50