Method | Description | |
---|---|---|
Flush_RX ( ) : void |
Clear RX Buffer
|
|
Flush_TX ( ) : void |
Clear TX Buffer
|
|
RX_MODE ( ) : void |
Switch nRF mode to Receiver (Full duplex communication is not possible) [Half duplex mode only]
|
|
RX_PAYLOAD ( ) : byte[] |
Transmit payload
|
|
SPI_READ ( ) : byte[] |
Read Byte array from nRF device (Don't call this function unless you know what you are really doing) You need to write RX_PAYLOAD before bulk reading.
|
|
SPI_WRITE ( byte data ) : void |
Write Byte stream to nRF device
|
|
TX_MODE ( ) : void |
Switch nRF mode to Transmitter (Full duplex communication is not possible) [Half duplex mode only]
|
|
TX_PAYLOAD ( byte data ) : void |
Transmit payload before transmission, switch to TX_MODE()
|
|
init_nRF ( ) : void |
Initialize nRF module Pipe 0 and Pipe 1 with no ack This init can be replaced with user required initializations for complex wireless operations
|
|
is_data_available ( ) : bool |
I used another cus
|
|
nRF ( Windows.Devices.Gpio.GpioPin nrf_ce, Windows.Devices.Spi.SpiDevice SPI_DEV ) : System |
nRF Hardware Init Function
|
Method | Description | |
---|---|---|
high_reset ( ) : void | ||
low_reset ( ) : void |
public SPI_WRITE ( byte data ) : void | ||
data | byte | Byte data array |
return | void |
public TX_PAYLOAD ( byte data ) : void | ||
data | byte | byte data array |
return | void |
public nRF ( Windows.Devices.Gpio.GpioPin nrf_ce, Windows.Devices.Spi.SpiDevice SPI_DEV ) : System | ||
nrf_ce | Windows.Devices.Gpio.GpioPin | nRF CE PIN |
SPI_DEV | Windows.Devices.Spi.SpiDevice | SPI Device object of Raspberry Pi |
return | System |