nxtlib/src/Protocol.cs
/// <summary>
/// [Native] Reads the number of bytes readable in a lowpeed sensor port.
/// </summary>
/// <param name="port">The port of the attached sensor.</param>
/// <returns>Count of available bytes to read.</returns>
[Native] Reads the number of bytes readable in a lowpeed sensor port.
[ Native ] Reads the number of bytes readable in a lowpeed sensor port .
public byte LowspeedGetStatus(SensorPort port)
        {
            byte[] request = new byte[] {
            (byte) (0x00),
            (byte) (DirectCommand.LSGetStatus),
            (byte) port
            };
            byte[] reply = CompleteRequest(request);
            return reply[3];
        }
public byte LowspeedGetStatus ( SensorPort port ) { byte [ ] request = new byte [ ] { ( byte ) ( 0x00 ) , ( byte ) ( DirectCommand . LSGetStatus ) , ( byte ) port } ; byte [ ] reply = CompleteRequest ( request ) ; return reply [ 3 ] ; }
[Native] Reads the number of bytes readable in a lowpeed sensor port.
[ Native ] Reads the number of bytes readable in a lowpeed sensor port .
Count of available bytes to read.
Count of available bytes to read .
port
SensorPort
The port of the attached sensor.
The port of the attached sensor .