Zigbee Protocol Controller 1.6.0
Unify GBL Interface

This component interfaces with the Gecko bootloader to perform OTA updates. More...

Typedefs

typedef void(* uic_gbl_interface_transfer_progress_t) (int offset, int size)
 Callback function used to monitor the transfer progress of the file. More...
 

Functions

sl_status_t uic_gbl_interface_detect_bootloader (int serial_fd)
 Probe for Gecko Bootloader. More...
 
sl_status_t uic_gbl_interface_transfer_image (const char *gbl_filename, int serial_fd, uic_gbl_interface_transfer_progress_t progress_callback)
 Perfrom at DFU firmware update using the gecko bootloader. More...
 

Detailed Description

This component interfaces with the Gecko bootloader to perform OTA updates.

Typedef Documentation

◆ uic_gbl_interface_transfer_progress_t

typedef void(* uic_gbl_interface_transfer_progress_t) (int offset, int size)

Callback function used to monitor the transfer progress of the file.

Parameters
offsetOffset of last transferred block
sizeTotal file size.

Function Documentation

◆ uic_gbl_interface_detect_bootloader()

sl_status_t uic_gbl_interface_detect_bootloader ( int  serial_fd)

Probe for Gecko Bootloader.

Detect if there is a gecko bootloader in the other end of the file descriptor

Parameters
serial_fd
Returns
sl_status_t SL_STATUS_OK on success

◆ uic_gbl_interface_transfer_image()

sl_status_t uic_gbl_interface_transfer_image ( const char *  gbl_filename,
int  serial_fd,
uic_gbl_interface_transfer_progress_t  progress_callback 
)

Perfrom at DFU firmware update using the gecko bootloader.

This function transfers an image to a device using the gecko bootloader. It is assumed that the chip is already in DFU mode when this function is invoked.

Parameters
gbl_filenameGBL file to transfer
serial_fdFile descripter to the serial interafce of the bootloader. Data will be read and written to this file descriptor.
progress_callbackCallback function which indicates how may bytes has been transferred.
Returns
sl_status_t SL_STATUS_OK on success.