STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
Update.h
Go to the documentation of this file.
1
// Stub: Update.h — for native tests
2
// Provides minimal Update global used by hotfire_ota.h
3
#pragma once
4
#include <cstddef>
5
#include <cstdint>
6
7
struct
UpdateClass
{
8
bool
begin
(
size_t
) {
9
return
true
;
10
}
11
size_t
write
(uint8_t*,
int
) {
12
return
0;
13
}
14
bool
end
(
bool
) {
15
return
true
;
16
}
17
void
abort
() {
18
}
19
template
<
typename
T>
20
void
printError
(T&) {
21
}
22
};
23
static
UpdateClass
Update
;
Update
static UpdateClass Update
Definition
Update.h:23
UpdateClass
Definition
Update.h:7
UpdateClass::printError
void printError(T &)
Definition
Update.h:20
UpdateClass::begin
bool begin(size_t)
Definition
Update.h:8
UpdateClass::write
size_t write(uint8_t *, int)
Definition
Update.h:11
UpdateClass::abort
void abort()
Definition
Update.h:17
UpdateClass::end
bool end(bool)
Definition
Update.h:14
firmware
Hotfire_Code
Hotfire_Tests
stubs
Update.h
Generated by
1.15.0