eposmodule  2.1.0.0
Macros | Functions
main.c File Reference

EPOS Module Click example. More...

#include "board.h"
#include "log.h"
#include "eposmodule.h"

Macros

#define APP_DIALING   0
 
#define APP_ANSWERING   1
 
#define DEMO_APP   APP_DIALING
 
#define DIAL_NUMBER   "1000"
 
#define TEXT_TO_SEND   "MIKROE - EPOS Module Click\r\n"
 
#define NUM_MESSAGES   5u
 

Functions

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

Detailed Description

EPOS Module Click example.

Description

This example demonstrates the use of EPOS Module Click board by showing the communication between the two Click boards connected to PBX system.

The demo application is composed of two sections :

Application Init

Initializes the driver and logger, and displays the selected application mode.

Application Task

Dialing application mode:

Note
We have used a Yeastar S20 VoIP PBX system for the test, where the Click boards are connected to ports 1 and 2 configured as FXS extension with numbers 1000 and 1001 (dialer).
Author
Stefan Filipovic

Macro Definition Documentation

◆ APP_ANSWERING

#define APP_ANSWERING   1

◆ APP_DIALING

#define APP_DIALING   0

◆ DEMO_APP

#define DEMO_APP   APP_DIALING

◆ DIAL_NUMBER

#define DIAL_NUMBER   "1000"

◆ NUM_MESSAGES

#define NUM_MESSAGES   5u

◆ TEXT_TO_SEND

#define TEXT_TO_SEND   "MIKROE - EPOS Module Click\r\n"

Function Documentation

◆ application_init()

void application_init ( void  )

< Logger config object.

< Click config object.

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  )