feat: Framework to handle INCP messages
This commit is contained in:
@@ -1,10 +1,67 @@
|
||||
modules:
|
||||
- name: mod_a
|
||||
enums: []
|
||||
- name: calc
|
||||
enums:
|
||||
- name: enum_a
|
||||
doc: Enum a
|
||||
values: [a, b]
|
||||
variables:
|
||||
- name: var_a
|
||||
doc: Var a
|
||||
type: I32
|
||||
reports: []
|
||||
commands: []
|
||||
events: []
|
||||
- name: time_boot
|
||||
doc: Time in seconds since last reboot
|
||||
type: U32
|
||||
|
||||
- name: time_real
|
||||
doc: Time in seconds since epoch
|
||||
type: U32
|
||||
|
||||
- name: test_str
|
||||
doc: A test string with the fixed value TEST
|
||||
type: S16
|
||||
|
||||
- name: test_enum
|
||||
doc: Tests enums
|
||||
type: enum_a
|
||||
|
||||
reports:
|
||||
- name: time
|
||||
doc: Collection of all time variables
|
||||
variables:
|
||||
- time_boot
|
||||
- time_real
|
||||
|
||||
commands:
|
||||
- name: add
|
||||
doc: Sums two numbers
|
||||
args:
|
||||
- name: left
|
||||
doc: First operand
|
||||
type: I32
|
||||
- name: right
|
||||
doc: Second operand
|
||||
type: I32
|
||||
rets:
|
||||
- name: val
|
||||
doc: Result
|
||||
type: I32
|
||||
|
||||
- name: div
|
||||
doc: Divides two numbers
|
||||
args:
|
||||
- name: left
|
||||
doc: First operand
|
||||
type: I32
|
||||
- name: right
|
||||
doc: Second operand
|
||||
type: I32
|
||||
rets:
|
||||
- name: val
|
||||
doc: Result
|
||||
type: I32
|
||||
- name: err
|
||||
doc: Error flag, set on error
|
||||
type: Bool
|
||||
|
||||
events:
|
||||
- name: event_a
|
||||
doc: Event a
|
||||
- name: event_b
|
||||
doc: Event b
|
||||
|
||||
Reference in New Issue
Block a user