-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathio.tbh
33 lines (28 loc) · 841 Bytes
/
io.tbh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
enum io_counter_mode
io_counter_disabled,
io_counter_rise,
io_counter_edge,
io_counter_both
end enum
type io_counter
mode as io_counter_mode
counter as dword
end type
enum io_cprobe
IO_CPROBE_DISABLE,
IO_CPROBE_TEMP,
IO_CPROBE_TEMPHUM,
IO_CPROBE_LIGHT,
IO_CPROBE_PRESSURE
end enum
declare io_cn(NUM_OF_IO) as io_counter
declare io_cprobes(NUM_I2C_SLOTS) as io_cprobe
declare sub setup_io()
declare function io_get_num(socket as byte, pin as byte) as byte
declare sub digital_loop()
declare function io_set(channel as word, value as low_high) as boolean
declare function io_get_pin(channel as byte) as byte
declare function io_get_slot(channel as byte) as byte
declare function io_get_numc(channel as byte) as byte
declare function io_get_ser_num(slot as byte) as byte
declare sub io_tbt41_set_data(slot as byte, data as byte)