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
7struct 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};
static UpdateClass Update
Definition Update.h:23
void printError(T &)
Definition Update.h:20
bool begin(size_t)
Definition Update.h:8
size_t write(uint8_t *, int)
Definition Update.h:11
void abort()
Definition Update.h:17
bool end(bool)
Definition Update.h:14