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. | |
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 } |
#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 |
Referenced by serial_if_sniffer_pack_pdu().
#define MAX_PDU_SIZE 364 |
Referenced by _serial_if_mac_pack_data_conf().
#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_MAC_LENGTH 6 |
Referenced by _serial_if_mac_pack_establish_conf(), _serial_if_mac_pack_establish_ind(), _serial_if_mac_pack_join_ind_base(), _serial_if_mac_pack_leave_ind_base(), _serial_if_mac_unpack_establish_req(), _serial_if_mac_unpack_join_req_base(), _serial_if_mac_unpack_join_resp_base(), _serial_if_mac_unpack_leave_req_base(), _serial_if_mac_unpack_redirect_resp(), _serial_if_mlme_pack_active_conn(), _serial_if_mlme_pack_active_conn_ex(), _serial_if_mlme_pack_available_switch_table(), _serial_if_mlme_pack_direct_conn(), _serial_if_mlme_pack_direct_switch_table(), _serial_if_mlme_pack_list_phy_comm(), _serial_if_mlme_pack_mlme_callback(), _serial_if_mlme_pack_node_432_table(), _serial_if_mlme_pack_reg_devices(), _serial_if_mlme_unpack_demote_req_base(), _serial_if_mlme_unpack_promote_req_base(), _serial_if_mlme_unpack_register_req(), _serial_if_mlme_unpack_set_req(), and _serial_if_mlme_unpack_unregister_req_base().
#define PRIME_MACSAP_DATA_CONFIRM 5 |
Referenced by _serial_if_mac_pack_data_conf(), and serial_if_mac_process().
#define PRIME_MACSAP_DATA_INDICATION 6 |
Referenced by _serial_if_mac_pack_data_ind(), and serial_if_mac_process().
#define PRIME_MACSAP_DATA_REQUEST 26 |
Referenced by serial_if_mac_api_parser().
#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 |
Referenced by _serial_if_mac_pack_establish_conf(), and serial_if_mac_process().
#define PRIME_MACSAP_ESTABLISH_INDICATION 2 |
Referenced by _serial_if_mac_pack_establish_ind(), and serial_if_mac_process().
#define PRIME_MACSAP_ESTABLISH_REQUEST 20 |
Referenced by serial_if_mac_api_parser().
#define PRIME_MACSAP_ESTABLISH_RESPONSE 21 |
Referenced by serial_if_mac_api_parser().
#define PRIME_MACSAP_JOIN_CONFIRM 8 |
Referenced by _serial_if_mac_pack_join_conf(), and serial_if_mac_process().
#define PRIME_MACSAP_JOIN_INDICATION_BASE 10 |
Referenced by _serial_if_mac_pack_join_ind_base(), and serial_if_mac_process().
#define PRIME_MACSAP_JOIN_INDICATION_SERVICE 12 |
Referenced by _serial_if_mac_pack_join_ind_service(), and serial_if_mac_process().
#define PRIME_MACSAP_JOIN_REQUEST_BASE 27 |
Referenced by serial_if_mac_api_parser().
#define PRIME_MACSAP_JOIN_REQUEST_SERVICE 30 |
Referenced by serial_if_mac_api_parser().
#define PRIME_MACSAP_JOIN_RESPONSE_BASE 29 |
Referenced by serial_if_mac_api_parser().
#define PRIME_MACSAP_JOIN_RESPONSE_SERVICE 32 |
Referenced by serial_if_mac_api_parser().
#define PRIME_MACSAP_LEAVE_CONFIRM 9 |
Referenced by _serial_if_mac_pack_leave_conf(), and serial_if_mac_process().
#define PRIME_MACSAP_LEAVE_INDICATION_BASE 11 |
Referenced by _serial_if_mac_pack_leave_ind_base(), and serial_if_mac_process().
#define PRIME_MACSAP_LEAVE_INDICATION_SERVICE 13 |
Referenced by _serial_if_mac_pack_leave_ind_service(), and serial_if_mac_process().
#define PRIME_MACSAP_LEAVE_REQUEST_BASE 28 |
Referenced by serial_if_mac_api_parser().
#define PRIME_MACSAP_LEAVE_REQUEST_SERVICE 31 |
Referenced by serial_if_mac_api_parser().
#define PRIME_MACSAP_REDIRECT_RESPONSE 22 |
Referenced by serial_if_mac_api_parser().
#define PRIME_MACSAP_RELEASE_CONFIRM 3 |
Referenced by _serial_if_mac_pack_release_conf(), and serial_if_mac_process().
#define PRIME_MACSAP_RELEASE_INDICATION 4 |
Referenced by _serial_if_mac_pack_release_ind(), and serial_if_mac_process().
#define PRIME_MACSAP_RELEASE_REQUEST 23 |
Referenced by serial_if_mac_api_parser().
#define PRIME_MACSAP_RELEASE_RESPONSE 24 |
Referenced by serial_if_mac_api_parser().
#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 |
Referenced by _serial_if_mlme_pack_mlme_callback().
#define PRIME_MLME_DEMOTE_INDICATION 8 |
Referenced by _serial_if_mlme_pack_mlme_callback().
#define PRIME_MLME_DEMOTE_REQUEST_BASE 31 |
Referenced by serial_if_mlme_api_parser().
#define PRIME_MLME_DEMOTE_REQUEST_SERVICE 23 |
Referenced by serial_if_mlme_api_parser().
#define PRIME_MLME_GET_CONFIRM 10 |
Referenced by _serial_if_mlme_pack_mlme_callback().
#define PRIME_MLME_GET_REQUEST 25 |
Referenced by serial_if_mlme_api_parser().
#define PRIME_MLME_LIST_GET_CONFIRM 11 |
Referenced by _serial_if_mlme_pack_mlme_callback().
#define PRIME_MLME_LIST_GET_REQUEST 26 |
Referenced by serial_if_mlme_api_parser().
#define PRIME_MLME_PROMOTE_CONFIRM 5 |
Referenced by _serial_if_mlme_pack_mlme_callback().
#define PRIME_MLME_PROMOTE_INDICATION 6 |
Referenced by _serial_if_mlme_pack_mlme_callback().
#define PRIME_MLME_PROMOTE_REQUEST_BASE 30 |
Referenced by serial_if_mlme_api_parser().
#define PRIME_MLME_PROMOTE_REQUEST_SERVICE 22 |
Referenced by serial_if_mlme_api_parser().
#define PRIME_MLME_REGISTER_CONFIRM 1 |
Referenced by _serial_if_mlme_pack_mlme_callback().
#define PRIME_MLME_REGISTER_INDICATION 2 |
Referenced by _serial_if_mlme_pack_mlme_callback().
#define PRIME_MLME_REGISTER_REQUEST 20 |
Referenced by serial_if_mlme_api_parser().
#define PRIME_MLME_RESET_CONFIRM 9 |
Referenced by _serial_if_mlme_pack_mlme_callback().
#define PRIME_MLME_RESET_REQUEST 24 |
Referenced by serial_if_mlme_api_parser().
#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 |
Referenced by _serial_if_mlme_pack_mlme_callback().
#define PRIME_MLME_SET_REQUEST 27 |
Referenced by serial_if_mlme_api_parser().
#define PRIME_MLME_UNREGISTER_CONFIRM 3 |
Referenced by _serial_if_mlme_pack_mlme_callback().
#define PRIME_MLME_UNREGISTER_INDICATION 4 |
Referenced by _serial_if_mlme_pack_mlme_callback().
#define PRIME_MLME_UNREGISTER_REQUEST_BASE 29 |
Referenced by serial_if_mlme_api_parser().
#define PRIME_MLME_UNREGISTER_REQUEST_SERVICE 21 |
Referenced by serial_if_mlme_api_parser().
#define PRIME_PLME_DATA_SIZE 364 |
#define PRIME_PLME_GET_CONFIRM 5 |
Referenced by _serial_if_plme_pack_plme_callback().
#define PRIME_PLME_GET_REQUEST 24 |
Referenced by serial_if_plme_api_parser().
#define PRIME_PLME_RESET_CONFIRM 1 |
Referenced by _serial_if_plme_pack_plme_callback().
#define PRIME_PLME_RESET_REQUEST 20 |
Referenced by serial_if_plme_api_parser().
#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 |
Referenced by _serial_if_plme_pack_plme_callback().
#define PRIME_PLME_RESUME_REQUEST 22 |
Referenced by serial_if_plme_api_parser().
#define PRIME_PLME_SET_CONFIRM 6 |
Referenced by _serial_if_plme_pack_plme_callback().
#define PRIME_PLME_SET_REQUEST 25 |
Referenced by serial_if_plme_api_parser().
#define PRIME_PLME_SLEEP_CONFIRM 2 |
Referenced by _serial_if_plme_pack_plme_callback().
#define PRIME_PLME_SLEEP_REQUEST 21 |
Referenced by serial_if_plme_api_parser().
#define PRIME_PLME_TESTMODE_CONFIRM 4 |
Referenced by _serial_if_plme_pack_plme_callback().
#define PRIME_PLME_TESTMODE_REQUEST 23 |
Referenced by serial_if_plme_api_parser().
#define PRIME_TYPE_NUM 255 |
#define PRIO_1 1 |
#define PRIO_2 2 |
#define PRIO_3 3 |
#define SERIAL_NUMBER_432_MAC 16 |
Referenced by _serial_if_mlme_pack_node_432_table().
#define SNIFFER_ATPL210 0x00 |
Referenced by serial_if_sniffer_api_parser().
#define SNIFFER_ATPL240 0x01 |
Referenced by serial_if_sniffer_api_parser().
#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 |
enum MacLnidValues |
enum MacPlcStateValues |
enum SnifferType |
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 | ||
) |
Referenced by _serial_if_mac_unpack_data_req().
int prime_MAC_ESTABLISH_request | ( | uint8_t * | macAddr, |
uint8_t | type, | ||
uint8_t * | buf, | ||
uint16_t | dataLength, | ||
uint8_t | arq, | ||
uint16_t | cfpBytes | ||
) |
Referenced by _serial_if_mac_unpack_establish_req().
int prime_MAC_ESTABLISH_response | ( | uint16_t | conHandle, |
uint8_t | answer, | ||
uint8_t * | buf, | ||
uint16_t | dataLength | ||
) |
Referenced by _serial_if_mac_unpack_establish_resp().
int prime_MAC_JOIN_request_base | ( | uint8_t | broadcast, |
uint16_t | handler, | ||
uint8_t * | macAddr, | ||
uint8_t | type, | ||
uint8_t * | buf, | ||
uint16_t | dataLength | ||
) |
Referenced by _serial_if_mac_unpack_join_req_base().
int prime_MAC_JOIN_request_service | ( | uint8_t | broadcast, |
uint8_t | type, | ||
uint8_t * | buf, | ||
uint16_t | dataLength | ||
) |
Referenced by _serial_if_mac_unpack_join_req_service().
int prime_MAC_JOIN_response_base | ( | uint16_t | handler, |
uint8_t * | macAddr, | ||
uint8_t | answer | ||
) |
Referenced by _serial_if_mac_unpack_join_resp_base().
int prime_MAC_JOIN_response_service | ( | uint16_t | handler, |
uint8_t | answer | ||
) |
Referenced by _serial_if_mac_unpack_join_resp_service().
int prime_MAC_LEAVE_request_base | ( | uint16_t | conHandle, |
uint8_t * | macAddr | ||
) |
Referenced by _serial_if_mac_unpack_leave_req_base().
int prime_MAC_LEAVE_request_service | ( | uint16_t | conHandle | ) |
Referenced by _serial_if_mac_unpack_leave_req_service().
int prime_MAC_REDIRECT_response | ( | uint16_t | conHandle, |
uint8_t * | macAddr, | ||
uint8_t * | buf, | ||
uint16_t | dataLength | ||
) |
Referenced by _serial_if_mac_unpack_redirect_resp().
int prime_MAC_RELEASE_request | ( | uint16_t | conHandle | ) |
Referenced by _serial_if_mac_unpack_release_req().
int prime_MAC_RELEASE_response | ( | uint16_t | conHandle, |
uint8_t | answer | ||
) |
Referenced by _serial_if_mac_unpack_release_resp().
int prime_MLME_callback | ( | uint8_t * | buf | ) |
Referenced by serial_if_mlme_process().
int prime_MLME_DEMOTE_request_base | ( | uint8_t * | mac | ) |
Referenced by _serial_if_mlme_unpack_demote_req_base().
int prime_MLME_DEMOTE_request_service | ( | void | ) |
Referenced by serial_if_mlme_api_parser().
int prime_MLME_GET_request | ( | uint16_t | pibAttribute | ) |
Referenced by _serial_if_mlme_unpack_get_req().
int prime_MLME_LIST_GET_request | ( | uint16_t | pibListAttribute | ) |
Referenced by _serial_if_mlme_unpack_list_get_req().
int prime_MLME_PROMOTE_request_base | ( | uint8_t * | mac | ) |
Referenced by _serial_if_mlme_unpack_promote_req_base().
int prime_MLME_PROMOTE_request_service | ( | void | ) |
Referenced by serial_if_mlme_api_parser().
int prime_MLME_REGISTER_request | ( | uint8_t * | sna, |
uint8_t * | mac | ||
) |
Referenced by _serial_if_mlme_unpack_register_req().
int prime_MLME_RESET_request | ( | void | ) |
Referenced by serial_if_mlme_api_parser().
int prime_MLME_SET_BUF_request | ( | uint16_t | pibAttribute, |
uint8_t * | pibBuf, | ||
uint8_t | pibLen | ||
) |
Referenced by _serial_if_mlme_unpack_set_req().
int prime_MLME_SET_request | ( | uint16_t | pibAttribute, |
uint32_t | pibAttributeValue | ||
) |
Referenced by _prime_stack_process(), and _serial_if_mlme_unpack_set_req().
int prime_MLME_UNREGISTER_request_base | ( | uint8_t * | mac | ) |
Referenced by _serial_if_mlme_unpack_unregister_req_base().
int prime_MLME_UNREGISTER_request_service | ( | void | ) |
Referenced by serial_if_mlme_api_parser().
int prime_PLME_callback | ( | uint8_t * | buf | ) |
Referenced by serial_if_plme_process().
int prime_PLME_GET_request | ( | uint16_t | pibAttribute | ) |
Referenced by _serial_if_plme_unpack_get_req().
int prime_PLME_RESET_request | ( | void | ) |
Referenced by serial_if_plme_api_parser().
int prime_PLME_RESUME_request | ( | void | ) |
Referenced by serial_if_plme_api_parser().
int prime_PLME_SET_BUF_request | ( | uint16_t | pibAttribute, |
uint8_t * | pibBuf, | ||
uint16_t | pibLen | ||
) |
Referenced by _serial_if_plme_unpack_set_req().
int prime_PLME_SET_request | ( | uint16_t | pibAttribute, |
uint32_t | pibAttributeValue | ||
) |
Referenced by _serial_if_plme_unpack_set_req().
int prime_PLME_SLEEP_request | ( | void | ) |
Referenced by serial_if_plme_api_parser().
int prime_PLME_TESTMODE_request | ( | uint8_t | enable, |
uint8_t | mode, | ||
uint8_t | modulation, | ||
uint8_t | pwr_level | ||
) |
Referenced by _serial_if_plme_unpack_testmode_req().
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().