XModem Sender#

API and Callbacks for the XModem Sender Component.

API#

void
sl_zigbee_af_xmodem_sender_incoming_block(uint8_t *data, uint8_t length)
sl_zigbee_af_xmodem_sender_start(sl_zigbee_af_xmodem_sender_transmit_function_t *sendRoutine, sl_zigbee_af_xmodem_sender_get_next_block_function_t *getNextBlockRoutine, sl_zigbee_af_xmodem_sender_finished_function_t *finishedRoutine, uint8_t maxSizeOfBlock, bool waitForReady)

Typedefs#

typedef sl_status_t()
sl_zigbee_af_xmodem_sender_transmit_function_t(uint8_t *data, uint8_t length)
typedef sl_status_t()
sl_zigbee_af_xmodem_sender_get_next_block_function_t(uint32_t address, uint8_t length, uint8_t *returnData, uint8_t *returnLength, bool *done)

Macros#

#define
XMODEM_SOH (0x01)
#define
XMODEM_EOT (0x04)
#define
XMODEM_ACK (0x06)
#define
XMODEM_NAK (0x15)
#define
#define
#define

API Documentation#

sl_zigbee_af_xmodem_sender_incoming_block#

void sl_zigbee_af_xmodem_sender_incoming_block (uint8_t * data, uint8_t length)
Parameters
N/Adata
N/Alength

Definition at line 52 of file app/framework/plugin/xmodem-sender/xmodem-sender.h

sl_zigbee_af_xmodem_sender_start#

sl_status_t sl_zigbee_af_xmodem_sender_start (sl_zigbee_af_xmodem_sender_transmit_function_t * sendRoutine, sl_zigbee_af_xmodem_sender_get_next_block_function_t * getNextBlockRoutine, sl_zigbee_af_xmodem_sender_finished_function_t * finishedRoutine, uint8_t maxSizeOfBlock, bool waitForReady)
Parameters
N/AsendRoutine
N/AgetNextBlockRoutine
N/AfinishedRoutine
N/AmaxSizeOfBlock
N/AwaitForReady

Definition at line 56 of file app/framework/plugin/xmodem-sender/xmodem-sender.h

sl_zigbee_af_xmodem_sender_abort#

void sl_zigbee_af_xmodem_sender_abort (void )
Parameters
N/A

Definition at line 62 of file app/framework/plugin/xmodem-sender/xmodem-sender.h

Typedef Documentation#

sl_zigbee_af_xmodem_sender_transmit_function_t#

typedef sl_status_t() sl_zigbee_af_xmodem_sender_transmit_function_t(uint8_t *data, uint8_t length) (uint8_t *data, uint8_t length)

Definition at line 38 of file app/framework/plugin/xmodem-sender/xmodem-sender.h

sl_zigbee_af_xmodem_sender_get_next_block_function_t#

typedef sl_status_t() sl_zigbee_af_xmodem_sender_get_next_block_function_t(uint32_t address, uint8_t length, uint8_t *returnData, uint8_t *returnLength, bool *done) (uint32_t address, uint8_t length, uint8_t *returnData, uint8_t *returnLength, bool *done)

Definition at line 40 of file app/framework/plugin/xmodem-sender/xmodem-sender.h

sl_zigbee_af_xmodem_sender_finished_function_t#

typedef void() sl_zigbee_af_xmodem_sender_finished_function_t(bool success) (bool success)

Definition at line 45 of file app/framework/plugin/xmodem-sender/xmodem-sender.h

Macro Definition Documentation#

XMODEM_SOH#

#define XMODEM_SOH
Value:
(0x01)

Definition at line 30 of file app/framework/plugin/xmodem-sender/xmodem-sender.h

XMODEM_EOT#

#define XMODEM_EOT
Value:
(0x04)

Definition at line 31 of file app/framework/plugin/xmodem-sender/xmodem-sender.h

XMODEM_ACK#

#define XMODEM_ACK
Value:
(0x06)

Definition at line 32 of file app/framework/plugin/xmodem-sender/xmodem-sender.h

XMODEM_NAK#

#define XMODEM_NAK
Value:
(0x15)

Definition at line 33 of file app/framework/plugin/xmodem-sender/xmodem-sender.h

XMODEM_CANCEL#

#define XMODEM_CANCEL
Value:
(0x18)

Definition at line 34 of file app/framework/plugin/xmodem-sender/xmodem-sender.h

XMODEM_BLOCKOK#

#define XMODEM_BLOCKOK
Value:
(0x19)

Definition at line 35 of file app/framework/plugin/xmodem-sender/xmodem-sender.h

XMODEM_FILEDONE#

#define XMODEM_FILEDONE
Value:
(0x17)

Definition at line 36 of file app/framework/plugin/xmodem-sender/xmodem-sender.h