Device Firmware Update (DFU) transport layer using UART. More...
Data Structures | |
struct | serial_dfu_t |
DFU transport layer state. More... | |
Enumerations | |
enum | serial_dfu_op_code_t { SERIAL_DFU_OP_CODE_CREATE_OBJECT = 0x01, SERIAL_DFU_OP_CODE_SET_RECEIPT_NOTIF = 0x02, SERIAL_DFU_OP_CODE_CALCULATE_CRC = 0x03, SERIAL_DFU_OP_CODE_EXECUTE_OBJECT = 0x04, SERIAL_DFU_OP_CODE_SELECT_OBJECT = 0x06, SERIAL_DFU_OP_CODE_GET_SERIAL_MTU = 0x07, SERIAL_DFU_OP_CODE_WRITE_OBJECT = 0x08, SERIAL_DFU_OP_CODE_RESPONSE = 0x60 } |
Serial DFU opcodes. More... | |
Functions | |
uint32_t | serial_dfu_transport_init (void) |
Function for initializing the transport layer. More... | |
uint32_t | serial_dfu_transport_close (void) |
Function for closing down the transport layer. More... | |
Device Firmware Update (DFU) transport layer using UART.
The transport layer can be used for performing firmware updates over UART. The implementation uses SLIP to encode packets.
enum serial_dfu_op_code_t |
Serial DFU opcodes.
uint32_t serial_dfu_transport_close | ( | void | ) |
Function for closing down the transport layer.
NRF_SUCCESS | If the transport layer was correctly closed down. |
uint32_t serial_dfu_transport_init | ( | void | ) |
Function for initializing the transport layer.
NRF_SUCCESS | If the transport layer was successfully initialized. Otherwise, an error code is returned. |