Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
PRIME MAC Layer

This module provides configuration and utils for the MAC layer in PRIME.

Modules

 PRIME Serial PLME
 This module provides configuration and utils for the serialization of PRIME PLME.
 
 PRIME Base Management Protocol
 This module provides configuration and utils for the Base Managament Protocol in PRIME.
 
 PRIME Management Plane
 This module provides configuration and utils for the Management Plane in PRIME.
 
 PRIME Serial MAC
 This module provides configuration and utils for the serialization of the MAC layer in PRIME.
 
 PRIME Serial MLME
 This module provides configuration and utils for the serialization of PRIME MLME.
 
 PRIME Serial Embedded Sniffer
 This module provides configuration and utils for the serialization of the embedded sniffer in PRIME.
 

Data Structures

struct  _Node432
 
struct  ExSNRElementType
 
struct  FuNodeTargetType
 
struct  MacSapCallBack
 
struct  MlmeActiveConn
 
struct  MlmeActiveConnEx
 
struct  MlmeAvailableSwitchNode
 
struct  MlmeCommand
 
struct  MlmeDirectConn
 
struct  MlmeDirectSwitchNode
 
struct  MlmeGetArray
 
struct  MlmeGetValue
 
struct  MlmeListFUTable
 
struct  MlmeListGetActiveConn
 
struct  MlmeListGetActiveConnEx
 
struct  MlmeListGetAvailableSwitchTable
 
struct  MlmeListGetDirectConn
 
struct  MlmeListGetDirectSwitchTable
 
struct  MlmeListGetExSnrTable
 
struct  MlmeListGetHeader
 
struct  MlmeListGetMcastEntries
 
struct  MlmeListGetNode432Table
 
struct  MlmeListGetPhyCommTable
 
struct  MlmeListGetRegDevices
 
struct  MlmeListGetSwitchTable
 
struct  MlmeMcastEntrie
 
struct  MlmeParam
 
struct  MlmePhyCommDevice
 
struct  MlmeRegDevice
 
struct  MlmeRegisterConfirm
 
struct  MlmeRegisterIndication
 
struct  MlmeResult
 
struct  MlmeSetResult
 
struct  MlmeSwitchNode
 
struct  Node432Type
 
struct  PlmeCommand
 
struct  PlmeGetArray
 
struct  PlmeGetValue
 
struct  PlmeResult
 
struct  PlmeSetResult
 
struct  SnifferParam
 

Macros

#define MAX_PDU_SIZE   364
 
#define PRIME_CHECK_PLC_CFG_TIMER   5000
 
#define PRIME_MAC_LENGTH   6
 
#define SERIAL_NUMBER_432_MAC   16
 

Enumerations

enum  MacLnidValues {
  PRIME_BROADCAST_LNID = 0x3FFF,
  PRIME_MULTICAST_LNID = 0x3FFE
}
 
enum  MacPlcStateValues {
  MAC_PLC_STATE_DISCONNECTED = 0,
  MAC_PLC_STATE_DETECTION = 1,
  MAC_PLC_STATE_REGISTERING = 2,
  MAC_PLC_STATE_OPERATIVE = 3,
  MAC_PLC_STATE_BASE = 4
}
 
enum  SnifferType {
  SNIFFER_RX = 0,
  SNIFFER_TX = 1,
  SNIFFER_TX_SERIAL = 2,
  SNIFFER_RX_SERIAL = 3
}
 

Functions

void prime_init (void)
 
void prime_process (void)
 
void prime_start (void)
 
void prime_upd1ms (void)
 
#define PRIME_PLME_RESULT_DONE   0
 
#define PRIME_PLME_RESULT_SUCCESS   0
 
#define PRIME_PLME_RESULT_FAILED   1
 
#define PRIME_PLME_RESULT_REJECTED   2
 
#define PRIME_PLME_RESULT_BADATTR   3
 
#define PRIME_PLME_RESULT_OUTOFRANGE   4
 
#define PRIME_PLME_RESULT_READONLY   5
 
#define PRIME_PLME_RESET_CONFIRM   1
 
#define PRIME_PLME_SLEEP_CONFIRM   2
 
#define PRIME_PLME_RESUME_CONFIRM   3
 
#define PRIME_PLME_TESTMODE_CONFIRM   4
 
#define PRIME_PLME_GET_CONFIRM   5
 
#define PRIME_PLME_SET_CONFIRM   6
 
#define PRIME_PLME_RESET_REQUEST   20
 
#define PRIME_PLME_SLEEP_REQUEST   21
 
#define PRIME_PLME_RESUME_REQUEST   22
 
#define PRIME_PLME_TESTMODE_REQUEST   23
 
#define PRIME_PLME_GET_REQUEST   24
 
#define PRIME_PLME_SET_REQUEST   25
 
#define PRIME_PLME_DATA_SIZE   364
 
int prime_PLME_RESET_request (void)
 
int prime_PLME_SLEEP_request (void)
 
int prime_PLME_RESUME_request (void)
 
int prime_PLME_TESTMODE_request (uint8_t enable, uint8_t mode, uint8_t modulation, uint8_t pwr_level)
 
int prime_PLME_GET_request (uint16_t pibAttribute)
 
int prime_PLME_SET_request (uint16_t pibAttribute, uint32_t pibAttributeValue)
 
int prime_PLME_SET_BUF_request (uint16_t pibAttribute, uint8_t *pibBuf, uint16_t pibLen)
 
int prime_PLME_callback (uint8_t *buf)
 
#define PRIME_MLME_RESULT_DONE   0
 
#define PRIME_MLME_RESULT_SUCCESS   0
 
#define PRIME_MLME_RESULT_FAILED   1
 
#define PRIME_MLME_RESULT_REJECTED   1
 
#define PRIME_MLME_RESULT_TIMEOUT   2
 
#define PRIME_MLME_RESULT_NOSNA   8
 
#define PRIME_MLME_RESULT_NOSWITCH   9
 
#define PRIME_MLME_RESULT_REDUNDANT   10
 
#define PRIME_MLME_RESULT_BADATTR   11
 
#define PRIME_MLME_RESULT_OUTOFRANGE   12
 
#define PRIME_MLME_RESULT_READONLY   13
 
#define PRIME_MLME_REGISTER_CONFIRM   1
 
#define PRIME_MLME_REGISTER_INDICATION   2
 
#define PRIME_MLME_UNREGISTER_CONFIRM   3
 
#define PRIME_MLME_UNREGISTER_INDICATION   4
 
#define PRIME_MLME_PROMOTE_CONFIRM   5
 
#define PRIME_MLME_PROMOTE_INDICATION   6
 
#define PRIME_MLME_DEMOTE_CONFIRM   7
 
#define PRIME_MLME_DEMOTE_INDICATION   8
 
#define PRIME_MLME_RESET_CONFIRM   9
 
#define PRIME_MLME_GET_CONFIRM   10
 
#define PRIME_MLME_LIST_GET_CONFIRM   11
 
#define PRIME_MLME_SET_CONFIRM   12
 
#define PRIME_MLME_REGISTER_REQUEST   20
 
#define PRIME_MLME_UNREGISTER_REQUEST_SERVICE   21
 
#define PRIME_MLME_PROMOTE_REQUEST_SERVICE   22
 
#define PRIME_MLME_DEMOTE_REQUEST_SERVICE   23
 
#define PRIME_MLME_RESET_REQUEST   24
 
#define PRIME_MLME_GET_REQUEST   25
 
#define PRIME_MLME_LIST_GET_REQUEST   26
 
#define PRIME_MLME_SET_REQUEST   27
 
#define PRIME_MLME_UNREGISTER_REQUEST_BASE   29
 
#define PRIME_MLME_PROMOTE_REQUEST_BASE   30
 
#define PRIME_MLME_DEMOTE_REQUEST_BASE   31
 
#define MLME_DATA_SIZE   364
 
#define MLME_LIST_REGDEVNUM   15
 
#define MLME_LIST_ACTCONNUM   22
 
#define MLME_LIST_MCASTNUM   83
 
#define MLME_LIST_SWNODENUM   64
 
#define MLME_LIST_DIRCONNUM   8
 
#define MLME_LIST_DIRSWNODENUM   15
 
#define MLME_LIST_AVAILSWNODENUM   22
 
#define MLME_LIST_PHYCOMMNUM   17
 
#define MLME_LIST_ACTCONNUM_EX   20
 
#define MLME_LIST_432_NODES   7
 
#define MLME_LIST_EXSNR_DEVNUM   80
 
#define MLME_LIST_FU_NODES   20
 
int prime_MLME_REGISTER_request (uint8_t *sna, uint8_t *mac)
 
int prime_MLME_UNREGISTER_request_base (uint8_t *mac)
 
int prime_MLME_UNREGISTER_request_service (void)
 
int prime_MLME_PROMOTE_request_base (uint8_t *mac)
 
int prime_MLME_PROMOTE_request_service (void)
 
int prime_MLME_DEMOTE_request_base (uint8_t *mac)
 
int prime_MLME_DEMOTE_request_service (void)
 
int prime_MLME_RESET_request (void)
 
int prime_MLME_GET_request (uint16_t pibAttribute)
 
int prime_MLME_LIST_GET_request (uint16_t pibListAttribute)
 
int prime_MLME_SET_request (uint16_t pibAttribute, uint32_t pibAttributeValue)
 
int prime_MLME_SET_BUF_request (uint16_t pibAttribute, uint8_t *pibBuf, uint8_t pibLen)
 
int prime_MLME_callback (uint8_t *buf)
 
#define PRIME_MACSAP_RESULT_SUCCESS   0
 
#define PRIME_MACSAP_RESULT_ACCEPT   0
 
#define PRIME_MACSAP_RESULT_ERROR   1
 
#define PRIME_MACSAP_RESULT_REJECT   1
 
#define PRIME_MACSAP_RESULT_TIMEOUT   2
 
#define PRIME_MACSAP_RESULT_NO_BANDWITH   3
 
#define PRIME_MACSAP_RESULT_NO_SUCH_DEVICE   4
 
#define PRIME_MACSAP_RESULT_REDIRECT_FAILED   5
 
#define PRIME_MACSAP_RESULT_NOT_REGISTERED   6
 
#define PRIME_MACSAP_RESULT_NO_MORE_LCIDS   7
 
#define PRIME_MACSAP_ERROR_NO_ERROR   0
 
#define PRIME_MACSAP_ERROR_REJECT   1
 
#define PRIME_MACSAP_ERROR_TIMEOUT   2
 
#define PRIME_MACSAP_ERROR_NO_SUCH_DEVICE   4
 
#define PRIME_MACSAP_ERROR_NOT_REGISTERED   6
 
#define PRIME_MACSAP_ERROR_INVALID_HANDLER   8
 
#define PRIME_MACSAP_ERROR_NO_RESOURCES   9
 
#define PRIME_MACSAP_ERROR_PROCESS_RUNNING   10
 
#define PRIME_MACSAP_ERROR_TOO_LONG   11
 
#define PRIME_MACSAP_ERROR_CON_NOT_OPEN   12
 
#define PRIME_MACSAP_ERROR_NO_ACKED   13
 
#define PRIME_MACSAP_ERROR_TX_BUSY   14
 
#define PRIME_MACSAP_ERROR_INVALID_BCAST   15
 
#define PRIME_MACSAP_ERROR_INVALID_DIRCON   16
 
#define PRIME_MACSAP_ERROR_INVALID_EUI48   17
 
#define PRIME_MACSAP_ESTABLISH_CONFIRM   1
 
#define PRIME_MACSAP_ESTABLISH_INDICATION   2
 
#define PRIME_MACSAP_RELEASE_CONFIRM   3
 
#define PRIME_MACSAP_RELEASE_INDICATION   4
 
#define PRIME_MACSAP_DATA_CONFIRM   5
 
#define PRIME_MACSAP_DATA_INDICATION   6
 
#define PRIME_MACSAP_JOIN_CONFIRM   8
 
#define PRIME_MACSAP_LEAVE_CONFIRM   9
 
#define PRIME_MACSAP_JOIN_INDICATION_BASE   10
 
#define PRIME_MACSAP_LEAVE_INDICATION_BASE   11
 
#define PRIME_MACSAP_JOIN_INDICATION_SERVICE   12
 
#define PRIME_MACSAP_LEAVE_INDICATION_SERVICE   13
 
#define PRIME_MACSAP_ESTABLISH_REQUEST   20
 
#define PRIME_MACSAP_ESTABLISH_RESPONSE   21
 
#define PRIME_MACSAP_REDIRECT_RESPONSE   22
 
#define PRIME_MACSAP_RELEASE_REQUEST   23
 
#define PRIME_MACSAP_RELEASE_RESPONSE   24
 
#define PRIME_MACSAP_SEND_REQUEST   25
 
#define PRIME_MACSAP_DATA_REQUEST   26
 
#define PRIME_MACSAP_JOIN_REQUEST_BASE   27
 
#define PRIME_MACSAP_LEAVE_REQUEST_BASE   28
 
#define PRIME_MACSAP_JOIN_RESPONSE_BASE   29
 
#define PRIME_MACSAP_JOIN_REQUEST_SERVICE   30
 
#define PRIME_MACSAP_LEAVE_REQUEST_SERVICE   31
 
#define PRIME_MACSAP_JOIN_RESPONSE_SERVICE   32
 
#define PRIME_MACSAP_DATA_SIZE   1024
 
#define MAX_PRIO   0
 
#define PRIO_1   1
 
#define PRIO_2   2
 
#define PRIO_3   3
 
#define DATA_PRIO   2
 
#define TYPE_CL_IPv4_AR   1
 
#define TYPE_CL_IPv4_UNICAST   2
 
#define TYPE_CL_432   3
 
#define TYPE_CL_MGMT   4
 
#define TYPE_CL_APPEMU   250
 
#define LCI_CL_IPv4_BROADCAST   1
 
#define LCI_CL_432_BROADCAST   2
 
#define GENERIC_CALLBACK_TYPE   0
 
#define GENERIC_CALLBACK_HANDLER   0xFFFF
 
int prime_MAC_ESTABLISH_request (uint8_t *macAddr, uint8_t type, uint8_t *buf, uint16_t dataLength, uint8_t arq, uint16_t cfpBytes)
 
int prime_MAC_ESTABLISH_response (uint16_t conHandle, uint8_t answer, uint8_t *buf, uint16_t dataLength)
 
int prime_MAC_RELEASE_request (uint16_t conHandle)
 
int prime_MAC_RELEASE_response (uint16_t conHandle, uint8_t answer)
 
int prime_MAC_JOIN_request_base (uint8_t broadcast, uint16_t handler, uint8_t *macAddr, uint8_t type, uint8_t *buf, uint16_t dataLength)
 
int prime_MAC_JOIN_request_service (uint8_t broadcast, uint8_t type, uint8_t *buf, uint16_t dataLength)
 
int prime_MAC_JOIN_response_base (uint16_t handler, uint8_t *macAddr, uint8_t answer)
 
int prime_MAC_JOIN_response_service (uint16_t handler, uint8_t answer)
 
int prime_MAC_LEAVE_request_base (uint16_t conHandle, uint8_t *macAddr)
 
int prime_MAC_LEAVE_request_service (uint16_t conHandle)
 
int prime_MAC_REDIRECT_response (uint16_t conHandle, uint8_t *macAddr, uint8_t *buf, uint16_t dataLength)
 
int prime_MAC_DATA_request (uint16_t conHandle, uint8_t *buf, uint16_t dataLength, uint8_t priority)
 
int prime_MAC_callback (MacSapCallBack *info, uint16_t handler, uint8_t type)
 
#define PRIME_TYPE_NUM   255
 
int8_t mac_sap_reserve_type (uint8_t type)
 
int8_t mac_sap_free_type (uint8_t type)
 
int8_t mac_sap_get_reserve_type (uint8_t type)
 
int8_t mac_sap_reserve_handler (uint16_t handler, uint16_t iNID, uint8_t type)
 
int8_t mac_sap_free_handler (uint16_t connHandler)
 
int8_t mac_sap_get_reserve_handler (uint16_t handler)
 
int prime_MAC_callback_reserved (MacSapCallBack *info, uint16_t handler, uint8_t type)
 
typedef struct _Node432 Node432
 
#define GET_INDEX_NODE_432(X)   (X - 2)
 
#define GET_ADDRESS_NODE_432(X)   (X + 2)
 
#define MASK_SNIFFER_EMBEDDED   0x80
 
#define SNIFFER_ATPL210   0x00
 
#define SNIFFER_ATPL240   0x01
 

#define DATA_PRIO   2
#define GENERIC_CALLBACK_HANDLER   0xFFFF

Referenced by serial_if_mac_process().

#define GENERIC_CALLBACK_TYPE   0

Referenced by serial_if_mac_process().

#define GET_ADDRESS_NODE_432 (   X)    (X + 2)
#define GET_INDEX_NODE_432 (   X)    (X - 2)
#define LCI_CL_432_BROADCAST   2
#define LCI_CL_IPv4_BROADCAST   1
#define MASK_SNIFFER_EMBEDDED   0x80
#define MAX_PDU_SIZE   364
#define MAX_PRIO   0
#define MLME_DATA_SIZE   364
#define MLME_LIST_432_NODES   7
#define MLME_LIST_ACTCONNUM   22
#define MLME_LIST_ACTCONNUM_EX   20
#define MLME_LIST_AVAILSWNODENUM   22
#define MLME_LIST_DIRCONNUM   8
#define MLME_LIST_DIRSWNODENUM   15
#define MLME_LIST_EXSNR_DEVNUM   80
#define MLME_LIST_FU_NODES   20
#define MLME_LIST_MCASTNUM   83
#define MLME_LIST_PHYCOMMNUM   17
#define MLME_LIST_REGDEVNUM   15
#define MLME_LIST_SWNODENUM   64
#define PRIME_CHECK_PLC_CFG_TIMER   5000
#define PRIME_MACSAP_DATA_CONFIRM   5
#define PRIME_MACSAP_DATA_INDICATION   6
#define PRIME_MACSAP_DATA_REQUEST   26
#define PRIME_MACSAP_DATA_SIZE   1024
#define PRIME_MACSAP_ERROR_CON_NOT_OPEN   12
#define PRIME_MACSAP_ERROR_INVALID_BCAST   15
#define PRIME_MACSAP_ERROR_INVALID_DIRCON   16
#define PRIME_MACSAP_ERROR_INVALID_EUI48   17
#define PRIME_MACSAP_ERROR_INVALID_HANDLER   8
#define PRIME_MACSAP_ERROR_NO_ACKED   13
#define PRIME_MACSAP_ERROR_NO_ERROR   0
#define PRIME_MACSAP_ERROR_NO_RESOURCES   9
#define PRIME_MACSAP_ERROR_NO_SUCH_DEVICE   4
#define PRIME_MACSAP_ERROR_NOT_REGISTERED   6
#define PRIME_MACSAP_ERROR_PROCESS_RUNNING   10
#define PRIME_MACSAP_ERROR_REJECT   1
#define PRIME_MACSAP_ERROR_TIMEOUT   2
#define PRIME_MACSAP_ERROR_TOO_LONG   11
#define PRIME_MACSAP_ERROR_TX_BUSY   14
#define PRIME_MACSAP_ESTABLISH_CONFIRM   1
#define PRIME_MACSAP_ESTABLISH_INDICATION   2
#define PRIME_MACSAP_ESTABLISH_REQUEST   20
#define PRIME_MACSAP_ESTABLISH_RESPONSE   21
#define PRIME_MACSAP_JOIN_CONFIRM   8
#define PRIME_MACSAP_JOIN_INDICATION_BASE   10
#define PRIME_MACSAP_JOIN_INDICATION_SERVICE   12
#define PRIME_MACSAP_JOIN_REQUEST_BASE   27
#define PRIME_MACSAP_JOIN_REQUEST_SERVICE   30
#define PRIME_MACSAP_JOIN_RESPONSE_BASE   29
#define PRIME_MACSAP_JOIN_RESPONSE_SERVICE   32
#define PRIME_MACSAP_LEAVE_CONFIRM   9
#define PRIME_MACSAP_LEAVE_INDICATION_BASE   11
#define PRIME_MACSAP_LEAVE_INDICATION_SERVICE   13
#define PRIME_MACSAP_LEAVE_REQUEST_BASE   28
#define PRIME_MACSAP_LEAVE_REQUEST_SERVICE   31
#define PRIME_MACSAP_REDIRECT_RESPONSE   22
#define PRIME_MACSAP_RELEASE_CONFIRM   3
#define PRIME_MACSAP_RELEASE_INDICATION   4
#define PRIME_MACSAP_RELEASE_REQUEST   23
#define PRIME_MACSAP_RELEASE_RESPONSE   24
#define PRIME_MACSAP_RESULT_ACCEPT   0
#define PRIME_MACSAP_RESULT_ERROR   1
#define PRIME_MACSAP_RESULT_NO_BANDWITH   3
#define PRIME_MACSAP_RESULT_NO_MORE_LCIDS   7
#define PRIME_MACSAP_RESULT_NO_SUCH_DEVICE   4
#define PRIME_MACSAP_RESULT_NOT_REGISTERED   6
#define PRIME_MACSAP_RESULT_REDIRECT_FAILED   5
#define PRIME_MACSAP_RESULT_REJECT   1
#define PRIME_MACSAP_RESULT_SUCCESS   0
#define PRIME_MACSAP_RESULT_TIMEOUT   2
#define PRIME_MACSAP_SEND_REQUEST   25
#define PRIME_MLME_DEMOTE_CONFIRM   7
#define PRIME_MLME_DEMOTE_INDICATION   8
#define PRIME_MLME_DEMOTE_REQUEST_BASE   31
#define PRIME_MLME_DEMOTE_REQUEST_SERVICE   23
#define PRIME_MLME_GET_CONFIRM   10
#define PRIME_MLME_GET_REQUEST   25
#define PRIME_MLME_LIST_GET_CONFIRM   11
#define PRIME_MLME_LIST_GET_REQUEST   26
#define PRIME_MLME_PROMOTE_CONFIRM   5
#define PRIME_MLME_PROMOTE_INDICATION   6
#define PRIME_MLME_PROMOTE_REQUEST_BASE   30
#define PRIME_MLME_PROMOTE_REQUEST_SERVICE   22
#define PRIME_MLME_REGISTER_CONFIRM   1
#define PRIME_MLME_REGISTER_INDICATION   2
#define PRIME_MLME_REGISTER_REQUEST   20
#define PRIME_MLME_RESET_CONFIRM   9
#define PRIME_MLME_RESET_REQUEST   24
#define PRIME_MLME_RESULT_BADATTR   11
#define PRIME_MLME_RESULT_DONE   0
#define PRIME_MLME_RESULT_FAILED   1
#define PRIME_MLME_RESULT_NOSNA   8
#define PRIME_MLME_RESULT_NOSWITCH   9
#define PRIME_MLME_RESULT_OUTOFRANGE   12
#define PRIME_MLME_RESULT_READONLY   13
#define PRIME_MLME_RESULT_REDUNDANT   10
#define PRIME_MLME_RESULT_REJECTED   1
#define PRIME_MLME_RESULT_SUCCESS   0
#define PRIME_MLME_RESULT_TIMEOUT   2
#define PRIME_MLME_SET_CONFIRM   12
#define PRIME_MLME_SET_REQUEST   27
#define PRIME_MLME_UNREGISTER_CONFIRM   3
#define PRIME_MLME_UNREGISTER_INDICATION   4
#define PRIME_MLME_UNREGISTER_REQUEST_BASE   29
#define PRIME_MLME_UNREGISTER_REQUEST_SERVICE   21
#define PRIME_PLME_DATA_SIZE   364
#define PRIME_PLME_GET_CONFIRM   5
#define PRIME_PLME_GET_REQUEST   24
#define PRIME_PLME_RESET_CONFIRM   1
#define PRIME_PLME_RESET_REQUEST   20
#define PRIME_PLME_RESULT_BADATTR   3
#define PRIME_PLME_RESULT_DONE   0
#define PRIME_PLME_RESULT_FAILED   1
#define PRIME_PLME_RESULT_OUTOFRANGE   4
#define PRIME_PLME_RESULT_READONLY   5
#define PRIME_PLME_RESULT_REJECTED   2
#define PRIME_PLME_RESULT_SUCCESS   0
#define PRIME_PLME_RESUME_CONFIRM   3
#define PRIME_PLME_RESUME_REQUEST   22
#define PRIME_PLME_SET_CONFIRM   6
#define PRIME_PLME_SET_REQUEST   25
#define PRIME_PLME_SLEEP_CONFIRM   2
#define PRIME_PLME_SLEEP_REQUEST   21
#define PRIME_PLME_TESTMODE_CONFIRM   4
#define PRIME_PLME_TESTMODE_REQUEST   23
#define PRIME_TYPE_NUM   255
#define PRIO_1   1
#define PRIO_2   2
#define PRIO_3   3
#define SERIAL_NUMBER_432_MAC   16
#define SNIFFER_ATPL210   0x00
#define SNIFFER_ATPL240   0x01
#define TYPE_CL_432   3
#define TYPE_CL_APPEMU   250
#define TYPE_CL_IPv4_AR   1
#define TYPE_CL_IPv4_UNICAST   2
#define TYPE_CL_MGMT   4

typedef struct _Node432 Node432

Enumerator
PRIME_BROADCAST_LNID 
PRIME_MULTICAST_LNID 
Enumerator
MAC_PLC_STATE_DISCONNECTED 
MAC_PLC_STATE_DETECTION 
MAC_PLC_STATE_REGISTERING 
MAC_PLC_STATE_OPERATIVE 
MAC_PLC_STATE_BASE 
Enumerator
SNIFFER_RX 
SNIFFER_TX 
SNIFFER_TX_SERIAL 
SNIFFER_RX_SERIAL 

int8_t mac_sap_free_handler ( uint16_t  connHandler)
int8_t mac_sap_free_type ( uint8_t  type)
int8_t mac_sap_get_reserve_handler ( uint16_t  handler)
int8_t mac_sap_get_reserve_type ( uint8_t  type)
int8_t mac_sap_reserve_handler ( uint16_t  handler,
uint16_t  iNID,
uint8_t  type 
)
int8_t mac_sap_reserve_type ( uint8_t  type)
void prime_init ( void  )

Referenced by _prime_stack_process().

int prime_MAC_callback ( MacSapCallBack info,
uint16_t  handler,
uint8_t  type 
)

Referenced by serial_if_mac_process().

int prime_MAC_callback_reserved ( MacSapCallBack info,
uint16_t  handler,
uint8_t  type 
)
int prime_MAC_DATA_request ( uint16_t  conHandle,
uint8_t *  buf,
uint16_t  dataLength,
uint8_t  priority 
)
int prime_MAC_ESTABLISH_request ( uint8_t *  macAddr,
uint8_t  type,
uint8_t *  buf,
uint16_t  dataLength,
uint8_t  arq,
uint16_t  cfpBytes 
)
int prime_MAC_ESTABLISH_response ( uint16_t  conHandle,
uint8_t  answer,
uint8_t *  buf,
uint16_t  dataLength 
)
int prime_MAC_JOIN_request_base ( uint8_t  broadcast,
uint16_t  handler,
uint8_t *  macAddr,
uint8_t  type,
uint8_t *  buf,
uint16_t  dataLength 
)
int prime_MAC_JOIN_request_service ( uint8_t  broadcast,
uint8_t  type,
uint8_t *  buf,
uint16_t  dataLength 
)
int prime_MAC_JOIN_response_base ( uint16_t  handler,
uint8_t *  macAddr,
uint8_t  answer 
)
int prime_MAC_JOIN_response_service ( uint16_t  handler,
uint8_t  answer 
)
int prime_MAC_LEAVE_request_base ( uint16_t  conHandle,
uint8_t *  macAddr 
)
int prime_MAC_LEAVE_request_service ( uint16_t  conHandle)
int prime_MAC_REDIRECT_response ( uint16_t  conHandle,
uint8_t *  macAddr,
uint8_t *  buf,
uint16_t  dataLength 
)
int prime_MAC_RELEASE_request ( uint16_t  conHandle)
int prime_MAC_RELEASE_response ( uint16_t  conHandle,
uint8_t  answer 
)
int prime_MLME_callback ( uint8_t *  buf)

Referenced by serial_if_mlme_process().

int prime_MLME_DEMOTE_request_base ( uint8_t *  mac)
int prime_MLME_DEMOTE_request_service ( void  )
int prime_MLME_GET_request ( uint16_t  pibAttribute)
int prime_MLME_LIST_GET_request ( uint16_t  pibListAttribute)
int prime_MLME_PROMOTE_request_base ( uint8_t *  mac)
int prime_MLME_PROMOTE_request_service ( void  )
int prime_MLME_REGISTER_request ( uint8_t *  sna,
uint8_t *  mac 
)
int prime_MLME_RESET_request ( void  )
int prime_MLME_SET_BUF_request ( uint16_t  pibAttribute,
uint8_t *  pibBuf,
uint8_t  pibLen 
)
int prime_MLME_SET_request ( uint16_t  pibAttribute,
uint32_t  pibAttributeValue 
)
int prime_MLME_UNREGISTER_request_base ( uint8_t *  mac)
int prime_MLME_UNREGISTER_request_service ( void  )
int prime_PLME_callback ( uint8_t *  buf)

Referenced by serial_if_plme_process().

int prime_PLME_GET_request ( uint16_t  pibAttribute)
int prime_PLME_RESET_request ( void  )
int prime_PLME_RESUME_request ( void  )
int prime_PLME_SET_BUF_request ( uint16_t  pibAttribute,
uint8_t *  pibBuf,
uint16_t  pibLen 
)
int prime_PLME_SET_request ( uint16_t  pibAttribute,
uint32_t  pibAttributeValue 
)
int prime_PLME_SLEEP_request ( void  )
int prime_PLME_TESTMODE_request ( uint8_t  enable,
uint8_t  mode,
uint8_t  modulation,
uint8_t  pwr_level 
)
void prime_process ( void  )

Referenced by _prime_stack_process().

void prime_start ( void  )

Referenced by _prime_stack_process().

void prime_upd1ms ( void  )

Referenced by _update_1ms_proc().