Network Component  Version 7.7.0
MDK Middleware for IPv4 and IPv6 Networking
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
NetPPP: PPP Interface

Events generated by the Network - PPP Interface functions. More...

Functions

__STATIC_INLINE void EvrNetPPP_InitInterface (void)
 Event on PPP interface initialize (Op) More...
 
__STATIC_INLINE void EvrNetPPP_ThreadCreateFailed (void)
 Event on PPP interface thread create failed (Error) More...
 
__STATIC_INLINE void EvrNetPPP_GetOptionInvalidParameter (void)
 Event on PPP get-option invalid parameter (Error) More...
 
__STATIC_INLINE void EvrNetPPP_SetOptionInvalidParameter (void)
 Event on PPP set-option invalid parameter (Error) More...
 
__STATIC_INLINE void EvrNetPPP_SetIp4Address (const uint8_t *ip4_addr)
 Event on PPP set interface IPv4 address (Op) More...
 
__STATIC_INLINE void EvrNetPPP_SetIp4PrimaryDNS (const uint8_t *ip4_addr)
 Event on PPP set interface primary DNS server (Op) More...
 
__STATIC_INLINE void EvrNetPPP_SetIp4SecondaryDNS (const uint8_t *ip4_addr)
 Event on PPP set interface secondary DNS server (Op) More...
 
__STATIC_INLINE void EvrNetPPP_SetIp4Mtu (uint16_t mtu)
 Event on PPP set interface MTU (Op) More...
 
__STATIC_INLINE void EvrNetPPP_ReceiveFrame (uint16_t protocol, uint32_t length)
 Event on PPP interface receive frame (Op) More...
 
__STATIC_INLINE void EvrNetPPP_FrameTooShort (uint32_t length, uint32_t min_length)
 Event on PPP interface received frame too short (Op) More...
 
__STATIC_INLINE void EvrNetPPP_ChecksumFailed (uint32_t length)
 Event on PPP interface frame checksum check failed (Error) More...
 
__STATIC_INLINE void EvrNetPPP_CtrlByteInvalid (uint8_t ctrl_byte)
 Event on PPP interface frame control byte invalid (Error) More...
 
__STATIC_INLINE void EvrNetPPP_SendFrame (uint16_t protocol, uint32_t length)
 Event on PPP interface send frame (Op) More...
 
__STATIC_INLINE void EvrNetPPP_NetworkLayerDown (void)
 Event on PPP interface network layer down (Error) More...
 
__STATIC_INLINE void EvrNetPPP_SendDataTooLarge (uint32_t length, uint32_t max_length)
 Event on PPP interface send payload too large error (Error) More...
 
__STATIC_INLINE void EvrNetPPP_NoMemoryError (void)
 Event on PPP interface out of memory error (Error) More...
 
__STATIC_INLINE void EvrNetPPP_QueueAddTransmit (void)
 Event on PPP interface add frame to transmit queue (Op) More...
 
__STATIC_INLINE void EvrNetPPP_RejectProtocol (uint16_t protocol)
 Event on PPP interface reject unsupported protocol type (Op) More...
 
__STATIC_INLINE void EvrNetPPP_RejectCode (uint16_t protocol, uint8_t code)
 Event on PPP interface reject unsupported cp code (Op) More...
 
__STATIC_INLINE void EvrNetPPP_Connect (const char *dial_number, uint32_t length)
 Event on PPP interface netPPP_Connect start (API) More...
 
__STATIC_INLINE void EvrNetPPP_Listen (void)
 Event on PPP interface netPPP_Listen start (API) More...
 
__STATIC_INLINE void EvrNetPPP_Close (void)
 Event on PPP interface netPPP_Close start (API) More...
 
__STATIC_INLINE void EvrNetPPP_ShowUsername (const char *username, uint32_t length)
 Event on PPP interface display username (Op) More...
 
__STATIC_INLINE void EvrNetPPP_ShowPassword (const char *password, uint32_t length)
 Event on PPP interface display password (Op) More...
 
__STATIC_INLINE void EvrNetPPP_ModemOffline (void)
 Event on PPP interface modem offline (Op) More...
 
__STATIC_INLINE void EvrNetPPP_DataLinkDown (void)
 Event on PPP interface data-link layer down (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpInit (void)
 Event on PPP-LCP initialize (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpSendConfigRequest (void)
 Event on PPP-LCP send configuration request (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpNoRetriesLeft (void)
 Event on PPP-LCP no retries left for LCP negotiation (Error) More...
 
__STATIC_INLINE void EvrNetPPP_LcpOptionCharMap (uint32_t char_map)
 Event on PPP-LCP option character map (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpOptionPfc (void)
 Event on PPP-LCP option PFC (Protocol Field Compression) (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpOptionAcfc (void)
 Event on PPP-LCP option ACFC (Address and Control Field Compression) (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpOptionMagicNumber (uint32_t magic_number)
 Event on PPP-LCP option magic number (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpOptionAuthPap (void)
 Event on PPP-LCP option Authentication PAP (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpOptionAuthChapMd5 (void)
 Event on PPP-LCP option Authentication CHAP (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpSendEchoRequest (uint32_t magic_number)
 Event on PPP-LCP send echo request (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpSendTerminateRequest (void)
 Event on PPP-LCP send LCP terminate request (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpSendFrame (const void *lcp_header)
 Event on PPP-LCP send frame (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpReceiveFrame (const void *lcp_header)
 Event on PPP-LCP receive frame (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpDataLinkUp (void)
 Event on PPP-LCP data-link layer established (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpOptionMru (uint16_t mru_size)
 Event on PPP-LCP option MRU (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpOptionAuth (uint16_t auth_type)
 Event on PPP-LCP option authentication type (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpOptionAuthChapNotMd5 (void)
 Event on PPP-LCP option CHAP authentication not MD5 type (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpOptionUnknown (uint8_t lcp_option)
 Event on PPP-LCP unknown option received (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpSendReject (void)
 Event on PPP-LCP send reject (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpSendNak (void)
 Event on PPP-LCP send not acknowledge (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpSendAck (void)
 Event on PPP-LCP send acknowledge (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpWrongAckReceived (uint8_t lcp_id)
 Event on PPP-LCP wrong acknowledge received (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpWrongNakReceived (uint8_t lcp_id)
 Event on PPP-LCP wrong not-acknowledge received (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpConfigAuthFailed (void)
 Event on PPP-LCP authentication type negotiation failed (Error) More...
 
__STATIC_INLINE void EvrNetPPP_LcpWrongRejectReceived (uint8_t lcp_id)
 Event on PPP-LCP wrong reject received (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpEchoMagicNumber (uint32_t magic_number)
 Event on PPP-LCP echo magic number (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpWrongPeerMagicNumber (void)
 Event on PPP-LCP wrong peer magic number (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpSendEchoReply (void)
 Event on PPP-LCP send echo reply (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpWrongEchoReplyReceived (void)
 Event on PPP-LCP wrong echo reply received (Op) More...
 
__STATIC_INLINE void EvrNetPPP_LcpSendTerminateAck (void)
 Event on PPP-LCP send terminate acknowledge (Op) More...
 
__STATIC_INLINE void EvrNetPPP_PapInit (void)
 Event on PPP-PAP initialize (Op) More...
 
__STATIC_INLINE void EvrNetPPP_PapSendAuthRequest (const char *peer_id, uint32_t length)
 Event on PPP-PAP send authentication request (Op) More...
 
__STATIC_INLINE void EvrNetPPP_PapShowPassword (const char *password, uint32_t length)
 Event on PPP-PAP display password (Op) More...
 
__STATIC_INLINE void EvrNetPPP_PapSendFrame (const void *pap_header)
 Event on PPP-PAP send frame (Op) More...
 
__STATIC_INLINE void EvrNetPPP_PapReceiveFrame (const void *pap_header)
 Event on PPP-PAP receive frame (Op) More...
 
__STATIC_INLINE void EvrNetPPP_PapLoginSuccess (void)
 Event on PPP-PAP login success (Op) More...
 
__STATIC_INLINE void EvrNetPPP_PapLoginFailed (void)
 Event on PPP-PAP login failed (Error) More...
 
__STATIC_INLINE void EvrNetPPP_PapWrongAckReceived (uint8_t pap_id)
 Event on PPP-PAP wrong acknowledge received (Op) More...
 
__STATIC_INLINE void EvrNetPPP_PapWrongNakReceived (uint8_t pap_id)
 Event on PPP-PAP wrong not-acknowledge received (Op) More...
 
__STATIC_INLINE void EvrNetPPP_ChapInit (void)
 Event on PPP-CHAP initialize (Op) More...
 
__STATIC_INLINE void EvrNetPPP_ChapSendChallenge (const char *name, uint32_t length)
 Event on PPP-CHAP send challenge (Op) More...
 
__STATIC_INLINE void EvrNetPPP_ChapSendFrame (const void *chap_header)
 Event on PPP-CHAP send frame (Op) More...
 
__STATIC_INLINE void EvrNetPPP_ChapReceiveFrame (const void *chap_header)
 Event on PPP-CHAP receive frame (Op) More...
 
__STATIC_INLINE void EvrNetPPP_ChapWrongResponseReceived (uint8_t chap_id)
 Event on PPP-CHAP wrong response received (Op) More...
 
__STATIC_INLINE void EvrNetPPP_ChapWrongSuccessReceived (uint8_t chap_id)
 Event on PPP-CHAP wrong success received (Op) More...
 
__STATIC_INLINE void EvrNetPPP_ChapWrongFailureReceived (uint8_t chap_id)
 Event on PPP-CHAP wrong failure received (Op) More...
 
__STATIC_INLINE void EvrNetPPP_ChapLoginSuccess (void)
 Event on PPP-CHAP login success (Op) More...
 
__STATIC_INLINE void EvrNetPPP_ChapLoginFailed (void)
 Event on PPP-CHAP login failed (Error) More...
 
__STATIC_INLINE void EvrNetPPP_IpcpInit (void)
 Event on PPP-IPCP initialize (Op) More...
 
__STATIC_INLINE void EvrNetPPP_IpcpIp4ConfigError (void)
 Event on PPP-IPCP interface IPv4 configuration error (Error) More...
 
__STATIC_INLINE void EvrNetPPP_IpcpSendConfigRequest (void)
 Event on PPP-IPCP send configuration request (Op) More...
 
__STATIC_INLINE void EvrNetPPP_IpcpOptionIpAddress (const uint8_t *ip4_addr)
 Event on PPP-IPCP option IP-address (Op) More...
 
__STATIC_INLINE void EvrNetPPP_IpcpOptionPrimaryDns (const uint8_t *ip4_addr)
 Event on PPP-IPCP option primary DNS server address (Op) More...
 
__STATIC_INLINE void EvrNetPPP_IpcpOptionSecondaryDns (const uint8_t *ip4_addr)
 Event on PPP-IPCP option secondary DNS server address (Op) More...
 
__STATIC_INLINE void EvrNetPPP_IpcpSendFrame (const void *ipcp_header)
 Event on PPP-IPCP send frame (Op) More...
 
__STATIC_INLINE void EvrNetPPP_IpcpReceiveFrame (const void *ipcp_header)
 Event on PPP-IPCP receive frame (Op) More...
 
__STATIC_INLINE void EvrNetPPP_IpcpOptionUnknown (uint8_t ipcp_option)
 Event on PPP-IPCP unknown option received (Op) More...
 
__STATIC_INLINE void EvrNetPPP_IpcpSendReject (void)
 Event on PPP-IPCP send reject (Op) More...
 
__STATIC_INLINE void EvrNetPPP_IpcpSendNak (void)
 Event on PPP-IPCP send not acknowledge (Op) More...
 
__STATIC_INLINE void EvrNetPPP_IpcpSendAck (void)
 Event on PPP-IPCP send acknowledge (Op) More...
 
__STATIC_INLINE void EvrNetPPP_IpcpWrongAckReceived (uint8_t ipcp_id)
 Event on PPP-IPCP wrong acknowledge received (Op) More...
 
__STATIC_INLINE void EvrNetPPP_IpcpNetworkLayerUp (void)
 Event on PPP-IPCP network-layer established (Op) More...
 
__STATIC_INLINE void EvrNetPPP_IpcpWrongNakReceived (uint8_t ipcp_id)
 Event on PPP-IPCP wrong not-acknowledge received (Op) More...
 
__STATIC_INLINE void EvrNetPPP_IpcpWrongRejectReceived (uint8_t ipcp_id)
 Event on PPP-IPCP wrong reject received (Op) More...
 
__STATIC_INLINE void EvrNetPPP_IpcpWrongSubnet (const uint8_t *ip4_addr)
 Event on PPP-IPCP advertised IP-address not in subnet (Op) More...
 
__STATIC_INLINE void EvrNetPPP_IpcpPrimaryDnsRejected (void)
 Event on PPP-IPCP primary DNS server option rejected (Op) More...
 
__STATIC_INLINE void EvrNetPPP_IpcpSecondaryDnsRejected (void)
 Event on PPP-IPCP secondary DNS server option rejected (Op) More...
 
__STATIC_INLINE void EvrNetPPP_IpcpIpAddressRejected (void)
 Event on PPP-IPCP IP-address option rejected (Error) More...
 
__STATIC_INLINE void EvrNetPPP_IpcpNotRequestedOption (uint8_t ipcp_option)
 Event on PPP-IPCP not requested option rejected (Error) More...
 

Description

Events generated by the Network - PPP Interface functions.

Function Documentation

__STATIC_INLINE void EvrNetPPP_ChapInit ( void  )

Event on PPP-CHAP initialize (Op)

Note
Challenge-Handshake Authentication Protocol
__STATIC_INLINE void EvrNetPPP_ChapLoginFailed ( void  )

Event on PPP-CHAP login failed (Error)

__STATIC_INLINE void EvrNetPPP_ChapLoginSuccess ( void  )

Event on PPP-CHAP login success (Op)

__STATIC_INLINE void EvrNetPPP_ChapReceiveFrame ( const void *  chap_header)

Event on PPP-CHAP receive frame (Op)

Parameters
chap_headerpointer to CHAP frame header of 4 bytes
  • Code (1 byte)
  • Id (1 byte)
  • Len (2 bytes)
__STATIC_INLINE void EvrNetPPP_ChapSendChallenge ( const char *  name,
uint32_t  length 
)

Event on PPP-CHAP send challenge (Op)

Parameters
namesystem identification string
lengthlength of the system identification string
__STATIC_INLINE void EvrNetPPP_ChapSendFrame ( const void *  chap_header)

Event on PPP-CHAP send frame (Op)

Parameters
chap_headerpointer to CHAP frame header of 4 bytes
  • Code (1 byte)
  • Id (1 byte)
  • Len (2 bytes)
__STATIC_INLINE void EvrNetPPP_ChapWrongFailureReceived ( uint8_t  chap_id)

Event on PPP-CHAP wrong failure received (Op)

Parameters
chap_idwrong CHAP identification value
__STATIC_INLINE void EvrNetPPP_ChapWrongResponseReceived ( uint8_t  chap_id)

Event on PPP-CHAP wrong response received (Op)

Parameters
chap_idwrong CHAP identification value
__STATIC_INLINE void EvrNetPPP_ChapWrongSuccessReceived ( uint8_t  chap_id)

Event on PPP-CHAP wrong success received (Op)

Parameters
chap_idwrong CHAP identification value
__STATIC_INLINE void EvrNetPPP_ChecksumFailed ( uint32_t  length)

Event on PPP interface frame checksum check failed (Error)

Parameters
lengthframe length in bytes
__STATIC_INLINE void EvrNetPPP_Close ( void  )

Event on PPP interface netPPP_Close start (API)

__STATIC_INLINE void EvrNetPPP_Connect ( const char *  dial_number,
uint32_t  length 
)

Event on PPP interface netPPP_Connect start (API)

Parameters
dial_numberpointer to a dial number string
lengthlength of the dial number string
__STATIC_INLINE void EvrNetPPP_CtrlByteInvalid ( uint8_t  ctrl_byte)

Event on PPP interface frame control byte invalid (Error)

Parameters
ctrl_byteinvalid control byte value
__STATIC_INLINE void EvrNetPPP_DataLinkDown ( void  )

Event on PPP interface data-link layer down (Op)

__STATIC_INLINE void EvrNetPPP_FrameTooShort ( uint32_t  length,
uint32_t  min_length 
)

Event on PPP interface received frame too short (Op)

Parameters
lengthframe length in bytes
min_lengthminimum length of the frame
__STATIC_INLINE void EvrNetPPP_GetOptionInvalidParameter ( void  )

Event on PPP get-option invalid parameter (Error)

__STATIC_INLINE void EvrNetPPP_InitInterface ( void  )

Event on PPP interface initialize (Op)

Note
Point-to-Point Protocol
__STATIC_INLINE void EvrNetPPP_IpcpInit ( void  )

Event on PPP-IPCP initialize (Op)

Note
PPP Internet Protocol Control Protocol
__STATIC_INLINE void EvrNetPPP_IpcpIp4ConfigError ( void  )

Event on PPP-IPCP interface IPv4 configuration error (Error)

__STATIC_INLINE void EvrNetPPP_IpcpIpAddressRejected ( void  )

Event on PPP-IPCP IP-address option rejected (Error)

__STATIC_INLINE void EvrNetPPP_IpcpNetworkLayerUp ( void  )

Event on PPP-IPCP network-layer established (Op)

__STATIC_INLINE void EvrNetPPP_IpcpNotRequestedOption ( uint8_t  ipcp_option)

Event on PPP-IPCP not requested option rejected (Error)

Parameters
ipcp_optionrejected option value
__STATIC_INLINE void EvrNetPPP_IpcpOptionIpAddress ( const uint8_t *  ip4_addr)

Event on PPP-IPCP option IP-address (Op)

Parameters
ip4_addrpointer to IPv4 address
__STATIC_INLINE void EvrNetPPP_IpcpOptionPrimaryDns ( const uint8_t *  ip4_addr)

Event on PPP-IPCP option primary DNS server address (Op)

Parameters
ip4_addrpointer to IPv4 address
__STATIC_INLINE void EvrNetPPP_IpcpOptionSecondaryDns ( const uint8_t *  ip4_addr)

Event on PPP-IPCP option secondary DNS server address (Op)

Parameters
ip4_addrpointer to IPv4 address
__STATIC_INLINE void EvrNetPPP_IpcpOptionUnknown ( uint8_t  ipcp_option)

Event on PPP-IPCP unknown option received (Op)

Parameters
ipcp_optionunknown IPCP option value
__STATIC_INLINE void EvrNetPPP_IpcpPrimaryDnsRejected ( void  )

Event on PPP-IPCP primary DNS server option rejected (Op)

__STATIC_INLINE void EvrNetPPP_IpcpReceiveFrame ( const void *  ipcp_header)

Event on PPP-IPCP receive frame (Op)

Parameters
ipcp_headerpointer to IPCP frame header of 4 bytes
  • Code (1 byte)
  • Id (1 byte)
  • Len (2 bytes)
__STATIC_INLINE void EvrNetPPP_IpcpSecondaryDnsRejected ( void  )

Event on PPP-IPCP secondary DNS server option rejected (Op)

__STATIC_INLINE void EvrNetPPP_IpcpSendAck ( void  )

Event on PPP-IPCP send acknowledge (Op)

__STATIC_INLINE void EvrNetPPP_IpcpSendConfigRequest ( void  )

Event on PPP-IPCP send configuration request (Op)

__STATIC_INLINE void EvrNetPPP_IpcpSendFrame ( const void *  ipcp_header)

Event on PPP-IPCP send frame (Op)

Parameters
ipcp_headerpointer to IPCP frame header of 4 bytes
  • Code (1 byte)
  • Id (1 byte)
  • Len (2 bytes)
__STATIC_INLINE void EvrNetPPP_IpcpSendNak ( void  )

Event on PPP-IPCP send not acknowledge (Op)

__STATIC_INLINE void EvrNetPPP_IpcpSendReject ( void  )

Event on PPP-IPCP send reject (Op)

__STATIC_INLINE void EvrNetPPP_IpcpWrongAckReceived ( uint8_t  ipcp_id)

Event on PPP-IPCP wrong acknowledge received (Op)

Parameters
ipcp_idwrong IPCP identification value
__STATIC_INLINE void EvrNetPPP_IpcpWrongNakReceived ( uint8_t  ipcp_id)

Event on PPP-IPCP wrong not-acknowledge received (Op)

Parameters
ipcp_idwrong IPCP identification value
__STATIC_INLINE void EvrNetPPP_IpcpWrongRejectReceived ( uint8_t  ipcp_id)

Event on PPP-IPCP wrong reject received (Op)

Parameters
ipcp_idwrong IPCP identification value
__STATIC_INLINE void EvrNetPPP_IpcpWrongSubnet ( const uint8_t *  ip4_addr)

Event on PPP-IPCP advertised IP-address not in subnet (Op)

Parameters
ip4_addrpointer to IPv4 address
__STATIC_INLINE void EvrNetPPP_LcpConfigAuthFailed ( void  )

Event on PPP-LCP authentication type negotiation failed (Error)

__STATIC_INLINE void EvrNetPPP_LcpDataLinkUp ( void  )

Event on PPP-LCP data-link layer established (Op)

__STATIC_INLINE void EvrNetPPP_LcpEchoMagicNumber ( uint32_t  magic_number)

Event on PPP-LCP echo magic number (Op)

Parameters
magic_numberecho magic number
__STATIC_INLINE void EvrNetPPP_LcpInit ( void  )

Event on PPP-LCP initialize (Op)

Note
Point-to-Point Link Control Protocol
__STATIC_INLINE void EvrNetPPP_LcpNoRetriesLeft ( void  )

Event on PPP-LCP no retries left for LCP negotiation (Error)

__STATIC_INLINE void EvrNetPPP_LcpOptionAcfc ( void  )

Event on PPP-LCP option ACFC (Address and Control Field Compression) (Op)

__STATIC_INLINE void EvrNetPPP_LcpOptionAuth ( uint16_t  auth_type)

Event on PPP-LCP option authentication type (Op)

Parameters
auth_typeauthentication type code
  • 0xC023: PAP
  • 0xC223: CHAP
__STATIC_INLINE void EvrNetPPP_LcpOptionAuthChapMd5 ( void  )

Event on PPP-LCP option Authentication CHAP (Op)

Note
Challenge Handshake Authentication Protocol with MD5
__STATIC_INLINE void EvrNetPPP_LcpOptionAuthChapNotMd5 ( void  )

Event on PPP-LCP option CHAP authentication not MD5 type (Op)

__STATIC_INLINE void EvrNetPPP_LcpOptionAuthPap ( void  )

Event on PPP-LCP option Authentication PAP (Op)

Note
Password Authentication Protocol - plain text
__STATIC_INLINE void EvrNetPPP_LcpOptionCharMap ( uint32_t  char_map)

Event on PPP-LCP option character map (Op)

Parameters
char_mapcharacter bit-map for non printable characters
  • bit 0: ascii character 0
  • bit 1: ascii character 1
  • bit 2: ascii character 2
  • ...
  • bit 31: ascii character 31
__STATIC_INLINE void EvrNetPPP_LcpOptionMagicNumber ( uint32_t  magic_number)

Event on PPP-LCP option magic number (Op)

Parameters
magic_numbermagic random number
__STATIC_INLINE void EvrNetPPP_LcpOptionMru ( uint16_t  mru_size)

Event on PPP-LCP option MRU (Op)

Parameters
mru_sizemaximum receive unit size
__STATIC_INLINE void EvrNetPPP_LcpOptionPfc ( void  )

Event on PPP-LCP option PFC (Protocol Field Compression) (Op)

__STATIC_INLINE void EvrNetPPP_LcpOptionUnknown ( uint8_t  lcp_option)

Event on PPP-LCP unknown option received (Op)

Parameters
lcp_optionunknown LCP option value
__STATIC_INLINE void EvrNetPPP_LcpReceiveFrame ( const void *  lcp_header)

Event on PPP-LCP receive frame (Op)

Parameters
lcp_headerpointer to LCP frame header of 4 bytes
  • Code (1 byte)
  • Id (1 byte)
  • Len (2 bytes)
__STATIC_INLINE void EvrNetPPP_LcpSendAck ( void  )

Event on PPP-LCP send acknowledge (Op)

__STATIC_INLINE void EvrNetPPP_LcpSendConfigRequest ( void  )

Event on PPP-LCP send configuration request (Op)

__STATIC_INLINE void EvrNetPPP_LcpSendEchoReply ( void  )

Event on PPP-LCP send echo reply (Op)

__STATIC_INLINE void EvrNetPPP_LcpSendEchoRequest ( uint32_t  magic_number)

Event on PPP-LCP send echo request (Op)

Parameters
magic_numbermagic random number
__STATIC_INLINE void EvrNetPPP_LcpSendFrame ( const void *  lcp_header)

Event on PPP-LCP send frame (Op)

Parameters
lcp_headerpointer to LCP frame header of 4 bytes
  • Code (1 byte)
  • Id (1 byte)
  • Len (2 bytes)
__STATIC_INLINE void EvrNetPPP_LcpSendNak ( void  )

Event on PPP-LCP send not acknowledge (Op)

__STATIC_INLINE void EvrNetPPP_LcpSendReject ( void  )

Event on PPP-LCP send reject (Op)

__STATIC_INLINE void EvrNetPPP_LcpSendTerminateAck ( void  )

Event on PPP-LCP send terminate acknowledge (Op)

__STATIC_INLINE void EvrNetPPP_LcpSendTerminateRequest ( void  )

Event on PPP-LCP send LCP terminate request (Op)

__STATIC_INLINE void EvrNetPPP_LcpWrongAckReceived ( uint8_t  lcp_id)

Event on PPP-LCP wrong acknowledge received (Op)

Parameters
lcp_idwrong LCP identification value
__STATIC_INLINE void EvrNetPPP_LcpWrongEchoReplyReceived ( void  )

Event on PPP-LCP wrong echo reply received (Op)

__STATIC_INLINE void EvrNetPPP_LcpWrongNakReceived ( uint8_t  lcp_id)

Event on PPP-LCP wrong not-acknowledge received (Op)

Parameters
lcp_idwrong LCP identification value
__STATIC_INLINE void EvrNetPPP_LcpWrongPeerMagicNumber ( void  )

Event on PPP-LCP wrong peer magic number (Op)

__STATIC_INLINE void EvrNetPPP_LcpWrongRejectReceived ( uint8_t  lcp_id)

Event on PPP-LCP wrong reject received (Op)

Parameters
lcp_idwrong LCP identification value
__STATIC_INLINE void EvrNetPPP_Listen ( void  )

Event on PPP interface netPPP_Listen start (API)

__STATIC_INLINE void EvrNetPPP_ModemOffline ( void  )

Event on PPP interface modem offline (Op)

__STATIC_INLINE void EvrNetPPP_NetworkLayerDown ( void  )

Event on PPP interface network layer down (Error)

__STATIC_INLINE void EvrNetPPP_NoMemoryError ( void  )

Event on PPP interface out of memory error (Error)

__STATIC_INLINE void EvrNetPPP_PapInit ( void  )

Event on PPP-PAP initialize (Op)

Note
Password Authentication Protocol
__STATIC_INLINE void EvrNetPPP_PapLoginFailed ( void  )

Event on PPP-PAP login failed (Error)

__STATIC_INLINE void EvrNetPPP_PapLoginSuccess ( void  )

Event on PPP-PAP login success (Op)

__STATIC_INLINE void EvrNetPPP_PapReceiveFrame ( const void *  pap_header)

Event on PPP-PAP receive frame (Op)

Parameters
pap_headerpointer to PAP frame header of 4 bytes
  • Code (1 byte)
  • Id (1 byte)
  • Len (2 bytes)
__STATIC_INLINE void EvrNetPPP_PapSendAuthRequest ( const char *  peer_id,
uint32_t  length 
)

Event on PPP-PAP send authentication request (Op)

Parameters
peer_idpeer identifier string (username)
lengthlength of the peer_id string
__STATIC_INLINE void EvrNetPPP_PapSendFrame ( const void *  pap_header)

Event on PPP-PAP send frame (Op)

Parameters
pap_headerpointer to PAP frame header of 4 bytes
  • Code (1 byte)
  • Id (1 byte)
  • Len (2 bytes)
__STATIC_INLINE void EvrNetPPP_PapShowPassword ( const char *  password,
uint32_t  length 
)

Event on PPP-PAP display password (Op)

Parameters
passwordauthentication password
lengthlength of authentication password
__STATIC_INLINE void EvrNetPPP_PapWrongAckReceived ( uint8_t  pap_id)

Event on PPP-PAP wrong acknowledge received (Op)

Parameters
pap_idwrong PAP identification value
__STATIC_INLINE void EvrNetPPP_PapWrongNakReceived ( uint8_t  pap_id)

Event on PPP-PAP wrong not-acknowledge received (Op)

Parameters
pap_idwrong PAP identification value
__STATIC_INLINE void EvrNetPPP_QueueAddTransmit ( void  )

Event on PPP interface add frame to transmit queue (Op)

__STATIC_INLINE void EvrNetPPP_ReceiveFrame ( uint16_t  protocol,
uint32_t  length 
)

Event on PPP interface receive frame (Op)

Parameters
protocolPPP protocol type
  • 0xC021: LCP
  • 0xC023: PAP
  • 0xC223: CHAP
  • 0x8021: IPCP
  • 0x0021: IP
lengthframe length in bytes
__STATIC_INLINE void EvrNetPPP_RejectCode ( uint16_t  protocol,
uint8_t  code 
)

Event on PPP interface reject unsupported cp code (Op)

Parameters
protocolPPP protocol type
  • 0xC021: LCP
  • 0x8021: IPCP
codeunsupported control code value
__STATIC_INLINE void EvrNetPPP_RejectProtocol ( uint16_t  protocol)

Event on PPP interface reject unsupported protocol type (Op)

Parameters
protocolunsupported protocol type value
__STATIC_INLINE void EvrNetPPP_SendDataTooLarge ( uint32_t  length,
uint32_t  max_length 
)

Event on PPP interface send payload too large error (Error)

Parameters
lengthdata length in bytes
max_lengthmaximum length of data in bytes
__STATIC_INLINE void EvrNetPPP_SendFrame ( uint16_t  protocol,
uint32_t  length 
)

Event on PPP interface send frame (Op)

Parameters
protocolPPP protocol type
  • 0xC021: LCP
  • 0xC023: PAP
  • 0xC223: CHAP
  • 0x8021: IPCP
  • 0x0021: IP
lengthframe length in bytes
__STATIC_INLINE void EvrNetPPP_SetIp4Address ( const uint8_t *  ip4_addr)

Event on PPP set interface IPv4 address (Op)

Parameters
ip4_addrpointer to IPv4 address
__STATIC_INLINE void EvrNetPPP_SetIp4Mtu ( uint16_t  mtu)

Event on PPP set interface MTU (Op)

Parameters
mtumaximum transmission unit
  • 0: fragmentation disabled
Note
MTU is limited in the range from 576 to 1500 bytes.
__STATIC_INLINE void EvrNetPPP_SetIp4PrimaryDNS ( const uint8_t *  ip4_addr)

Event on PPP set interface primary DNS server (Op)

Parameters
ip4_addrpointer to IPv4 address of a DNS server
__STATIC_INLINE void EvrNetPPP_SetIp4SecondaryDNS ( const uint8_t *  ip4_addr)

Event on PPP set interface secondary DNS server (Op)

Parameters
ip4_addrpointer to IPv4 address of a DNS server
__STATIC_INLINE void EvrNetPPP_SetOptionInvalidParameter ( void  )

Event on PPP set-option invalid parameter (Error)

__STATIC_INLINE void EvrNetPPP_ShowPassword ( const char *  password,
uint32_t  length 
)

Event on PPP interface display password (Op)

Parameters
passwordpointer to a password string
lengthlength of the password string
__STATIC_INLINE void EvrNetPPP_ShowUsername ( const char *  username,
uint32_t  length 
)

Event on PPP interface display username (Op)

Parameters
usernamepointer to a username string
lengthlength of the username string
__STATIC_INLINE void EvrNetPPP_ThreadCreateFailed ( void  )

Event on PPP interface thread create failed (Error)