Axeda demo software for u-blox C027 (GSM)

Dependencies:   mbed

Committer:
AxedaCorp
Date:
Mon Aug 11 19:02:42 2014 +0000
Revision:
0:a725e8eab383
1st commit

Who changed what in which revision?

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