radio_tool 0.2.1
Loading...
Searching...
No Matches
Classes | Enumerations
radio_tool::dfu Namespace Reference

Classes

class  DFU
 
class  DFUException
 
class  DFUStatusReport
 
class  TYTDFU
 

Enumerations

enum class  DFURequest : uint8_t {
  DETACH = 0x00 , DNLOAD = 0x01 , UPLOAD = 0x02 , GETSTATUS = 0x03 ,
  CLRSTATUS = 0x04 , GETSTATE = 5 , ABORT = 6
}
 
enum class  DFUState : uint8_t {
  IDLE = 0x00 , DETACH = 0x01 , DFU_IDLE = 0x02 , DFU_DOWNLOAD_SYNC = 0x03 ,
  DFU_DOWNLOAD_BUSY = 0x04 , DFU_DOWNLOAD_IDLE = 0x05 , DFU_MANIFEST_SYNC = 0x06 , DFU_MANIFEST = 0x07 ,
  DFU_MANIFEST_WAIT_RESET = 0x08 , DFU_UPLOAD_IDLE = 0x09 , DFU_ERROR = 0x0a , DFU_UPLOAD_SYNC = 0x91 ,
  DFU_UPLOAD_BUSY = 0x92
}
 
enum class  DFUStatus : uint8_t {
  OK = 0x00 , errTARGET = 0x01 , errFILE = 0x02 , errWRITE = 0x03 ,
  errERASE = 0x04 , errCHECK_ERASE = 0x05 , errPROG = 0x06 , errVERIFY = 0x07 ,
  errADDRESS = 0x08 , errNOTDONE = 0x09 , errFIRMWARE = 0x0a , errVENDOR = 0x0b ,
  errUSBR = 0x0c , errPOR = 0x0d , errUNKNOWN = 0x0e , errSTALLEDPKT = 0x0f
}
 
enum class  TYTCommand : uint8_t { ProgrammingMode = 0x01 , SetRTC = 0x02 , Reboot = 0x05 , FirmwareUpgrade = 0x31 }
 
enum class  TYTRegister : uint8_t {
  RadioInfo = 0x01 , R_02 = 0x02 , R_03 = 0x03 , R_04 = 0x04 ,
  R_07 = 0x07 , RTC = 0x08
}
 

Detailed Description

This file is part of radio_tool. Copyright (c) 2020 v0l radio.nosp@m._too.nosp@m.l@v0l.nosp@m..io

radio_tool is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

radio_tool is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with radio_tool. If not, see https://www.gnu.org/licenses/.

Enumeration Type Documentation

◆ DFURequest

enum class radio_tool::dfu::DFURequest : uint8_t
strong
Enumerator
DETACH 

Requests the device to leave DFU mode and enter the application.

DNLOAD 

Requests data transfer from Host to the device in order to load them into device internal Flash memory. Includes also erase commands.

UPLOAD 

Requests data transfer from device to Host in order to load content of device internal Flash memory into a Host file.

GETSTATUS 

Requests device to send status report to the Host (including status resulting from the last request execution and the state the device will enter immediately after this request).

CLRSTATUS 

Requests device to clear error status and move to next step.

GETSTATE 

Requests the device to send only the state it will enter immediately after this request.

ABORT 

Requests device to exit the current state/operation and enter idle state immediately.

Definition at line 31 of file dfu.hpp.

◆ DFUState

enum class radio_tool::dfu::DFUState : uint8_t
strong

Definition at line 75 of file dfu.hpp.

◆ DFUStatus

enum class radio_tool::dfu::DFUStatus : uint8_t
strong

Definition at line 92 of file dfu.hpp.

◆ TYTCommand

enum class radio_tool::dfu::TYTCommand : uint8_t
strong

Custom radio commands starting with 0x91

Definition at line 27 of file tyt_dfu.hpp.

◆ TYTRegister

enum class radio_tool::dfu::TYTRegister : uint8_t
strong

Definition at line 35 of file tyt_dfu.hpp.