RockBLOCK 9704 C Library
Doxygen documentation for the RockBLOCK 9704 C Library.
Loading...
Searching...
No Matches
Macros | Functions | Variables
jspr_command.c File Reference
#include "jspr_command.h"
#include "serial.h"
#include <stdlib.h>
#include <string.h>

Macros

#define JSPR_GET_API_LEN   18U
 
#define JSPR_GET_SIM_CONFIG_LEN   17U
 
#define JSPR_GET_OPERATIONAL_STATE_LEN   24U
 
#define JSPR_GET_SIGNAL_LEN   26U
 
#define JSPR_GET_MESSAGE_PROVISIONING_LEN   27U
 
#define JSPR_GET_HW_INFO_LEN   14U
 
#define JSPR_PUT_FIRMWARE_LEN   17U
 
#define JSPR_BOOT_SOURCE_STR_LEN   9U
 
#define JSPR_GET_FIRMWARE_LEN   16U
 
#define JSPR_GET_SIM_STATUS_LEN   17U
 

Functions

bool jsprGetApiVersion (void)
 
bool jsprPutApiVersion (const jsprDottedVersion_t *apiVersion)
 
bool putSimInterface (const availableSimInterfaces_t iface)
 
bool jsprGetSimInterface (void)
 
bool jsprPutSimInterface (const char *iface)
 
bool putOperationalState (availableOperationalStates_t state)
 
bool jsprGetOperationalState (void)
 
bool jsprPutOperationalState (const char *state)
 
bool jsprPutMessageOriginate (const uint16_t topic, const size_t length)
 
bool jsprPutMessageOriginateSegment (jsprMessageOriginate_t *messageOriginate, const size_t segmentLength, uint32_t segmentStart, const char *data)
 
bool jsprGetSignal (void)
 
bool jsprGetMessageProvisioning (void)
 
bool jsprGetHwInfo (void)
 
static void bootSlotToStr (const jsprBootSource_t slot, char *dest, const size_t length)
 
bool jsprGetFirmware (const jsprBootSource_t slot)
 
bool jsprPutFirmware (const jsprBootSource_t slot)
 
bool jsprGetSimStatus (void)
 
bool jsprPutServiceConfig (const bool resync)
 

Variables

serialContext context
 
int messageReference
 
static uint8_t jsprCommandBuffer [2048U]
 

Macro Definition Documentation

◆ JSPR_BOOT_SOURCE_STR_LEN

#define JSPR_BOOT_SOURCE_STR_LEN   9U

◆ JSPR_GET_API_LEN

#define JSPR_GET_API_LEN   18U

◆ JSPR_GET_FIRMWARE_LEN

#define JSPR_GET_FIRMWARE_LEN   16U

◆ JSPR_GET_HW_INFO_LEN

#define JSPR_GET_HW_INFO_LEN   14U

◆ JSPR_GET_MESSAGE_PROVISIONING_LEN

#define JSPR_GET_MESSAGE_PROVISIONING_LEN   27U

◆ JSPR_GET_OPERATIONAL_STATE_LEN

#define JSPR_GET_OPERATIONAL_STATE_LEN   24U

◆ JSPR_GET_SIGNAL_LEN

#define JSPR_GET_SIGNAL_LEN   26U

◆ JSPR_GET_SIM_CONFIG_LEN

#define JSPR_GET_SIM_CONFIG_LEN   17U

◆ JSPR_GET_SIM_STATUS_LEN

#define JSPR_GET_SIM_STATUS_LEN   17U

◆ JSPR_PUT_FIRMWARE_LEN

#define JSPR_PUT_FIRMWARE_LEN   17U

Function Documentation

◆ bootSlotToStr()

static void bootSlotToStr ( const jsprBootSource_t  slot,
char *  dest,
const size_t  length 
)
static

◆ jsprGetApiVersion()

bool jsprGetApiVersion ( void  )

◆ jsprGetFirmware()

bool jsprGetFirmware ( const jsprBootSource_t  slot)

◆ jsprGetHwInfo()

bool jsprGetHwInfo ( void  )

◆ jsprGetMessageProvisioning()

bool jsprGetMessageProvisioning ( void  )

◆ jsprGetOperationalState()

bool jsprGetOperationalState ( void  )

◆ jsprGetSignal()

bool jsprGetSignal ( void  )

◆ jsprGetSimInterface()

bool jsprGetSimInterface ( void  )

◆ jsprGetSimStatus()

bool jsprGetSimStatus ( void  )

◆ jsprPutApiVersion()

bool jsprPutApiVersion ( const jsprDottedVersion_t apiVersion)

◆ jsprPutFirmware()

bool jsprPutFirmware ( const jsprBootSource_t  slot)

◆ jsprPutMessageOriginate()

bool jsprPutMessageOriginate ( const uint16_t  topic,
const size_t  length 
)

◆ jsprPutMessageOriginateSegment()

bool jsprPutMessageOriginateSegment ( jsprMessageOriginate_t messageOriginate,
const size_t  segmentLength,
uint32_t  segmentStart,
const char *  data 
)

◆ jsprPutOperationalState()

bool jsprPutOperationalState ( const char *  state)

◆ jsprPutServiceConfig()

bool jsprPutServiceConfig ( const bool  resync)

◆ jsprPutSimInterface()

bool jsprPutSimInterface ( const char *  iface)

◆ putOperationalState()

bool putOperationalState ( availableOperationalStates_t  state)

◆ putSimInterface()

bool putSimInterface ( const availableSimInterfaces_t  iface)

Variable Documentation

◆ context

serialContext context
extern

◆ jsprCommandBuffer

uint8_t jsprCommandBuffer[2048U]
static

◆ messageReference

int messageReference
extern