|
void | writeValue (pinid_t pin, uint8_t value) override |
|
uint8_t | readValue (pinid_t pin) override |
|
void | writePort (pinid_t pin, uint8_t port) override |
|
uint8_t | readPort (pinid_t pin) override |
|
void | clearChangeFlags () |
|
void | setReadPort (int port) |
|
bool | isReadPortSet (int port) const |
|
bool | isWritePortSet (int port) const |
|
bool | isInitNeeded () const |
|
void | markInitialised () |
|
uint8_t | digitalRead (pinid_t p) |
|
void | digitalWrite (pinid_t p, uint8_t v) |
|
uint8_t | digitalReadS (pinid_t p) |
|
void | digitalWriteS (pinid_t p, uint8_t v) |
|
void | writePortS (pinid_t p, uint8_t v) |
|
uint8_t | readPortS (pinid_t p) |
|
void | pinMode (pinid_t pin, uint8_t mode) |
|
bool | sync () |
|
virtual void | pinDirection (pinid_t pin, uint8_t mode) |
|
virtual void | attachInterrupt (pinid_t pin, RawIntHandler interruptHandler, uint8_t mode) |
|
virtual bool | runLoop () |
|
|
virtual void | initDevice ()=0 |
|
|
uint16_t | lastRead |
|
uint16_t | toWrite |
|
uint8_t | flags |
|
◆ writeValue()
void Standard16BitDevice::writeValue |
( |
pinid_t |
pin, |
|
|
uint8_t |
value |
|
) |
| |
|
overridevirtual |
Writes a value to a pin on this abstraction, as per digitalWrite
. For serial devices, may need a sync first.
- Parameters
-
pin | the pin to be written to |
value | the new value such as HIGH / LOW |
Reimplemented from BasicIoAbstraction.
◆ readValue()
uint8_t Standard16BitDevice::readValue |
( |
pinid_t |
pin | ) |
|
|
overridevirtual |
Reads a value from a pin for this abstraction as per digitalRead
. For serial devices may need a sync first.
- Parameters
-
Reimplemented from BasicIoAbstraction.
◆ writePort()
void Standard16BitDevice::writePort |
( |
pinid_t |
pin, |
|
|
uint8_t |
portVal |
|
) |
| |
|
overridevirtual |
Writes out a whole port at once, on Arduino pins this is achieved by providing any pin within that port. On Arduino pins you should take care not to use ports that are providing core functions.
- Parameters
-
pin | the pin determines the hardware port to use. |
portVal | the 8 bit value to write to the port. Use with care. |
Reimplemented from BasicIoAbstraction.
◆ readPort()
uint8_t Standard16BitDevice::readPort |
( |
pinid_t |
pin | ) |
|
|
overridevirtual |
Reads a whole port at once, on Arduino pins this is achieved by providing any pin within that port. On Arduino pins you should take care not to use ports that are providing core functions.
- Parameters
-
pin | the pin determines the hardware port to use. |
- Returns
- the 8 bit value read from the port.
Reimplemented from BasicIoAbstraction.
The documentation for this class was generated from the following files: