libdrmconf  0.10.4
A library to program DMR radios.
Public Types | Public Member Functions | Public Attributes | List of all members
OpenGD77Interface::WriteRequest Struct Reference

Represents a write message. More...

#include <opengd77_interface.hh>

Public Types

enum  Command {
  SET_FLASH_SECTOR = 1 , WRITE_SECTOR_BUFFER = 2 , WRITE_FLASH_SECTOR = 3 , WRITE_EEPROM = 4 ,
  WRITE_WAV_BUFFER = 7
}
 Possible write destinations.
 

Public Member Functions

bool initWriteEEPROM (uint32_t addr, const uint8_t *data, uint16_t size)
 Constructs a write-to-eeprom message.
 
bool initSetFlashSector (uint32_t addr)
 Constructs a set-flash-sector message.
 
bool initWriteFlash (uint32_t addr, const uint8_t *data, uint16_t size)
 Constructs a write-to-flash message.
 
bool initFinishWriteFlash ()
 Constructs a finish-write-to-flash message.
 

Public Attributes

char type
 'R' read block, 'W' write block or 'C' command.
 
uint8_t command
 Command,. More...
 
union {
   uint8_t   sector [3]
 24 bit sector number.
 
   struct packed {
      uint32_t   address
 Target address.
 
      uint16_t   length
 Payload length.
 
      uint8_t   data [32]
 Payload data.
 
   }   payload
 
}; 
 

Detailed Description

Represents a write message.

Member Data Documentation

◆ command

uint8_t OpenGD77Interface::WriteRequest::command

Command,.

See also
OpenGD77Internface::WriteReqest::Command.

The documentation for this struct was generated from the following files: