![]()  | 
        
           Wirepas SDK
           
         | 
        
Values related to the Management Service Access Point (MSAP)
Definition in file msap_frames.h.
Go to the source code of this file.
Typedefs | |
| typedef uint8_t | otap_seq_t | 
| Type for OTAP sequence number.  More... | |
Macros | |
| #define | APP_CONF_MAX 80 | 
| App config max size. The define is needed for compiling time size reservations.  More... | |
| #define | MSAP_MAX_NBORS 8 | 
| #define | MSAP_AUTOSTART 1 | 
| #define | MSAP_SCRATCHPAD_BLOCK_MAX_NUM_BYTES 112 | 
| #define | FRAME_MSAP_SCRATCHPAD_BLOCK_REQ_HEADER_SIZE (sizeof(msap_scratchpad_block_req_t) - MSAP_SCRATCHPAD_BLOCK_MAX_NUM_BYTES) | 
| #define | MSAP_SCRATCHPAD_BLOCK_READ_MAX_NUM_BYTES (MSAP_SCRATCHPAD_BLOCK_MAX_NUM_BYTES) | 
| #define | FRAME_MSAP_SCRATCHPAD_BLOCK_READ_CNF_HEADER_SIZE (sizeof(msap_scratchpad_block_read_cnf_t) - MSAP_SCRATCHPAD_BLOCK_READ_MAX_NUM_BYTES) | 
| #define | MSAP_NPD_PAYLOAD_MAX_LEN 80 | 
| #define | MSAP_CONFIG_DATA_ITEM_GET_HEADER_SIZE (sizeof(msap_config_data_item_get_cnf_t) - MSAP_NPD_PAYLOAD_MAX_LEN) | 
| #define | MSAP_CONFIG_DATA_LIST_ITEMS_MAX_NUM_ENDPOINTS 16 | 
| #define | MSAP_CONFIG_DATA_LIST_ITEMS_HEADER_SIZE (sizeof(msap_config_data_list_items_cnf_t) - sizeof(uint16_t) * MSAP_CONFIG_DATA_LIST_ITEMS_MAX_NUM_ENDPOINTS) | 
| typedef uint8_t otap_seq_t | 
Type for OTAP sequence number.
Do not confuse this with actual firmware version numbers.
Definition at line 25 of file msap_frames.h.
| struct msap_neighbor_entry_t | 
MSAP neighbor structure
Definition at line 54 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| w_addr_t | addr | 
 Neighbor ID  | 
| uint8_t | channel | 
 Cluster channel index  | 
| uint8_t | cost_0 | 
 TC 0 cost  | 
| uint16_t | last_update | 
 Time since last update time in seconds  | 
| uint8_t | link_rel | 
 Link reliability for this node (for next hop)  | 
| int8_t | rssi_norm | 
 Normalized RSSI  | 
| int8_t | rx_power | 
 Received power in dBm (for next hop)  | 
| int8_t | tx_power | 
 Used power in dBm for transmissions (for next hop)  | 
| uint8_t | type | 
 Neighbor type 
  | 
| struct msap_start_req_t | 
Definition at line 120 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint8_t | start_options | |
| struct msap_state_ind_t | 
Definition at line 125 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint8_t | queued_indications | |
| uint8_t | result | |
| struct msap_int_ind_t | 
Definition at line 134 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint8_t | config[80] | |
| uint16_t | interval | |
| uint8_t | queued_indications | |
| uint8_t | seq | |
| struct msap_sink_cost_write_req_t | 
Definition at line 142 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint8_t | base_cost | 
 Base cost to set: 0...255. Value is hard-capped at 254  | 
| struct msap_sink_cost_read_cnf_t | 
Definition at line 148 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint8_t | base_cost | 
 Base cost read out: will read as 0...254  | 
| uint8_t | result | 
 Read result: 
  | 
| struct msap_int_write_req_t | 
Definition at line 156 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint8_t | config[80] | 
 App Config  | 
| uint16_t | interval | 
 send interval  | 
| uint8_t | seq | 
 Seq number of this config  | 
| struct msap_int_read_cnf_t | 
Definition at line 166 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint8_t | config[80] | |
| uint16_t | interval | |
| uint8_t | result | 
 Read result  | 
| uint8_t | seq | 
 Other fields: 
  | 
| struct msap_ind_poll_cnf_t | 
Definition at line 176 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint8_t | queued | |
| struct msap_scratchpad_start_req_t | 
MSAP-SCRATCHPAD_START request frame
Definition at line 193 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint32_t | num_bytes | 
 Total number of bytes of data  | 
| otap_seq_t | seq | 
 Sequence number of the scratchpad  | 
| struct msap_scratchpad_block_req_t | 
MSAP-SCRATCHPAD_BLOCK request frame
Definition at line 220 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint8_t | bytes[112] | 
 Byte data  | 
| uint8_t | num_bytes | 
 Number of bytes of data  | 
| uint32_t | start_addr | 
 Byte offset from the beginning of scratchpad memory  | 
| struct msap_scratchpad_status_cnf_t | 
MSAP-SCRATCHPAD_STATUS confirmation frame
Definition at line 255 of file msap_frames.h.
| struct msap_remote_status_req_t | 
MSAP-REMOTE_STATUS request frame
Definition at line 288 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| w_addr_t | target | 
 Unicast or broadcast targeting  | 
| struct msap_remote_status_ind_t | 
MSAP-REMOTE_STATUS indication frame
Definition at line 304 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint32_t | area_id | |
| uint16_t | crc | |
| uint8_t | devel_version | |
| uint8_t | maint_version | |
| uint8_t | major_version | 
 Version information of currently running firmware  | 
| uint8_t | minor_version | |
| uint32_t | num_bytes | 
 Information about stored scratchpad  | 
| uint16_t | processed_crc | |
| uint32_t | processed_num_bytes | 
 Information about processed scratchpad, i.e. the scratchpad that produced the currently running firmware  | 
| uint8_t | processed_seq | |
| uint8_t | queued_indications | |
| uint8_t | seq | |
| w_addr_t | source | |
| uint8_t | status | |
| uint8_t | type | |
| uint16_t | update_req_timeout | |
| struct msap_on_scanned_nbors_ind_t | 
MSAP-ON_SCANNED_NBORS indication frame
Definition at line 346 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint8_t | queued_indications | |
| uint8_t | scan_ready | |
| struct msap_neighbors_cnf_t | 
MSAP-GET_NBORS
Definition at line 353 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| msap_neighbor_entry_t | neighbors[8] | 
 The neighbors themselves, result amount are filled, rest is garbage  | 
| uint8_t | result | 
 Result of query, number of nbors is piggybacked here  | 
| struct msap_sleep_start_req_t | 
MSAP-SLEEP request frame
Definition at line 372 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint32_t | app_config_nrls | 
 configuration for DREQ NRLS handling  | 
| uint32_t | seconds | 
 timeout value for stack sleep period  | 
| struct msap_sleep_state_rsp_t | 
MSAP-SLEEP state request rsp frame
Definition at line 381 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint32_t | sleep_seconds | |
| uint8_t | sleep_started | 
 stack sleep state and remaining sleep time in seconds  | 
| struct msap_sleep_latest_gotosleep_rsp_t | 
MSAP-SLEEP state request rsp frame
Definition at line 390 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint32_t | gotoNRSL_seconds | 
 Previous NRLS time to enter onto stack sleep from request  | 
| struct msap_install_quality_cnf_t | 
MSAP-GET_INSTALL_QUALITY
Definition at line 398 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint8_t | error_codes | 
 Error codes  | 
| uint8_t | quality | 
 Quality  | 
| uint8_t | result | 
 Result of query, always OK  | 
| struct msap_scratchpad_target_write_req_t | 
MSAP_SCRATCHPAD_TARGET_WRITE_REQ request
Definition at line 426 of file msap_frames.h.
| struct msap_scratchpad_target_read_cnf_t | 
MSAP_SCRATCHPAD_TARGET_READ_REQ request
Definition at line 452 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint8_t | action | |
| uint8_t | param | |
| uint8_t | result | 
 Read result  | 
| uint16_t | target_crc | |
| uint8_t | target_sequence | 
 fields:  | 
| struct msap_scratchpad_block_read_req_t | 
MSAP-SCRATCHPAD_BLOCK_READ request frame
Definition at line 467 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint8_t | num_bytes | 
 Number of bytes of data  | 
| uint32_t | start_addr | 
 Byte offset from the beginning of scratchpad memory  | 
| struct msap_scratchpad_block_read_cnf_t | 
MSAP-SCRATCHPAD_BLOCK_READ confirmation frame
Definition at line 493 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint8_t | bytes[(112)] | 
 Byte data  | 
| uint8_t | result | 
 Read result: 
  | 
| struct msap_config_data_item_set_req_t | 
MSAP-CONFIG_DATA_ITEM_SET request frame
Definition at line 508 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint16_t | npd_endpoint | 
 Byte offset from the beginning of scratchpad memory  | 
| uint8_t | npd_payload[80] | 
 Data  | 
| uint8_t | npd_payload_len | 
 Number of bytes of data  | 
| struct msap_config_data_item_set_cnf_t | 
MSAP-CONFIG_DATA_ITEM_SET confirmation frame
Definition at line 537 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint8_t | result | 
 Set result: 
  | 
| struct msap_config_data_item_get_req_t | 
MSAP-CONFIG_DATA_ITEM_GET request frame
Definition at line 544 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint16_t | npd_endpoint | 
 NPD endpoint  | 
| struct msap_config_data_item_get_cnf_t | 
MSAP-CONFIG_DATA_ITEM_GET confirmation frame
Definition at line 566 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint8_t | npd_payload[80] | 
 Data  | 
| uint8_t | npd_payload_len | 
 Number of bytes of data  | 
| uint8_t | result | 
 Set result: 
  | 
| struct msap_config_data_list_items_cnf_t | 
MSAP-CONFIG_DATA_LIST_ITEMS confirmation frame
Definition at line 592 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint8_t | amount_endpoints | 
 Number of endpoints in the list  | 
| uint16_t | endpoints[16] | 
 Endpoints at the node  | 
| uint8_t | result | 
 Set result: 
  | 
| struct msap_config_data_list_items_req_t | 
MSAP-CONFIG_DATA_LIST_ITEMS request frame
Definition at line 603 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint8_t | command | 
 Command field. Reserved for future use  | 
| struct msap_config_data_item_ind_t | 
MSAP-CONFIG_DATA_ITEM_IND indication frame
Definition at line 610 of file msap_frames.h.
| Data Fields | ||
|---|---|---|
| uint16_t | npd_endpoint | 
 NPD endpoint  | 
| uint8_t | npd_payload[80] | 
 Data  | 
| uint8_t | npd_payload_len | 
 Number of bytes of data  | 
| uint8_t | queued_indications | 
 Queued indications  | 
| union frame_msap | 
Definition at line 622 of file msap_frames.h.
| enum msap_attr_e | 
Definition at line 78 of file msap_frames.h.
| enum msap_attr_size_e | 
Definition at line 99 of file msap_frames.h.
Result of MSAP-CONFIG_DATA_ITEM_GET request
Definition at line 551 of file msap_frames.h.
Result of MSAP-CONFIG_DATA_ITEM_SET request
Definition at line 519 of file msap_frames.h.
Result of MSAP-CONFIG_DATA_LIST_ITEMS request
| Enumerator | |
|---|---|
| MSAP_CONFIG_DATA_LIST_ITEMS_SUCCESS | Set request was successful  | 
| MSAP_CONFIG_DATA_LIST_ITEMS_NOT_SUPPORTED | Error: Feature not supported  | 
Definition at line 577 of file msap_frames.h.
| enum msap_neighbor_type_e | 
MSAP nbor type.
Definition at line 43 of file msap_frames.h.
| enum msap_nrls_status_e | 
Result of MSAP-NRLS_STATUS request
| Enumerator | |
|---|---|
| MSAP_NRLS_SLEEP_ACTIVE | |
| MSAP_NRLS_SLEEP_NOT_STARTED | |
Definition at line 339 of file msap_frames.h.
| enum msap_remote_status_e | 
Result of MSAP-REMOTE_STATUS request NB: ONLY one return code possible as feature is not implemented anymore and must be used through Remote API
| Enumerator | |
|---|---|
| MSAP_REMOTE_STATUS_ACCESS_DENIED | |
Definition at line 298 of file msap_frames.h.
Result of MSAP-SCAN_NBORS request
| Enumerator | |
|---|---|
| MSAP_SCAN_NBORS_SUCCESS | |
| MSAP_SCAN_NBORS_INVALID_STATE | |
| MSAP_SCAN_NBORS_ACCESS_DENIED | |
Definition at line 331 of file msap_frames.h.
Action of MSAP-SCRATCHPAD_TARGET(READ/WRITE) 
 
Definition at line 409 of file msap_frames.h.
Result of MSAP-SCRATCHPAD_BLOCK request
Definition at line 234 of file msap_frames.h.
Result of MSAP-SCRATCHPAD_BLOCK_READ request
Definition at line 476 of file msap_frames.h.
Result of MSAP-SCRATCHPAD_BOOTABLE request
| Enumerator | |
|---|---|
| MSAP_SCRATCHPAD_BOOTABLE_SUCCESS | |
| MSAP_SCRATCHPAD_BOOTABLE_INVALID_STATE | |
| MSAP_SCRATCHPAD_BOOTABLE_NO_SCRATCHPAD | |
| MSAP_SCRATCHPAD_BOOTABLE_ACCESS_DENIED | |
Definition at line 279 of file msap_frames.h.
Result of MSAP-SCRATCHPAD_CLEAR request
Definition at line 182 of file msap_frames.h.
Result of MSAP-SCRATCHPAD_START request
| Enumerator | |
|---|---|
| MSAP_SCRATCHPAD_START_SUCCESS | Scratchpad write started successfully  | 
| MSAP_SCRATCHPAD_START_INVALID_STATE | Stack in invalid state  | 
| MSAP_SCRATCHPAD_START_INVALID_NUM_BYTES | |
| MSAP_SCRATCHPAD_START_INVALID_SEQ | Invalid msap_scratchpad_start_req_t::seq (not used anymore)  | 
| MSAP_SCRATCHPAD_START_ACCESS_DENIED | Access denied due to feature lock bits  | 
Definition at line 202 of file msap_frames.h.
Result of MSAP-SCRATCHPAD_WRITE_TARGET request
Definition at line 439 of file msap_frames.h.
| enum msap_sleep_update_e | 
Result of MSAP-SLEEP start/stop request
| Enumerator | |
|---|---|
| MSAP_SLEEP_SUCCESS | |
| MSAP_SLEEP_INVALID_STATE | |
| MSAP_SLEEP_INVALID_ROLE | |
| MSAP_SLEEP_INVALID_VALUE | |
| MSAP_SLEEP_ACCESS_DENIED | |
Definition at line 362 of file msap_frames.h.
| #define APP_CONF_MAX 80 | 
App config max size. The define is needed for compiling time size reservations.
Definition at line 18 of file msap_frames.h.
| #define FRAME_MSAP_SCRATCHPAD_BLOCK_READ_CNF_HEADER_SIZE (sizeof(msap_scratchpad_block_read_cnf_t) - MSAP_SCRATCHPAD_BLOCK_READ_MAX_NUM_BYTES) | 
Definition at line 501 of file msap_frames.h.
| #define FRAME_MSAP_SCRATCHPAD_BLOCK_REQ_HEADER_SIZE (sizeof(msap_scratchpad_block_req_t) - MSAP_SCRATCHPAD_BLOCK_MAX_NUM_BYTES) | 
Definition at line 230 of file msap_frames.h.
| #define MSAP_AUTOSTART 1 | 
Mask for MSAP_AUTOSTART
Definition at line 36 of file msap_frames.h.
| #define MSAP_CONFIG_DATA_ITEM_GET_HEADER_SIZE (sizeof(msap_config_data_item_get_cnf_t) - MSAP_NPD_PAYLOAD_MAX_LEN) | 
Header size of MSAP-CONFIG_DATA_ITEM_GET confirmation frame
Definition at line 563 of file msap_frames.h.
| #define MSAP_CONFIG_DATA_LIST_ITEMS_HEADER_SIZE (sizeof(msap_config_data_list_items_cnf_t) - sizeof(uint16_t) * MSAP_CONFIG_DATA_LIST_ITEMS_MAX_NUM_ENDPOINTS) | 
Header size of msap_config_data_list_items_cnf_t
Definition at line 589 of file msap_frames.h.
| #define MSAP_CONFIG_DATA_LIST_ITEMS_MAX_NUM_ENDPOINTS 16 | 
Maximum number of endpoints in the list at msap_config_data_list_items_cnf_t::endpoints
Definition at line 586 of file msap_frames.h.
| #define MSAP_MAX_NBORS 8 | 
How many neighbors in single query
Definition at line 33 of file msap_frames.h.
| #define MSAP_NPD_PAYLOAD_MAX_LEN 80 | 
Maximum number of bytes in an NPD payload
Definition at line 505 of file msap_frames.h.
| #define MSAP_SCRATCHPAD_BLOCK_MAX_NUM_BYTES 112 | 
Maximum number of bytes in a single scratchpad block
Definition at line 217 of file msap_frames.h.
| #define MSAP_SCRATCHPAD_BLOCK_READ_MAX_NUM_BYTES (MSAP_SCRATCHPAD_BLOCK_MAX_NUM_BYTES) | 
Maximum number of bytes in a single scratchpad block
Definition at line 464 of file msap_frames.h.