mirror of
https://github.com/hubaldv/bioz-icd-rs.git
synced 2026-07-24 00:57:44 +00:00
Added outflow sensor (I2C) and random setpoint noise.
This commit is contained in:
21
src/lib.rs
21
src/lib.rs
@@ -11,15 +11,18 @@ use defmt::Format;
|
||||
endpoints! {
|
||||
list = ENDPOINT_LIST;
|
||||
omit_std = true;
|
||||
| EndpointTy | RequestTy | ResponseTy | Path |
|
||||
| ---------- | --------- | ---------- | ---- |
|
||||
| PingEndpoint | u32 | u32 | "ping" |
|
||||
| GetUniqueIdEndpoint | () | [u8; 12] | "get_id" |
|
||||
| StartDataEndpoint | () | () | "data/start" |
|
||||
| StopDataEndpoint | () | bool | "data/stop" |
|
||||
| SetAlgorithmEndpoint | SetAlgorithm | () | "algorithm/start" |
|
||||
| PressureEndpoint | () | f32 | "data/pressure" |
|
||||
| SetValvesEndpoint | SetValves | () | "valve/set" |
|
||||
| EndpointTy | RequestTy | ResponseTy | Path |
|
||||
| ---------- | --------- | ---------- | ---- |
|
||||
| PingEndpoint | u32 | u32 | "ping" |
|
||||
| GetUniqueIdEndpoint | () | [u8; 12] | "get_id" |
|
||||
| StartDataEndpoint | () | () | "data/start" |
|
||||
| StopDataEndpoint | () | bool | "data/stop" |
|
||||
| SetAlgorithmEndpoint | SetAlgorithm | () | "algorithm/start" |
|
||||
| SetSetpointEndpoint | f32 | () | "setpoint/set" |
|
||||
| PressureEndpoint | () | f32 | "data/pressure" |
|
||||
| OutFlowEndpoint | () | f32 | "data/out_flow" |
|
||||
| SetpointPressureEndpoint | () | (f32, f32) | "data/setpoint_pressure" |
|
||||
| SetValvesEndpoint | SetValves | () | "valve/set" |
|
||||
}
|
||||
|
||||
topics! {
|
||||
|
||||
Reference in New Issue
Block a user