Characteristic Locus
Inheritance System.Object > Nrf24l01
Inherited Members System.Object.ToString() System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone()
Namespace Meadow.Foundation.Transceivers
Assembly Nrf24l01.dll

Syntax

public class Nrf24l01

Constructors

Nrf24l01(IIODevice, ISpiBus, IPin, IPin, IPin)

Declaration
public Nrf24l01(IIODevice device, ISpiBus spiBus, IPin chipEnablePin, IPin chipSelectLine, IPin interruptPin)

Parameters

Type Name Description
IIODevice device
ISpiBus spiBus
IPin chipEnablePin
IPin chipSelectLine
IPin interruptPin

Nrf24l01(ISpiBus, IDigitalOutputPort, IDigitalOutputPort, IDigitalInterruptPort)

Declaration
public Nrf24l01(ISpiBus spiBus, IDigitalOutputPort chipEnablePort, IDigitalOutputPort chipSelectPort, IDigitalInterruptPort interruptPort)

Parameters

Type Name Description
ISpiBus spiBus
IDigitalOutputPort chipEnablePort
IDigitalOutputPort chipSelectPort
IDigitalInterruptPort interruptPort

Fields

Address

Declaration
protected byte[] Address

Field Value

Type Description
System.Byte[]

chipEnablePort

Declaration
protected IDigitalOutputPort chipEnablePort

Field Value

Type Description
IDigitalOutputPort

dataRate

Declaration
protected Nrf24l01.DataRate dataRate

Field Value

Type Description
Nrf24l01.DataRate

interruptPort

Declaration
protected IDigitalInterruptPort interruptPort

Field Value

Type Description
IDigitalInterruptPort

IsInitialized

Declaration
protected bool IsInitialized

Field Value

Type Description
System.Boolean

pipeEnabled

Declaration
protected Nrf24l01.PipeEnabled pipeEnabled

Field Value

Type Description
Nrf24l01.PipeEnabled

rf24

Declaration
protected ISpiPeripheral rf24

Field Value

Type Description
ISpiPeripheral

spiBus

Declaration
protected ISpiBus spiBus

Field Value

Type Description
ISpiBus

Methods

CloseReadingPipe(Byte)

Declaration
public void CloseReadingPipe(byte child)

Parameters

Type Name Description
System.Byte child

GetChannel()

Declaration
public byte GetChannel()

Returns

Type Description
System.Byte

IsAvailable()

Declaration
public bool IsAvailable()

Returns

Type Description
System.Boolean

OpenReadingPipe(Byte, Byte[])

Declaration
public void OpenReadingPipe(byte child, byte[] address)

Parameters

Type Name Description
System.Byte child
System.Byte[] address

OpenWritingPipe(Byte[])

Declaration
public void OpenWritingPipe(byte[] address)

Parameters

Type Name Description
System.Byte[] address

Read(Byte[], Byte)

Declaration
public void Read(byte[] buf, byte len)

Parameters

Type Name Description
System.Byte[] buf
System.Byte len

SetChannel(Byte)

Declaration
public void SetChannel(byte channel)

Parameters

Type Name Description
System.Byte channel

SetPALevel(Byte, Byte)

Declaration
public void SetPALevel(byte level, byte lnaEnable = 1)

Parameters

Type Name Description
System.Byte level
System.Byte lnaEnable

StartListening()

Declaration
public void StartListening()

StopListening()

Declaration
public void StopListening()

Write(Byte[], Byte)

Declaration
public bool Write(byte[] buf, byte len)

Parameters

Type Name Description
System.Byte[] buf
System.Byte len

Returns

Type Description
System.Boolean