|
Treehopper C# API
|
This module is used to provide an 8080-style R/W parallel interface (especially useful for displays) More...
Public Member Functions | |
| async Task | WriteCommandAsync (uint[] command) |
| Write one or more words of data to the bus with the command flag asserted (RS=0); More... | |
| async Task | WriteDataAsync (uint[] data) |
| Write one or more words of data to the bus with the data flag asserted (RS=1); More... | |
| async Task< ushort[]> | ReadCommandAsync (uint command, int length) |
| Write a command to the bus and await data to be returned More... | |
| async Task< ushort[]> | ReadDataAsync (int length) |
| Read data words from the bus More... | |
| override string | ToString () |
| Gets a string representation of the parallel interface's state More... | |
Public Attributes | |
| int | Width => DataBus.Count |
| Get the width of the data bus (i.e., the count of the number of pins in the bus) More... | |
Properties | |
| Collection< Pin > | DataBus = new Collection<Pin>() [get, set] |
| Controls which pins are used for the data bus. More... | |
| Pin | RegisterSelectPin [get, set] |
| Gets or sets the pin used for Register Select (RS). More... | |
| Pin | ReadWritePin [get, set] |
| Gets or sets the pin used for Read/Write (R/W) More... | |
| Pin | EnablePin [get, set] |
| Gets or sets the pin used for Enable (E). More... | |
| int | DelayMicroseconds [get, set] |
| gets or sets the number of microseconds that should be delayed after pulse. More... | |
| bool | Enabled [get, set] |
| Gets or sets a value indicating whether this peripheral is enabled More... | |
This module is used to provide an 8080-style R/W parallel interface (especially useful for displays)
| async Task WriteCommandAsync | ( | uint [] | command | ) |
Write one or more words of data to the bus with the command flag asserted (RS=0);
| command |
Implements WriteOnlyParallelInterface.
| async Task WriteDataAsync | ( | uint [] | data | ) |
Write one or more words of data to the bus with the data flag asserted (RS=1);
| data |
Implements WriteOnlyParallelInterface.
| async Task<ushort[]> ReadCommandAsync | ( | uint | command, |
| int | length | ||
| ) |
Write a command to the bus and await data to be returned
| command | The command word to write |
| length | The number of words to read |
Implements ReadWriteParallelInterface.
| async Task<ushort[]> ReadDataAsync | ( | int | length | ) |
Read data words from the bus
| length | The number of words to read |
Implements ReadWriteParallelInterface.
| override string ToString | ( | ) |
Gets a string representation of the parallel interface's state
| int Width => DataBus.Count |
Get the width of the data bus (i.e., the count of the number of pins in the bus)
Controls which pins are used for the data bus.
|
getset |
Gets or sets the pin used for Register Select (RS).
|
getset |
Gets or sets the pin used for Read/Write (R/W)
|
getset |
Gets or sets the pin used for Enable (E).
|
getset |
gets or sets the number of microseconds that should be delayed after pulse.
|
getset |
Gets or sets a value indicating whether this peripheral is enabled