2024-04-16 14:37:41 +02:00
|
|
|
@0x9fa2b43397f34e02;
|
|
|
|
|
2024-04-22 13:56:50 +02:00
|
|
|
using Rust = import "../programming_language/rust.capnp";
|
|
|
|
$Rust.parentModule("schema::traits");
|
|
|
|
|
2024-04-16 15:03:10 +02:00
|
|
|
using CSharp = import "../programming_language/csharp.capnp";
|
2024-04-16 14:38:54 +02:00
|
|
|
$CSharp.namespace("FabAccessAPI.Schema");
|
|
|
|
|
2024-04-16 15:03:10 +02:00
|
|
|
using import "../traits.capnp".TraitSuper;
|
|
|
|
using import "../traits.capnp".TraitError;
|
|
|
|
using import "../utils.capnp".Fallible;
|
|
|
|
using import "../utils.capnp".Duration;
|
2024-04-16 14:37:41 +02:00
|
|
|
|
|
|
|
# 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 () -> ();
|
2024-04-16 15:03:10 +02:00
|
|
|
identify @1 ( time :Duration ) -> Fallible(TraitLocateable, TraitError(ErrorLocateable));
|
|
|
|
setActive @2 () -> Fallible(TraitLocateable, TraitError(ErrorLocateable));
|
|
|
|
setIdle @3 () -> Fallible(TraitLocateable, TraitError(ErrorLocateable));
|
|
|
|
}
|
|
|
|
|
|
|
|
struct ErrorLocateable {
|
|
|
|
|
2024-04-16 14:37:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
struct StateLocateable {
|
|
|
|
union {
|
|
|
|
idle @0 :Void;
|
|
|
|
active @1 :Void;
|
|
|
|
}
|
|
|
|
}
|