| pad num/int --input/bool= --output/bool= --pull-up/bool= --pull-down/bool= --open-drain/bool= --value/int= -> Pin | |
|---|---|
| gpio num/int --alt/bool= --input/bool= --output/bool= --pull-up/bool= --pull-down/bool= --open-drain/bool= --value/int= -> Pin | |
| uart0 --mapping/int= --rts-enabled/bool= --cts-enabled/bool= --tx-disabled/bool= --rx-disabled/bool= --baud-rate/int --data-bits/int= --stop-bits/StopBits= --parity/int= --mode/int= --rs485-de/int= --large-buffers/bool= -> Port | Opens UART0 (EC618 controller 0). |
| uart1 --mapping/int= --rts-enabled/bool= --cts-enabled/bool= --tx-disabled/bool= --rx-disabled/bool= --baud-rate/int --data-bits/int= --stop-bits/StopBits= --parity/int= --mode/int= --rs485-de/int= --large-buffers/bool= -> Port | Opens UART1 (EC618 controller 1, the only one that can wake the chip from deep sleep at low baud rates). |
| uart2 --mapping/int= --tx-disabled/bool= --rx-disabled/bool= --baud-rate/int --data-bits/int= --stop-bits/StopBits= --parity/int= --mode/int= --rs485-de/int= --large-buffers/bool= -> Port | Opens UART2 (EC618 controller 2). UART2 has no hardware flow control. |
| i2c0 --frequency/int= --pull-up/bool= -> Bus | Opens the I2C0 bus. |
| i2c1 --frequency/int= --pull-up/bool= -> Bus | Opens the I2C1 bus. |
| spi0 -> Bus | Opens the SPI0 bus (master). |
| spi1 -> Bus | Opens the SPI1 bus (master). |
| adc0 --max-voltage/float= -> Adc | Opens ADC channel 0 — the EC618's AIO3 input (the board's "ADC0"). |
| adc1 --max-voltage/float= -> Adc | Opens ADC channel 1 — the EC618's AIO4 input (the board's "ADC1"). |
with-timeout to bound an operation.with-timeout to bound an operation.print output — this is how the HW-test agent serves its control protocol), with CONFIG_TOIT_EC618_PRINT_UART=0, or with the redirect pointed elsewhere via the anchor record's console byte.
class Pin:
number/int
constructor .number:
operator == other:
if other is not Pin: return false
return number == other.number
hash-code method. That is, if a class has a hash-code member, then the equality and hash-code must agree. If two instances are equal (a == b), then their hash codes must also be equal (a.hash-code == b.hash-code).