Read Reasons ip.buffer Powered
t = pcb.reasons( [clr] )
Parameter | Type | Description |
---|---|---|
clr |
integer | Which flag(s) to clear |
clr |
string | Names of flags to clear |
Returns | Type | Description |
---|---|---|
t |
table | Table of reasons |
Bit | Text | Description |
---|---|---|
0 | WAKEUP1 |
COM1 WAKEUP Pin |
1 | WAKEUP2 |
COM2 WAKEUP Pin |
2 | WAKEUP3 |
COM3 WAKEUP Pin |
3 | WAKEUP4 |
COM4 WAKEUP Pin |
4 | WAKEUPPWR |
POWER WAKEUP Pin |
6 | DTR1 |
The ip.buffer COM1.DTR is asserted |
7 | DIP |
The DIP1 (MAIN) switch is set to 'On' |
8 | USER |
The magnet sensor was triggered |
13 | INTERVAL |
The time interval/period has expired |
14 | PCB |
The PCB is keeping the ip.buffer running |
15 | COLD |
The whole system has had a cold boot or power cycle. |