Synergy Software Package User's Manual
Cellular NSAL Implementation on NetX

Cellular NetX NSAL interface implementation header file. More...

Macros

#define SF_CELR_NSALNX_CODE_VERSION_MAJOR   (2U)
 
#define SF_CELR_NSALNX_CODE_VERSION_MINOR   (0U)
 

Functions

void sf_cellular_nsal_netx_driver (NX_IP_DRIVER *driver_req_ptr, sf_cellular_instance_t const *p_cellular_instance, sf_cellular_nsal_cfg_t *p_cellular_nsal_cfg)
 NetX IP Driver entry function. More...
 
void sf_cellular_nsal_ppp_send_byte (UCHAR byte, sf_cellular_instance_t const *p_celr_instance)
 PPP Send Byte Callback function call from PPP Stack. More...
 
void sf_cellular_nsal_invalid_packet_handler (NX_PACKET *p_packet_ptr, sf_cellular_instance_t const *p_celr_instance)
 Cellular framework nsal invalid callback handler. More...
 

Detailed Description

Cellular NetX NSAL interface implementation header file.

Macro Definition Documentation

◆ SF_CELR_NSALNX_CODE_VERSION_MAJOR

#define SF_CELR_NSALNX_CODE_VERSION_MAJOR   (2U)

Version of code that implements the API defined in this file Major Version of code that implements the API defined in this file

◆ SF_CELR_NSALNX_CODE_VERSION_MINOR

#define SF_CELR_NSALNX_CODE_VERSION_MINOR   (0U)

Minor Version of code that implements the API defined in this file

Function Documentation

◆ sf_cellular_nsal_invalid_packet_handler()

void sf_cellular_nsal_invalid_packet_handler ( NX_PACKET *  p_packet_ptr,
sf_cellular_instance_t const *  p_celr_instance 
)

Cellular framework nsal invalid callback handler.

Parameters
[in]p_packet_ptrPointer to invalid PPP Packet received
[in]p_celr_instancePointer to cellular framework instance

Cellular framework nsal invalid callback handler.

Parameters
[in]p_packet_ptrPointer to invalid PPP Packet received
[in]p_celr_instancePointer to cellular framework instance

variable to get Memory compare result

Check whether packet contains "NO CARRIER" string, we are ignoring first and last 2 bytes of packet which are Carriage Return and Line Feed.

check whether no carrier string present

Disconnect Network

Soft reset the module

Provision the Module using callback

Reestablish data connection

Restart PPP

Release the packet

◆ sf_cellular_nsal_netx_driver()

void sf_cellular_nsal_netx_driver ( NX_IP_DRIVER *  driver_req_ptr,
sf_cellular_instance_t const *  p_cellular_instance,
sf_cellular_nsal_cfg_t p_cellular_nsal_cfg 
)

NetX IP Driver entry function.

Parameters
[in]driver_req_ptrPointer to NetX IP Driver
[in]p_cellular_instancePointer to cellular framework instance
[in]p_cellular_nsal_cfgPointer to cellular nsal configuration structure

NetX IP Driver entry function.

Parameters
[in]driver_req_ptrPointer to NetX IP Driver
[in]p_cellular_instancePointer to cellular framework instance
[in]p_cellular_nsal_cfgPointer to cellular nsal configuration structure

Interface link is UP. Send the packet

◆ sf_cellular_nsal_ppp_send_byte()

void sf_cellular_nsal_ppp_send_byte ( UCHAR  byte,
sf_cellular_instance_t const *  p_celr_instance 
)

PPP Send Byte Callback function call from PPP Stack.

NSAL PPP Send bytes callback API

Parameters
[in]byteByte to send
[in]p_celr_instancePointer to cellular framework instance
[in]byteByte to send
[in]p_celr_instancePointer to cellular framework instance

Transmit byte