sensor_api
source
Utilities
Legacy
FirmwareUpdateUtility
Updater.hh
Go to the documentation of this file.
1
37
#ifndef __FUU_Updater_H__
38
#define __FUU_Updater_H__
39
40
#include "
Ip.hh
"
41
#include <stdexcept>
42
43
#define MAX_UPDATE_FS 500*1024*1024
44
45
class
Updater
{
46
47
public
:
48
Updater
(
Ip
* _Ip)
49
{
50
if
(!_Ip)
51
{
52
throw
std::runtime_error(
"Error ip is nullptr"
);
53
}
54
m_Ip
= _Ip;
55
}
56
57
int
Receive
(uint8_t * buf,
const
size_t
len,
long
int
*rxlen);
58
int
Send
(uint8_t * buf,
const
size_t
len);
59
int
SendFile
(std::string& FilePath,
bool
verbose);
60
61
private
:
62
Ip
*
m_Ip
;
63
};
64
65
#endif
/* end of include guard: __FUU_Updater_H__ */
Updater::SendFile
int SendFile(std::string &FilePath, bool verbose)
Definition:
Updater.cc:115
Updater::Receive
int Receive(uint8_t *buf, const size_t len, long int *rxlen)
Definition:
Updater.cc:45
Ip
Definition:
Ip.hh:75
Updater::Send
int Send(uint8_t *buf, const size_t len)
Definition:
Updater.cc:82
Updater::m_Ip
Ip * m_Ip
Definition:
Updater.hh:62
Updater
Definition:
Updater.hh:45
Ip.hh
Updater::Updater
Updater(Ip *_Ip)
Definition:
Updater.hh:48
multisense_lib
Author(s):
autogenerated on Thu Apr 17 2025 02:49:09