uuu
uuu (Universal Update Utility), mfgtools 3.0
Loading...
Searching...
No Matches
SDPCmdBase Class Reference

#include <sdp.h>

Inheritance diagram for SDPCmdBase:
CmdBase SDPBootCmd SDPBootlogCmd SDPDcdCmd SDPJumpCmd SDPReadMemCmd SDPSkipDCDCmd SDPStatusCmd SDPWriteCmd SDPWriteMemCmd

Public Types

enum  HAB_t { HabUnknown = -1 , HabEnabled = 0x12343412 , HabDisabled = 0x56787856 }

Public Member Functions

 SDPCmdBase (char *p)
Public Member Functions inherited from CmdBase
 CmdBase ()=default
 CmdBase (char *p)
virtual ~CmdBase ()
virtual int dump ()
const std::string & get_cmd () const noexcept
bool get_lastcmd () const noexcept
void insert_param_info (const char *key, void *pD, Param::Type tp, bool ignore_case=true, const char *err=nullptr)
virtual int parser_protocol (char *p, size_t &pos)
virtual int parser (char *p=nullptr)
virtual int run (CmdCtx *p)=0

Protected Member Functions

int check_ack (HIDReport *report, uint32_t ack)
HAB_t get_hab_type (HIDReport *report)
int get_status (HIDReport *p, uint32_t &status, uint8_t report_id)
int init_cmd ()
IvtHeadersearch_ivt_header (std::shared_ptr< DataBuffer > data, size_t &off, size_t limit=ULLONG_MAX)

Protected Attributes

std::string m_filename
SDPCmd m_spdcmd
uint64_t m_scan_limited = UINT64_MAX
Protected Attributes inherited from CmdBase
bool m_bCheckTotalParam = false
std::string m_cmd
bool m_lastcmd = false
bool m_NoKeyParam = false
int m_timeout = 10000

Private Member Functions

int send_cmd (HIDReport *p)

Private Attributes

std::vector< uint8_t > m_input

Member Enumeration Documentation

◆ HAB_t

Enumerator
HabUnknown 
HabEnabled 
HabDisabled 

Constructor & Destructor Documentation

◆ SDPCmdBase()

SDPCmdBase::SDPCmdBase ( char * p)
inline

Member Function Documentation

◆ check_ack()

int SDPCmdBase::check_ack ( HIDReport * report,
uint32_t ack )
protected

◆ get_hab_type()

SDPCmdBase::HAB_t SDPCmdBase::get_hab_type ( HIDReport * report)
protected

◆ get_status()

int SDPCmdBase::get_status ( HIDReport * p,
uint32_t & status,
uint8_t report_id )
protected

◆ init_cmd()

int SDPCmdBase::init_cmd ( )
protected

◆ search_ivt_header()

IvtHeader * SDPCmdBase::search_ivt_header ( std::shared_ptr< DataBuffer > data,
size_t & off,
size_t limit = ULLONG_MAX )
protected

◆ send_cmd()

int SDPCmdBase::send_cmd ( HIDReport * p)
private

Member Data Documentation

◆ m_filename

std::string SDPCmdBase::m_filename
protected

◆ m_input

std::vector<uint8_t> SDPCmdBase::m_input
private

◆ m_scan_limited

uint64_t SDPCmdBase::m_scan_limited = UINT64_MAX
protected

◆ m_spdcmd

SDPCmd SDPCmdBase::m_spdcmd
protected

The documentation for this class was generated from the following files:
  • /home/builder/.cache/aurutils/sync/mfgtools-git/src/mfgtools-git/libuuu/sdp.h
  • /home/builder/.cache/aurutils/sync/mfgtools-git/src/mfgtools-git/libuuu/sdp.cpp