2023-06-15 07:10:20 -05:00
|
|
|
namespace example
|
|
|
|
|
|
|
|
const PROTOCOL: u8 = 0
|
|
|
|
const SECRET: u8 = 1
|
|
|
|
|
|
|
|
enum Motion {
|
2023-06-23 22:16:35 -05:00
|
|
|
1# Wave
|
|
|
|
2# MoveArm
|
2023-06-15 07:10:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
struct Hello {
|
|
|
|
const SHAKE: u8 = 20
|
|
|
|
|
2023-06-23 22:16:35 -05:00
|
|
|
1# name: u8
|
2023-06-15 07:10:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
struct Goodbye versioned=false {
|
|
|
|
wave: bool = false
|
|
|
|
}
|
|
|
|
|
|
|
|
protocol Greet {
|
|
|
|
function smile
|
|
|
|
function wave ()
|
|
|
|
function wave_wait () -> u8
|
2023-06-23 22:16:35 -05:00
|
|
|
function wave_and_go () -> str : timeout_ms=100
|
2023-06-15 07:10:20 -05:00
|
|
|
function wave_with (motion: Motion)
|
|
|
|
}
|