OTAU interface.
Copyright (c) 2018 - 2019 Microchip Technology Inc. and its subsidiaries.
#include "compiler.h"
Data Structures | |
struct | DataHandleTable_ |
struct | node_address_t |
struct | otau_domain_msg_t |
struct | otau_rcvd_frame_t |
Macros | |
#define | APP_MAX_PAYLOAD_SIZE (64) |
#define | APP_MODE_SUPPORTED_BIT 0x01 |
#define | BROADCAST_ADDR_SIZE 2 |
#define | DATA_HANDLE_TABLE_SIZE 20 |
#define | EXT_ADDR_LEN (8) |
Length (in octets) of extended address. More... | |
#define | EXTENDED_ADDR_SIZE 8 |
#define | FCF_ACK_REQUEST (1 << 5) |
The mask for the ACK request bit of the FCF. More... | |
#define | FCF_ADDR_MASK (3) |
#define | FCF_DEST_ADDR_OFFSET (10) |
Defines the offset of the destination address. More... | |
#define | FCF_FRAMETYPE_MASK (0x07) |
Defines a mask for the frame type. More... | |
#define | FCF_GET_DEST_ADDR_MODE(x) (((x) >> FCF_DEST_ADDR_OFFSET) & FCF_ADDR_MASK) |
#define | FCF_GET_FRAMETYPE(x) ((x) & FCF_FRAMETYPE_MASK) |
Macro to get the frame type. More... | |
#define | FCF_GET_SOURCE_ADDR_MODE(x) (((x) >> FCF_SOURCE_ADDR_OFFSET) & FCF_ADDR_MASK) |
#define | FCF_LEN (2) |
Length (in octets) of FCF. More... | |
#define | FCF_LONG_ADDR (0x03) |
Address Mode: LONG. More... | |
#define | FCF_NO_ADDR (0x00) |
Address Mode: NO ADDRESS. More... | |
#define | FCF_PAN_ID_COMPRESSION (1 << 6) |
The mask for the PAN ID compression bit of the FCF. More... | |
#define | FCF_RESERVED_ADDR (0x01) |
Address Mode: RESERVED. More... | |
#define | FCF_SECURITY_ENABLED (1 << 3) |
The mask for the security enable bit of the FCF. More... | |
#define | FCF_SET_DEST_ADDR_MODE(x) |
Macro to set the destination address mode. More... | |
#define | FCF_SET_FRAMETYPE(x) (x) |
A macro to set the frame type. More... | |
#define | FCF_SET_SOURCE_ADDR_MODE(x) |
Macro to set the source address mode. More... | |
#define | FCF_SHORT_ADDR (0x02) |
Address Mode: SHORT. More... | |
#define | FCF_SOURCE_ADDR_OFFSET (14) |
Defines the offset of the source address. More... | |
#define | FCS_LEN (2) |
Length (in octets) of FCS. More... | |
#define | FRAME_OVERHEAD (3) |
#define | macShortAddress_def (0xFFFF) |
Default value for PIB macShortAddress. More... | |
#define | MODE_MASK 0x03 |
#define | NATIVE_ADDR_SIZE 2 |
#define | PAN_ID_LEN (2) |
Length (in octets) of PAN ID. More... | |
#define | PHY_MAX_PAYLOAD_SIZE (80) |
#define | SEQ_NUM_LEN (1) |
Length of the sequence number field. More... | |
#define | SUPPORTED_MODE (APP_MODE_SUPPORTED_BIT) |
Typedefs | |
typedef struct DataHandleTable_ | DataHandleTable_t |
Functions | |
uint8_t * | get_node_address (addr_mode_t addr_mode) |
void | otau_log (uint8_t log_type, module_id_t module_id, error_code_t error_code, uint8_t len, uint8_t *user_log) |
void | otau_sent_frame (uint8_t addr_mode, uint8_t *addr, uint8_t domainId, uint8_t status) |
void | otau_trace (trace_type_t trace_type) |
void | otauDataSend (addr_mode_t addr_mode, uint8_t *addr, void *payload, uint16_t len) |
void | otauGetServerDetails (addr_mode_t addr_mode, uint8_t *addr) |
void | otauHandleMsg (otau_domain_msg_t *otau_domain_msg) |
void | otauInit (void) |
void | otauLed (otau_led_t led_state) |
void | otauRcvdFrame (otau_rcvd_frame_t *rcvd_frame) |
void | otauResetDevice (void) |
void | otauSetServerDetails (addr_mode_t addr_mode, uint8_t *addr) |
void | otauTask (void) |
void | otauTimerStart (otau_domain_t domain_code, uint32_t interval, otau_timer_mode_t mode) |
void | otauTimerStop (otau_domain_t domain_code) |
void | reverseMemcpy (uint8_t *dst, uint8_t *src, uint8_t len) |
Variables | |
node_address_t | serverAddress |
#define APP_MAX_PAYLOAD_SIZE (64) |
Referenced by otauDebugTimerHandler(), otauUpgradeRcvdFrame(), and send_image_req().
#define APP_MODE_SUPPORTED_BIT 0x01 |
#define BROADCAST_ADDR_SIZE 2 |
#define DATA_HANDLE_TABLE_SIZE 20 |
Referenced by addDataHandleTableEntry(), getAddressFromDataHandleTable(), and initDataHandleTable().
#define EXT_ADDR_LEN (8) |
Length (in octets) of extended address.
Referenced by mac_extract_mhr_addr_info(), transmit_frame(), and usr_perf_start_confirm().
#define EXTENDED_ADDR_SIZE 8 |
Referenced by otauClientSendNotify(), and otauSetServerDetails().
#define FCF_ACK_REQUEST (1 << 5) |
The mask for the ACK request bit of the FCF.
Referenced by build_data_frame(), calc_frame_transmit_duration(), calculate_transaction_duration(), configure_frame_sending(), configure_range_test_frame_sending(), mlme_gts_request(), process_incoming_frame(), transmit_frame(), and tx_done_handling().
#define FCF_ADDR_MASK (3) |
#define FCF_DEST_ADDR_OFFSET (10) |
Defines the offset of the destination address.
Referenced by mac_extract_mhr_addr_info().
#define FCF_FRAMETYPE_MASK (0x07) |
Defines a mask for the frame type.
(Table 65 IEEE 802.15.4 Specification)
#define FCF_GET_DEST_ADDR_MODE | ( | x | ) | (((x) >> FCF_DEST_ADDR_OFFSET) & FCF_ADDR_MASK) |
#define FCF_GET_FRAMETYPE | ( | x | ) | ((x) & FCF_FRAMETYPE_MASK) |
Macro to get the frame type.
#define FCF_GET_SOURCE_ADDR_MODE | ( | x | ) | (((x) >> FCF_SOURCE_ADDR_OFFSET) & FCF_ADDR_MASK) |
#define FCF_LEN (2) |
Length (in octets) of FCF.
Referenced by configure_frame_sending(), configure_pkt_stream_frames(), configure_range_test_frame_sending(), mac_extract_mhr_addr_info(), and transmit_frame().
#define FCF_LONG_ADDR (0x03) |
Address Mode: LONG.
Referenced by build_data_frame(), mac_extract_mhr_addr_info(), mac_process_data_frame(), otauDataSend(), process_data_ind_not_transient(), send_peer_req(), send_peer_rsp(), and transmit_frame().
#define FCF_NO_ADDR (0x00) |
Address Mode: NO ADDRESS.
Referenced by build_data_frame(), and mcps_data_request().
#define FCF_PAN_ID_COMPRESSION (1 << 6) |
The mask for the PAN ID compression bit of the FCF.
Referenced by build_data_frame(), configure_frame_sending(), configure_pkt_stream_frames(), configure_range_test_frame_sending(), mac_extract_mhr_addr_info(), mlme_gts_request(), and transmit_frame().
#define FCF_RESERVED_ADDR (0x01) |
Address Mode: RESERVED.
Referenced by mcps_data_request().
#define FCF_SECURITY_ENABLED (1 << 3) |
The mask for the security enable bit of the FCF.
Referenced by build_data_frame(), mac_tx_gts_data(), mcps_data_request(), and parse_mpdu().
#define FCF_SET_DEST_ADDR_MODE | ( | x | ) |
Macro to set the destination address mode.
Referenced by build_data_frame(), configure_frame_sending(), configure_pkt_stream_frames(), configure_range_test_frame_sending(), mlme_gts_request(), and transmit_frame().
#define FCF_SET_FRAMETYPE | ( | x | ) | (x) |
A macro to set the frame type.
Referenced by build_data_frame(), and mlme_gts_request().
#define FCF_SET_SOURCE_ADDR_MODE | ( | x | ) |
Macro to set the source address mode.
Referenced by build_data_frame(), configure_frame_sending(), configure_pkt_stream_frames(), configure_range_test_frame_sending(), mlme_gts_request(), and transmit_frame().
#define FCF_SHORT_ADDR (0x02) |
Address Mode: SHORT.
Referenced by build_data_frame(), configure_frame_sending(), configure_pkt_stream_frames(), configure_range_test_frame_sending(), handle_incoming_msg(), mac_extract_mhr_addr_info(), mac_process_data_frame(), mcps_data_request(), mlme_gts_request(), process_data_ind_not_transient(), range_test_frame_tx(), send_disconnect_command(), send_identify_command(), send_parameters_changed(), send_peer_conf(), send_peer_info_req(), send_peer_info_rsp(), send_peer_req(), send_peer_rsp(), send_per_test_start_cmd(), send_range_test_marker_cmd(), send_range_test_marker_rsp(), send_range_test_rsp(), send_range_test_start_cmd(), send_range_test_stop_cmd(), send_remote_cmd(), send_remote_reply_cmd(), send_result_req(), send_result_rsp(), send_set_default_config_command(), and transmit_frame().
#define FCF_SOURCE_ADDR_OFFSET (14) |
Defines the offset of the source address.
Referenced by mac_extract_mhr_addr_info().
#define FCS_LEN (2) |
Length (in octets) of FCS.
Referenced by configure_frame_sending(), configure_pkt_stream_frames(), configure_range_test_frame_sending(), mac_extract_mhr_addr_info(), peer_req_send_rx_cb(), per_mode_initiator_rx_cb(), per_mode_initiator_tx_done_cb(), per_mode_receptor_rx_cb(), process_incoming_frame(), range_test_rx_cb(), transmit_frame(), tx_done_handling(), usr_range_test_beacon_rsp(), usr_range_test_marker_ind(), wait_for_event_rx_cb(), and wpan_mcps_data_req().
#define FRAME_OVERHEAD (3) |
#define macShortAddress_def (0xFFFF) |
Default value for PIB macShortAddress.
Referenced by mac_idle_trans().
#define MODE_MASK 0x03 |
#define NATIVE_ADDR_SIZE 2 |
Referenced by otauDataInd(), and otauSetServerDetails().
#define PAN_ID_LEN (2) |
Length (in octets) of PAN ID.
Referenced by configure_frame_sending(), configure_pkt_stream_frames(), configure_range_test_frame_sending(), mac_extract_mhr_addr_info(), and transmit_frame().
#define PHY_MAX_PAYLOAD_SIZE (80) |
Referenced by otauDebugTimerHandler(), otauUpgradeRcvdFrame(), and send_image_req().
#define SEQ_NUM_LEN (1) |
Length of the sequence number field.
Referenced by mac_extract_mhr_addr_info(), per_mode_initiator_rx_cb(), per_mode_initiator_tx_done_cb(), and per_mode_receptor_rx_cb().
#define SUPPORTED_MODE (APP_MODE_SUPPORTED_BIT) |
Referenced by otauClientSendNotify().
typedef struct DataHandleTable_ DataHandleTable_t |
enum SHORTENUM |
Enumerator | |
---|---|
ENTRY | |
EXIT | |
TRACE_ENTRY | |
TRACE_EXIT | |
LOG_INFO | |
LOG_WARNING | |
LOG_ERROR | |
LOG_ASSERT | |
MIWI_NWK | |
MIWI_PHY | |
MIWI_SYS | |
MIWI_APP | |
OTAU_SUCCESS | |
OTAU_CCA_FAILURE | |
OTAU_NO_ACK | |
OTAU_ERROR | |
OTAU_INVALID_MSG | |
OTAU_MSG_IN_PROGRESS | |
TIMER_MODE_SINGLE | |
TIMER_MODE_PERIODIC | |
BROADCAST_MODE | |
NATIVE_ADDR_MODE | |
EXTENDED_ADDR_MODE | |
DOMAIN_OTAU_NOTIFY | |
DOMAIN_OTAU_UPGRADE | |
DOMAIN_OTAU_DEBUG | |
OTAU_LED_ON | |
OTAU_LED_OFF | |
OTAU_LED_TOGGLE | |
ASSOCIATIONREQUEST | |
ASSOCIATIONRESPONSE | |
DISASSOCIATIONNOTIFICATION | |
DATAREQUEST | |
PANIDCONFLICTNOTIFICAION | |
ORPHANNOTIFICATION | |
BEACONREQUEST | |
COORDINATORREALIGNMENT | |
GTSREQUEST | |
ORPHANREALIGNMENT | |
BEACON_MESSAGE | |
DATAREQUEST_IMPL_POLL | |
NULL_FRAME | |
MCPS_MESSAGE | |
STB_CCM_OK |
CCM en/decryption OK. |
STB_CCM_ILLPARM |
Illegal parameter value in stb_ccm_secure() |
STB_CCM_KEYMISS |
No previous key init in stb_ccm_secure() |
STB_CCM_MICERR |
MIC error detected in stb_ccm_secure() |
SECURITY_00_LEVEL |
Security Level 0. |
SECURITY_01_LEVEL |
Security Level 1. |
SECURITY_02_LEVEL |
Security Level 2. |
SECURITY_03_LEVEL |
Security Level 3. |
SECURITY_04_LEVEL |
Security Level 4. |
SECURITY_05_LEVEL |
Security Level 5. |
SECURITY_06_LEVEL |
Security Level 6. |
SECURITY_07_LEVEL |
Security Level 7. |
enum SHORTENUM |
Enumerator | |
---|---|
ENTRY | |
EXIT | |
TRACE_ENTRY | |
TRACE_EXIT | |
LOG_INFO | |
LOG_WARNING | |
LOG_ERROR | |
LOG_ASSERT | |
MIWI_NWK | |
MIWI_PHY | |
MIWI_SYS | |
MIWI_APP | |
OTAU_SUCCESS | |
OTAU_CCA_FAILURE | |
OTAU_NO_ACK | |
OTAU_ERROR | |
OTAU_INVALID_MSG | |
OTAU_MSG_IN_PROGRESS | |
TIMER_MODE_SINGLE | |
TIMER_MODE_PERIODIC | |
BROADCAST_MODE | |
NATIVE_ADDR_MODE | |
EXTENDED_ADDR_MODE | |
DOMAIN_OTAU_NOTIFY | |
DOMAIN_OTAU_UPGRADE | |
DOMAIN_OTAU_DEBUG | |
OTAU_LED_ON | |
OTAU_LED_OFF | |
OTAU_LED_TOGGLE | |
ASSOCIATIONREQUEST | |
ASSOCIATIONRESPONSE | |
DISASSOCIATIONNOTIFICATION | |
DATAREQUEST | |
PANIDCONFLICTNOTIFICAION | |
ORPHANNOTIFICATION | |
BEACONREQUEST | |
COORDINATORREALIGNMENT | |
GTSREQUEST | |
ORPHANREALIGNMENT | |
BEACON_MESSAGE | |
DATAREQUEST_IMPL_POLL | |
NULL_FRAME | |
MCPS_MESSAGE | |
STB_CCM_OK |
CCM en/decryption OK. |
STB_CCM_ILLPARM |
Illegal parameter value in stb_ccm_secure() |
STB_CCM_KEYMISS |
No previous key init in stb_ccm_secure() |
STB_CCM_MICERR |
MIC error detected in stb_ccm_secure() |
SECURITY_00_LEVEL |
Security Level 0. |
SECURITY_01_LEVEL |
Security Level 1. |
SECURITY_02_LEVEL |
Security Level 2. |
SECURITY_03_LEVEL |
Security Level 3. |
SECURITY_04_LEVEL |
Security Level 4. |
SECURITY_05_LEVEL |
Security Level 5. |
SECURITY_06_LEVEL |
Security Level 6. |
SECURITY_07_LEVEL |
Security Level 7. |
enum SHORTENUM |
Enumerator | |
---|---|
ENTRY | |
EXIT | |
TRACE_ENTRY | |
TRACE_EXIT | |
LOG_INFO | |
LOG_WARNING | |
LOG_ERROR | |
LOG_ASSERT | |
MIWI_NWK | |
MIWI_PHY | |
MIWI_SYS | |
MIWI_APP | |
OTAU_SUCCESS | |
OTAU_CCA_FAILURE | |
OTAU_NO_ACK | |
OTAU_ERROR | |
OTAU_INVALID_MSG | |
OTAU_MSG_IN_PROGRESS | |
TIMER_MODE_SINGLE | |
TIMER_MODE_PERIODIC | |
BROADCAST_MODE | |
NATIVE_ADDR_MODE | |
EXTENDED_ADDR_MODE | |
DOMAIN_OTAU_NOTIFY | |
DOMAIN_OTAU_UPGRADE | |
DOMAIN_OTAU_DEBUG | |
OTAU_LED_ON | |
OTAU_LED_OFF | |
OTAU_LED_TOGGLE | |
ASSOCIATIONREQUEST | |
ASSOCIATIONRESPONSE | |
DISASSOCIATIONNOTIFICATION | |
DATAREQUEST | |
PANIDCONFLICTNOTIFICAION | |
ORPHANNOTIFICATION | |
BEACONREQUEST | |
COORDINATORREALIGNMENT | |
GTSREQUEST | |
ORPHANREALIGNMENT | |
BEACON_MESSAGE | |
DATAREQUEST_IMPL_POLL | |
NULL_FRAME | |
MCPS_MESSAGE | |
STB_CCM_OK |
CCM en/decryption OK. |
STB_CCM_ILLPARM |
Illegal parameter value in stb_ccm_secure() |
STB_CCM_KEYMISS |
No previous key init in stb_ccm_secure() |
STB_CCM_MICERR |
MIC error detected in stb_ccm_secure() |
SECURITY_00_LEVEL |
Security Level 0. |
SECURITY_01_LEVEL |
Security Level 1. |
SECURITY_02_LEVEL |
Security Level 2. |
SECURITY_03_LEVEL |
Security Level 3. |
SECURITY_04_LEVEL |
Security Level 4. |
SECURITY_05_LEVEL |
Security Level 5. |
SECURITY_06_LEVEL |
Security Level 6. |
SECURITY_07_LEVEL |
Security Level 7. |
enum SHORTENUM |
Enumerator | |
---|---|
ENTRY | |
EXIT | |
TRACE_ENTRY | |
TRACE_EXIT | |
LOG_INFO | |
LOG_WARNING | |
LOG_ERROR | |
LOG_ASSERT | |
MIWI_NWK | |
MIWI_PHY | |
MIWI_SYS | |
MIWI_APP | |
OTAU_SUCCESS | |
OTAU_CCA_FAILURE | |
OTAU_NO_ACK | |
OTAU_ERROR | |
OTAU_INVALID_MSG | |
OTAU_MSG_IN_PROGRESS | |
TIMER_MODE_SINGLE | |
TIMER_MODE_PERIODIC | |
BROADCAST_MODE | |
NATIVE_ADDR_MODE | |
EXTENDED_ADDR_MODE | |
DOMAIN_OTAU_NOTIFY | |
DOMAIN_OTAU_UPGRADE | |
DOMAIN_OTAU_DEBUG | |
OTAU_LED_ON | |
OTAU_LED_OFF | |
OTAU_LED_TOGGLE | |
ASSOCIATIONREQUEST | |
ASSOCIATIONRESPONSE | |
DISASSOCIATIONNOTIFICATION | |
DATAREQUEST | |
PANIDCONFLICTNOTIFICAION | |
ORPHANNOTIFICATION | |
BEACONREQUEST | |
COORDINATORREALIGNMENT | |
GTSREQUEST | |
ORPHANREALIGNMENT | |
BEACON_MESSAGE | |
DATAREQUEST_IMPL_POLL | |
NULL_FRAME | |
MCPS_MESSAGE | |
STB_CCM_OK |
CCM en/decryption OK. |
STB_CCM_ILLPARM |
Illegal parameter value in stb_ccm_secure() |
STB_CCM_KEYMISS |
No previous key init in stb_ccm_secure() |
STB_CCM_MICERR |
MIC error detected in stb_ccm_secure() |
SECURITY_00_LEVEL |
Security Level 0. |
SECURITY_01_LEVEL |
Security Level 1. |
SECURITY_02_LEVEL |
Security Level 2. |
SECURITY_03_LEVEL |
Security Level 3. |
SECURITY_04_LEVEL |
Security Level 4. |
SECURITY_05_LEVEL |
Security Level 5. |
SECURITY_06_LEVEL |
Security Level 6. |
SECURITY_07_LEVEL |
Security Level 7. |
enum SHORTENUM |
Enumerator | |
---|---|
ENTRY | |
EXIT | |
TRACE_ENTRY | |
TRACE_EXIT | |
LOG_INFO | |
LOG_WARNING | |
LOG_ERROR | |
LOG_ASSERT | |
MIWI_NWK | |
MIWI_PHY | |
MIWI_SYS | |
MIWI_APP | |
OTAU_SUCCESS | |
OTAU_CCA_FAILURE | |
OTAU_NO_ACK | |
OTAU_ERROR | |
OTAU_INVALID_MSG | |
OTAU_MSG_IN_PROGRESS | |
TIMER_MODE_SINGLE | |
TIMER_MODE_PERIODIC | |
BROADCAST_MODE | |
NATIVE_ADDR_MODE | |
EXTENDED_ADDR_MODE | |
DOMAIN_OTAU_NOTIFY | |
DOMAIN_OTAU_UPGRADE | |
DOMAIN_OTAU_DEBUG | |
OTAU_LED_ON | |
OTAU_LED_OFF | |
OTAU_LED_TOGGLE | |
ASSOCIATIONREQUEST | |
ASSOCIATIONRESPONSE | |
DISASSOCIATIONNOTIFICATION | |
DATAREQUEST | |
PANIDCONFLICTNOTIFICAION | |
ORPHANNOTIFICATION | |
BEACONREQUEST | |
COORDINATORREALIGNMENT | |
GTSREQUEST | |
ORPHANREALIGNMENT | |
BEACON_MESSAGE | |
DATAREQUEST_IMPL_POLL | |
NULL_FRAME | |
MCPS_MESSAGE | |
STB_CCM_OK |
CCM en/decryption OK. |
STB_CCM_ILLPARM |
Illegal parameter value in stb_ccm_secure() |
STB_CCM_KEYMISS |
No previous key init in stb_ccm_secure() |
STB_CCM_MICERR |
MIC error detected in stb_ccm_secure() |
SECURITY_00_LEVEL |
Security Level 0. |
SECURITY_01_LEVEL |
Security Level 1. |
SECURITY_02_LEVEL |
Security Level 2. |
SECURITY_03_LEVEL |
Security Level 3. |
SECURITY_04_LEVEL |
Security Level 4. |
SECURITY_05_LEVEL |
Security Level 5. |
SECURITY_06_LEVEL |
Security Level 6. |
SECURITY_07_LEVEL |
Security Level 7. |
enum SHORTENUM |
Enumerator | |
---|---|
ENTRY | |
EXIT | |
TRACE_ENTRY | |
TRACE_EXIT | |
LOG_INFO | |
LOG_WARNING | |
LOG_ERROR | |
LOG_ASSERT | |
MIWI_NWK | |
MIWI_PHY | |
MIWI_SYS | |
MIWI_APP | |
OTAU_SUCCESS | |
OTAU_CCA_FAILURE | |
OTAU_NO_ACK | |
OTAU_ERROR | |
OTAU_INVALID_MSG | |
OTAU_MSG_IN_PROGRESS | |
TIMER_MODE_SINGLE | |
TIMER_MODE_PERIODIC | |
BROADCAST_MODE | |
NATIVE_ADDR_MODE | |
EXTENDED_ADDR_MODE | |
DOMAIN_OTAU_NOTIFY | |
DOMAIN_OTAU_UPGRADE | |
DOMAIN_OTAU_DEBUG | |
OTAU_LED_ON | |
OTAU_LED_OFF | |
OTAU_LED_TOGGLE | |
ASSOCIATIONREQUEST | |
ASSOCIATIONRESPONSE | |
DISASSOCIATIONNOTIFICATION | |
DATAREQUEST | |
PANIDCONFLICTNOTIFICAION | |
ORPHANNOTIFICATION | |
BEACONREQUEST | |
COORDINATORREALIGNMENT | |
GTSREQUEST | |
ORPHANREALIGNMENT | |
BEACON_MESSAGE | |
DATAREQUEST_IMPL_POLL | |
NULL_FRAME | |
MCPS_MESSAGE | |
STB_CCM_OK |
CCM en/decryption OK. |
STB_CCM_ILLPARM |
Illegal parameter value in stb_ccm_secure() |
STB_CCM_KEYMISS |
No previous key init in stb_ccm_secure() |
STB_CCM_MICERR |
MIC error detected in stb_ccm_secure() |
SECURITY_00_LEVEL |
Security Level 0. |
SECURITY_01_LEVEL |
Security Level 1. |
SECURITY_02_LEVEL |
Security Level 2. |
SECURITY_03_LEVEL |
Security Level 3. |
SECURITY_04_LEVEL |
Security Level 4. |
SECURITY_05_LEVEL |
Security Level 5. |
SECURITY_06_LEVEL |
Security Level 6. |
SECURITY_07_LEVEL |
Security Level 7. |
enum SHORTENUM |
Enumerator | |
---|---|
ENTRY | |
EXIT | |
TRACE_ENTRY | |
TRACE_EXIT | |
LOG_INFO | |
LOG_WARNING | |
LOG_ERROR | |
LOG_ASSERT | |
MIWI_NWK | |
MIWI_PHY | |
MIWI_SYS | |
MIWI_APP | |
OTAU_SUCCESS | |
OTAU_CCA_FAILURE | |
OTAU_NO_ACK | |
OTAU_ERROR | |
OTAU_INVALID_MSG | |
OTAU_MSG_IN_PROGRESS | |
TIMER_MODE_SINGLE | |
TIMER_MODE_PERIODIC | |
BROADCAST_MODE | |
NATIVE_ADDR_MODE | |
EXTENDED_ADDR_MODE | |
DOMAIN_OTAU_NOTIFY | |
DOMAIN_OTAU_UPGRADE | |
DOMAIN_OTAU_DEBUG | |
OTAU_LED_ON | |
OTAU_LED_OFF | |
OTAU_LED_TOGGLE | |
ASSOCIATIONREQUEST | |
ASSOCIATIONRESPONSE | |
DISASSOCIATIONNOTIFICATION | |
DATAREQUEST | |
PANIDCONFLICTNOTIFICAION | |
ORPHANNOTIFICATION | |
BEACONREQUEST | |
COORDINATORREALIGNMENT | |
GTSREQUEST | |
ORPHANREALIGNMENT | |
BEACON_MESSAGE | |
DATAREQUEST_IMPL_POLL | |
NULL_FRAME | |
MCPS_MESSAGE | |
STB_CCM_OK |
CCM en/decryption OK. |
STB_CCM_ILLPARM |
Illegal parameter value in stb_ccm_secure() |
STB_CCM_KEYMISS |
No previous key init in stb_ccm_secure() |
STB_CCM_MICERR |
MIC error detected in stb_ccm_secure() |
SECURITY_00_LEVEL |
Security Level 0. |
SECURITY_01_LEVEL |
Security Level 1. |
SECURITY_02_LEVEL |
Security Level 2. |
SECURITY_03_LEVEL |
Security Level 3. |
SECURITY_04_LEVEL |
Security Level 4. |
SECURITY_05_LEVEL |
Security Level 5. |
SECURITY_06_LEVEL |
Security Level 6. |
SECURITY_07_LEVEL |
Security Level 7. |
enum SHORTENUM |
Enumerator | |
---|---|
ENTRY | |
EXIT | |
TRACE_ENTRY | |
TRACE_EXIT | |
LOG_INFO | |
LOG_WARNING | |
LOG_ERROR | |
LOG_ASSERT | |
MIWI_NWK | |
MIWI_PHY | |
MIWI_SYS | |
MIWI_APP | |
OTAU_SUCCESS | |
OTAU_CCA_FAILURE | |
OTAU_NO_ACK | |
OTAU_ERROR | |
OTAU_INVALID_MSG | |
OTAU_MSG_IN_PROGRESS | |
TIMER_MODE_SINGLE | |
TIMER_MODE_PERIODIC | |
BROADCAST_MODE | |
NATIVE_ADDR_MODE | |
EXTENDED_ADDR_MODE | |
DOMAIN_OTAU_NOTIFY | |
DOMAIN_OTAU_UPGRADE | |
DOMAIN_OTAU_DEBUG | |
OTAU_LED_ON | |
OTAU_LED_OFF | |
OTAU_LED_TOGGLE | |
ASSOCIATIONREQUEST | |
ASSOCIATIONRESPONSE | |
DISASSOCIATIONNOTIFICATION | |
DATAREQUEST | |
PANIDCONFLICTNOTIFICAION | |
ORPHANNOTIFICATION | |
BEACONREQUEST | |
COORDINATORREALIGNMENT | |
GTSREQUEST | |
ORPHANREALIGNMENT | |
BEACON_MESSAGE | |
DATAREQUEST_IMPL_POLL | |
NULL_FRAME | |
MCPS_MESSAGE | |
STB_CCM_OK |
CCM en/decryption OK. |
STB_CCM_ILLPARM |
Illegal parameter value in stb_ccm_secure() |
STB_CCM_KEYMISS |
No previous key init in stb_ccm_secure() |
STB_CCM_MICERR |
MIC error detected in stb_ccm_secure() |
SECURITY_00_LEVEL |
Security Level 0. |
SECURITY_01_LEVEL |
Security Level 1. |
SECURITY_02_LEVEL |
Security Level 2. |
SECURITY_03_LEVEL |
Security Level 3. |
SECURITY_04_LEVEL |
Security Level 4. |
SECURITY_05_LEVEL |
Security Level 5. |
SECURITY_06_LEVEL |
Security Level 6. |
SECURITY_07_LEVEL |
Security Level 7. |
enum SHORTENUM |
Enumerator | |
---|---|
ENTRY | |
EXIT | |
TRACE_ENTRY | |
TRACE_EXIT | |
LOG_INFO | |
LOG_WARNING | |
LOG_ERROR | |
LOG_ASSERT | |
MIWI_NWK | |
MIWI_PHY | |
MIWI_SYS | |
MIWI_APP | |
OTAU_SUCCESS | |
OTAU_CCA_FAILURE | |
OTAU_NO_ACK | |
OTAU_ERROR | |
OTAU_INVALID_MSG | |
OTAU_MSG_IN_PROGRESS | |
TIMER_MODE_SINGLE | |
TIMER_MODE_PERIODIC | |
BROADCAST_MODE | |
NATIVE_ADDR_MODE | |
EXTENDED_ADDR_MODE | |
DOMAIN_OTAU_NOTIFY | |
DOMAIN_OTAU_UPGRADE | |
DOMAIN_OTAU_DEBUG | |
OTAU_LED_ON | |
OTAU_LED_OFF | |
OTAU_LED_TOGGLE | |
ASSOCIATIONREQUEST | |
ASSOCIATIONRESPONSE | |
DISASSOCIATIONNOTIFICATION | |
DATAREQUEST | |
PANIDCONFLICTNOTIFICAION | |
ORPHANNOTIFICATION | |
BEACONREQUEST | |
COORDINATORREALIGNMENT | |
GTSREQUEST | |
ORPHANREALIGNMENT | |
BEACON_MESSAGE | |
DATAREQUEST_IMPL_POLL | |
NULL_FRAME | |
MCPS_MESSAGE | |
STB_CCM_OK |
CCM en/decryption OK. |
STB_CCM_ILLPARM |
Illegal parameter value in stb_ccm_secure() |
STB_CCM_KEYMISS |
No previous key init in stb_ccm_secure() |
STB_CCM_MICERR |
MIC error detected in stb_ccm_secure() |
SECURITY_00_LEVEL |
Security Level 0. |
SECURITY_01_LEVEL |
Security Level 1. |
SECURITY_02_LEVEL |
Security Level 2. |
SECURITY_03_LEVEL |
Security Level 3. |
SECURITY_04_LEVEL |
Security Level 4. |
SECURITY_05_LEVEL |
Security Level 5. |
SECURITY_06_LEVEL |
Security Level 6. |
SECURITY_07_LEVEL |
Security Level 7. |
uint8_t* get_node_address | ( | addr_mode_t | addr_mode | ) |
References myLongAddress, NATIVE_ADDR_MODE, and shortAddress.
Referenced by otauClientSendNotify(), and otauDataSend().
void otau_log | ( | uint8_t | log_type, |
module_id_t | module_id, | ||
error_code_t | error_code, | ||
uint8_t | len, | ||
uint8_t * | user_log | ||
) |
References log_header_t::addr, log_header_t::error_code, log_bitmap, log_header_t::log_len, log_header_t::log_type, log_header_t::module_id, NULL, log_header_t::sof, and writeCircularBuffer().
Referenced by appSendData().
void otau_sent_frame | ( | uint8_t | addr_mode, |
uint8_t * | addr, | ||
uint8_t | domainId, | ||
uint8_t | status | ||
) |
void otau_trace | ( | trace_type_t | trace_type | ) |
References trace_t::addr, trace_t::eof, trace_t::length, trace_t::sof, trace_t::trace_type, and writeCircularBuffer().
Referenced by appSendData().
void otauDataSend | ( | addr_mode_t | addr_mode, |
uint8_t * | addr, | ||
void * | payload, | ||
uint16_t | len | ||
) |
References addDataHandleTableEntry(), BROADCAST_MODE, DOMAIN_OTAU_DEBUG, DOMAIN_OTAU_NOTIFY, DOMAIN_OTAU_UPGRADE, node_address_t::extended_addr, EXTENDED_ADDR_MODE, FCF_LONG_ADDR, get_node_address(), MESH_BROADCAST_TO_ALL, MiApp_Get(), MiApp_ManuSpecSendData(), msgHandle, node_address_t::native_addr, NATIVE_ADDR_MODE, NULL, OTAU_ERROR, otauDataConf(), otauDebugSentFrame(), otauNotifySentFrame(), otauUpgradeSentFrame(), PANID, and SHORT_ADDR_LEN.
Referenced by otauClientSendNotify(), otauDebugRcvdFrame(), otauDebugTimerHandler(), otauNotifyRcvdFrame(), send_image_req(), and send_switch_req().
void otauGetServerDetails | ( | addr_mode_t | addr_mode, |
uint8_t * | addr | ||
) |
References node_address_t::extended_addr, node_address_t::native_addr, and NATIVE_ADDR_MODE.
Referenced by send_image_req(), and send_switch_req().
void otauHandleMsg | ( | otau_domain_msg_t * | otau_domain_msg | ) |
References DOMAIN_OTAU_DEBUG, DOMAIN_OTAU_NOTIFY, DOMAIN_OTAU_UPGRADE, otau_domain_msg_t::domainId, otauHandleDebugMsg(), otauHandleNotifyMsg(), and otauHandleUpgradeMsg().
Referenced by otauTask().
void otauInit | ( | void | ) |
References initDataHandleTable(), MiApp_SubscribeManuSpecDataIndicationCallback(), miQueueInit(), otauDataInd(), otauDebugInit(), otauNotifyInit(), otauParserInit(), and otauUpgradeInit().
Referenced by otauTask().
void otauLed | ( | otau_led_t | led_state | ) |
References OTAU_LED_OFF, and OTAU_LED_ON.
Referenced by otauNotifyTimerHandler().
void otauRcvdFrame | ( | otau_rcvd_frame_t * | rcvd_frame | ) |
void otauResetDevice | ( | void | ) |
Referenced by otauNotifyRcvdFrame(), and otauUpgradeTimerHandler().
void otauSetServerDetails | ( | addr_mode_t | addr_mode, |
uint8_t * | addr | ||
) |
References node_address_t::extended_addr, EXTENDED_ADDR_SIZE, node_address_t::native_addr, NATIVE_ADDR_MODE, and NATIVE_ADDR_SIZE.
Referenced by otauNotifyRcvdFrame(), and otauUpgradeRcvdFrame().
void otauTask | ( | void | ) |
References dataFromTool, event, MiApp_Get(), MiApp_IsConnected(), MiMem_Free(), miQueueRemove(), NULL, otauHandleMsg(), otauInit(), otauInited, otauRcvdFrame(), serialDataHandler(), SHORT_ADDRESS, shortAddress, and MiQueue::size.
Referenced by main().
void otauTimerStart | ( | otau_domain_t | domain_code, |
uint32_t | interval, | ||
otau_timer_mode_t | mode | ||
) |
References DOMAIN_OTAU_DEBUG, DOMAIN_OTAU_NOTIFY, DOMAIN_OTAU_UPGRADE, SYS_Timer_t::handler, SYS_Timer_t::interval, SYS_Timer_t::mode, otauDebugTimerHandler(), otauNotifyTimerHandler(), otauUpgradeTimerHandler(), SYS_TIMER_INTERVAL_MODE, SYS_TIMER_PERIODIC_MODE, SYS_TimerStart(), SYS_TimerStarted(), SYS_TimerStop(), and TIMER_MODE_SINGLE.
Referenced by otauClientStartTimer(), otauDebugRcvdFrame(), otauDebugTimerHandler(), otauNotifyRcvdFrame(), otauUpgradeRcvdFrame(), otauUpgradeSentFrame(), otauUpgradeTimerHandler(), and send_image_req().
void otauTimerStop | ( | otau_domain_t | domain_code | ) |
References DOMAIN_OTAU_DEBUG, DOMAIN_OTAU_NOTIFY, DOMAIN_OTAU_UPGRADE, and SYS_TimerStop().
Referenced by otauClientStartTimer(), otauDebugTimerHandler(), otauUpgradeRcvdFrame(), otauUpgradeTimerHandler(), and send_image_req().
void reverseMemcpy | ( | uint8_t * | dst, |
uint8_t * | src, | ||
uint8_t | len | ||
) |
References i.
node_address_t serverAddress |
Referenced by otauClientSendNotify().