api.fabaccess-api/traits/locateable.capnp
Nadja von Reitzenstein Čerpnjak d7c26ed4c1 Add traits
2024-04-16 14:37:41 +02:00

31 lines
1.0 KiB
Cap'n Proto

@0x9fa2b43397f34e02;
using import "traits.capnp".TraitSuper;
using import "utils.capnp".Fallible;
using import "utils.capnp".Duration;
using import "traits_error.capnp".TraitError;
# OID for this trait: 1.3.6.1.4.1.61783.612.1.5
# │ │ │ │
# RLKM UG PEN ╯ │ │ │
# │ │ │
# FabAccess subtree ╯ │ │
# │ │
# Traits ╯ │
# │
# Locateable ╯
interface TraitLocateable extends (TraitSuper) {
getState @0 () -> ();
identify @1 ( time :Duration ) -> Fallible(TraitLocateable, TraitError(Void));
setActive @2 () -> Fallible(TraitLocateable, TraitError(Void));
setIdle @2 () -> Fallible(TraitLocateable, TraitError(Void));
}
struct StateLocateable {
union {
idle @0 :Void;
active @1 :Void;
}
}