메소드 | 설명 | |
---|---|---|
FullDuplexTransfer ( AdcChannels channel, String data ) : String |
Write and read a block of data over the SPI bus. This is a full duplex operation.
|
|
GetFileDescriptor ( AdcChannels channel ) : |
Gets the file descriptor for the given channel.
|
|
Init ( AdcChannels channel ) : System.Boolean |
Open the SPI device and set it up, etc, at the default speed (1000000).
|
|
Init ( AdcChannels channel, |
Open the SPI device and set it up, etc.
|
|
Read ( AdcChannels channel, Byte register ) : Byte |
Reads a packet from the specified register over the specified channel.
|
|
Write ( AdcChannels channel, Byte register, Byte data ) : void |
Write the specified data to the specified register on the specified channel.
|
public static FullDuplexTransfer ( AdcChannels channel, String data ) : String | ||
channel | AdcChannels | /// The channel to transfer on. /// |
data | String | /// The data to transfer. /// |
리턴 | String |
public static GetFileDescriptor ( AdcChannels channel ) : |
||
channel | AdcChannels | /// The channel to get the descriptor for. /// |
리턴 |
public static Init ( AdcChannels channel ) : System.Boolean | ||
channel | AdcChannels | /// The channel to open. /// |
리턴 | System.Boolean |
public static Init ( AdcChannels channel, |
||
channel | AdcChannels | /// The channel to open. /// |
speed | /// The speed to negotiate the transfer rate at (ie. 38400). /// | |
리턴 | System.Boolean |
public static Read ( AdcChannels channel, Byte register ) : Byte | ||
channel | AdcChannels | /// The channel to comunicate with the target on. /// |
register | Byte | /// The register to read the packet from. /// |
리턴 | Byte |
public static Write ( AdcChannels channel, Byte register, Byte data ) : void | ||
channel | AdcChannels | /// The channel to communicate with the target on. /// |
register | Byte | /// The register to write the data to. /// |
data | Byte | /// The data to write. /// |
리턴 | void |