Phoenard
Classes | Macros | Typedefs | Variables
PHNSim.h File Reference

Contains PHN_Sim for accessing the SIM module for calling, texting and much more. More...

#include <Arduino.h>
#include <utility/PHNUtils.h>
#include "PHNDate.h"
#include "PHNCore.h"

Go to the source code of this file.

Classes

struct  SimContact
 A single message contact. More...
 
struct  SimMessage
 A single text message. More...
 
class  PHN_Sim
 Simplistic library to make use of the SIM908 (phone) controller. More...
 

Macros

#define SIM_BAUDRATE   57600
 
#define SIM_PWR_DELAY   1500
 
#define SIM_ATCOMMAND_TIMEOUT   500
 
#define SIM_ATCOMMAND_SENDTEXT_TIMEOUT   8000
 
#define SIM_ATCOMMAND_DTFM_TIMEOUT   1500
 
#define SIM_ATCOMMAND_TRYCNT   3
 
#define SIM_PIN_STATUS_READY   0
 
#define SIM_PIN_STATUS_NEEDPIN   1
 
#define SIM_PIN_STATUS_NEEDPUK   2
 
#define SIM_PIN_STATUS_ERROR   3
 
#define SIM_CALL_STATUS_NONE   0
 
#define SIM_CALL_STATUS_CALLING   1
 
#define SIM_CALL_STATUS_CALLED   2
 
#define SIM_CALL_STATUS_BUSY   3
 

Typedefs

typedef struct SimContact SimContact
 A single message contact.
 
typedef struct SimMessage SimMessage
 A single text message.
 

Variables

PHN_Sim sim
 

Detailed Description

Contains PHN_Sim for accessing the SIM module for calling, texting and much more.