api.fabaccess-api/traits/powerable.capnp

35 lines
1.1 KiB
Cap'n Proto
Raw Permalink Normal View History

2024-04-16 14:37:41 +02:00
@0xbab3de8275be2271;
2024-04-15 16:28:23 +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 "../utils.capnp".Fallible;
using import "../traits.capnp".TraitError;
2024-04-15 16:28:23 +02:00
2024-04-16 14:37:41 +02:00
# OID for this trait: 1.3.6.1.4.1.61783.612.1.1
# │ │ │ │
# RLKM UG PEN ╯ │ │ │
# │ │ │
# FabAccess subtree ╯ │ │
# │ │
# Traits ╯ │
# │
# Powerable ╯
interface TraitPowerable extends (TraitSuper) {
getState @0 () -> StatePowerable;
turnOn @1 () -> Fallible(TraitPowerable, TraitError(StatePowerable));
turnOff @2 () -> Fallible(TraitPowerable, TraitError(StatePowerable));
2024-04-15 16:28:23 +02:00
}
struct StatePowerable {
union {
2024-04-16 15:03:10 +02:00
off @0 :Void;
on @1 :Void;
2024-04-15 16:28:23 +02:00
}
}