monarchadapter 2.0.0.0
main.c File Reference

MonarchAdapter Click example. More...

#include "board.h"
#include "log.h"
#include "monarchadapter.h"
#include "string.h"

Macros

#define PROCESS_COUNTER   50
 
#define PROCESS_RX_BUFFER_SIZE   600
 
#define PROCESS_PARSER_BUFFER_SIZE   600
 
#define MONARCH_CMD_AT   "AT"
 
#define MONARCH_CMD_ATE1   "ATE1"
 
#define MONARCH_CMD_ATI   "ATI"
 
#define MONARCH_CMD_ATI1   "ATI1"
 
#define MONARCH_CMD_CEREG   "AT+CEREG?"
 

Functions

void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

MonarchAdapter Click example.

Description

This example reads and processes data from Monarch Adapter clicks.

The demo application is composed of two sections :

Application Init

Initializes the driver and checks the module firmware revision.

Application Task

Checks EPS Network Registration Status (+CEREG) every 3 seconds.

Additional Function

  • monarchadapter_process ( ) - The general process of collecting data the module sends.
Note
Monarch GO and Monarch GO-GPS are certified for use on the Verizon network (LTE band 13) with roadmap for global band support. Monarch module is not delivered as part of the Click board package. For more information about module features please read Monarch GO module specification.
Author
MikroE Team

Macro Definition Documentation

◆ MONARCH_CMD_AT

#define MONARCH_CMD_AT   "AT"

◆ MONARCH_CMD_ATE1

#define MONARCH_CMD_ATE1   "ATE1"

◆ MONARCH_CMD_ATI

#define MONARCH_CMD_ATI   "ATI"

◆ MONARCH_CMD_ATI1

#define MONARCH_CMD_ATI1   "ATI1"

◆ MONARCH_CMD_CEREG

#define MONARCH_CMD_CEREG   "AT+CEREG?"

◆ PROCESS_COUNTER

#define PROCESS_COUNTER   50

◆ PROCESS_PARSER_BUFFER_SIZE

#define PROCESS_PARSER_BUFFER_SIZE   600

◆ PROCESS_RX_BUFFER_SIZE

#define PROCESS_RX_BUFFER_SIZE   600

Function Documentation

◆ application_init()

void application_init ( void )

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void )

◆ main()

int main ( void )