Functions for accessing and modifying Comm module features. More...
Modules | |
Direct Command functions | |
Functions for sending direct commands to another NXT. | |
System Command functions | |
Functions for sending system commands to another NXT. | |
Defines | |
#define | SendMessage(_queue, _msg, _result) __sendMessage(_queue, _msg, _result) |
Send a message to a queue/mailbox. | |
#define | ReceiveMessage(_queue, _clear, _msg, _result) __receiveMessage(_queue, _clear, _msg, _result) |
Read a message from a queue/mailbox. | |
#define | ReceiveRemoteBool(_queue, _clear, _bval, _result) __receiveRemoteBool(_queue, _clear, _bval, _result) |
Read a boolean value from a queue/mailbox. | |
#define | ReceiveRemoteNumber(_queue, _clear, _val, _result) __receiveRemoteNumber(_queue, _clear, _val, _result) |
Read a numeric value from a queue/mailbox. | |
#define | ReceiveRemoteString(_queue, _clear, _str, _result) __receiveMessage(_queue, _clear, _str, _result) |
Read a string value from a queue/mailbox. | |
#define | ReceiveRemoteMessageEx(_queue, _clear, _str, _val, _bval, _result) __receiveRemoteMessageEx(_queue, _clear, _str, _val, _bval, _result) |
Read a value from a queue/mailbox. | |
#define | SendResponseString(_queue, _msg, _result) __sendResponseString(_queue, _msg, _result) |
Write a string value to a local response mailbox. | |
#define | SendResponseBool(_queue, _bval, _result) __sendResponseBool(_queue, _bval, _result) |
Write a boolean value to a local response mailbox. | |
#define | SendResponseNumber(_queue, _val, _result) __sendResponseNumber(_queue, _val, _result) |
Write a numeric value to a local response mailbox. | |
#define | BluetoothStatus(_conn, _result) __bluetoothStatus(_conn, _result) |
Check bluetooth status. | |
#define | BluetoothWrite(_conn, _buffer, _result) __bluetoothWrite(_conn, _buffer, _result) |
Write to a bluetooth connection. | |
#define | RemoteConnectionWrite(_conn, _buffer, _result) __connectionRawWrite(_conn, _buffer, _result) |
Write to a remote connection. | |
#define | RemoteConnectionIdle(_conn, _result) __remoteConnectionIdle(_conn, _result) |
Check if remote connection is idle. | |
#define | SendRemoteBool(_conn, _queue, _bval, _result) __sendRemoteBool(_conn, _queue, _bval, _result) |
Send a boolean value to a remote mailbox. | |
#define | SendRemoteNumber(_conn, _queue, _val, _result) __sendRemoteNumber(_conn, _queue, _val, _result) |
Send a numeric value to a remote mailbox. | |
#define | SendRemoteString(_conn, _queue, _str, _result) __sendRemoteString(_conn, _queue, _str, _result) |
Send a string value to a remote mailbox. | |
#define | UseRS485() __UseRS485() |
Use the RS485 port. | |
#define | RS485Status(_sendingData, _dataAvail) __RS485Status(_sendingData, _dataAvail) |
Check RS485 status. | |
#define | RS485Write(_buffer, _status) __RS485Write(_buffer, _status) |
Write RS485 data. | |
#define | RS485Read(_buffer, _status) __RS485Read(_buffer, _status) |
Read RS485 data. | |
#define | RS485ReadEx(_buffer, _buflen, _status) __RS485ReadEx(_buffer, _buflen, _status) |
Read limited RS485 data. | |
#define | RS485Control(_cmd, _baud, _mode, _result) __RS485Control(_cmd, _baud, _mode, _result) |
Control the RS485 port. | |
#define | RS485Uart(_baud, _mode, _result) __RS485Control(HS_CTRL_UART, _baud, _mode, _result) |
Configure RS485 UART. | |
#define | RS485Initialize(_result) __RS485Control(HS_CTRL_UART, HS_BAUD_DEFAULT, HS_MODE_DEFAULT, _result) |
Initialize RS485 port. | |
#define | RS485Enable(_result) __RS485Control(HS_CTRL_INIT, HS_BAUD_DEFAULT, HS_MODE_DEFAULT, _result) |
Enable RS485. | |
#define | RS485Disable(_result) __RS485Control(HS_CTRL_EXIT, HS_BAUD_DEFAULT, HS_MODE_DEFAULT, _result) |
Disable RS485. | |
#define | SendRS485Bool(_bval, _status) __sendRS485Bool(_bval, _status) |
Write RS485 boolean. | |
#define | SendRS485Number(_val, _status) __sendRS485Number(_val, _status) |
Write RS485 numeric. | |
#define | SendRS485String(_str, _status) __sendRS485String(_str, _status) |
Write RS485 string. | |
#define | GetBTDeviceName(_p, _str) __GetBTDeviceName(_p, _str) |
Get bluetooth device name. | |
#define | GetBTDeviceClass(_p, _n) __GetBTDeviceClass(_p, _n) |
Get bluetooth device class. | |
#define | GetBTDeviceAddress(_p, _btaddr) __getBTDeviceAddress(_p, _btaddr) |
Get bluetooth device address. | |
#define | GetBTDeviceStatus(_p, _n) __GetBTDeviceStatus(_p, _n) |
Get bluetooth device status. | |
#define | GetBTConnectionName(_p, _str) __GetBTConnectionName(_p, _str) |
Get bluetooth device name. | |
#define | GetBTConnectionClass(_p, _n) __GetBTConnectionClass(_p, _n) |
Get bluetooth device class. | |
#define | GetBTConnectionPinCode(_p, _code) __GetBTConnectionPinCode(_p, _code) |
Get bluetooth device pin code. | |
#define | GetBTConnectionAddress(_p, _btaddr) __getBTConnectionAddress(_p, _btaddr) |
Get bluetooth device address. | |
#define | GetBTConnectionHandleNum(_p, _n) __GetBTConnectionHandleNum(_p, _n) |
Get bluetooth device handle number. | |
#define | GetBTConnectionStreamStatus(_p, _n) __GetBTConnectionStreamStatus(_p, _n) |
Get bluetooth device stream status. | |
#define | GetBTConnectionLinkQuality(_p, _n) __GetBTConnectionLinkQuality(_p, _n) |
Get bluetooth device link quality. | |
#define | GetBrickDataName(_str) GetCommModuleBytes(CommOffsetBrickDataName, 16, _str) |
Get NXT name. | |
#define | GetBrickDataBluecoreVersion(_n) |
Get NXT bluecore version. | |
#define | GetBrickDataAddress(_btaddr) GetCommModuleBytes(CommOffsetBrickDataBdAddr, 7, _btaddr) |
Get NXT address. | |
#define | GetBrickDataBtStateStatus(_n) |
Get NXT bluetooth state status. | |
#define | GetBrickDataBtHardwareStatus(_n) |
Get NXT bluetooth hardware status. | |
#define | GetBrickDataTimeoutValue(_n) |
Get NXT bluetooth timeout value. | |
#define | GetBTInputBuffer(_offset, _cnt, _data) __getBTInputBuffer(_offset, _cnt, _data) |
Get bluetooth input buffer data. | |
#define | GetBTInputBufferInPtr(_n) |
Get bluetooth input buffer in-pointer. | |
#define | GetBTInputBufferOutPtr(_n) |
Get bluetooth input buffer out-pointer. | |
#define | GetBTOutputBuffer(_offset, _cnt, _data) __getBTOutputBuffer(_offset, _cnt, _data) |
Get bluetooth output buffer data. | |
#define | GetBTOutputBufferInPtr(_n) |
Get bluetooth output buffer in-pointer. | |
#define | GetBTOutputBufferOutPtr(_n) |
Get bluetooth output buffer out-pointer. | |
#define | GetHSInputBuffer(_offset, _cnt, _data) __getHSInputBuffer(_offset, _cnt, _data) |
Get hi-speed port input buffer data. | |
#define | GetHSInputBufferInPtr(_n) |
Get hi-speed port input buffer in-pointer. | |
#define | GetHSInputBufferOutPtr(_n) |
Get hi-speed port input buffer out-pointer. | |
#define | GetHSOutputBuffer(_offset, _cnt, _data) __getHSOutputBuffer(_offset, _cnt, _data) |
Get hi-speed port output buffer data. | |
#define | GetHSOutputBufferInPtr(_n) |
Get hi-speed port output buffer in-pointer. | |
#define | GetHSOutputBufferOutPtr(_n) |
Get hi-speed port output buffer out-pointer. | |
#define | GetUSBInputBuffer(_offset, _cnt, _data) __getUSBInputBuffer(_offset, _cnt, _data) |
Get usb input buffer data. | |
#define | GetUSBInputBufferInPtr(_n) |
Get usb port input buffer in-pointer. | |
#define | GetUSBInputBufferOutPtr(_n) |
Get usb port input buffer out-pointer. | |
#define | GetUSBOutputBuffer(_offset, _cnt, _data) __getUSBOutputBuffer(_offset, _cnt, _data) |
Get usb output buffer data. | |
#define | GetUSBOutputBufferInPtr(_n) |
Get usb port output buffer in-pointer. | |
#define | GetUSBOutputBufferOutPtr(_n) |
Get usb port output buffer out-pointer. | |
#define | GetUSBPollBuffer(_offset, _cnt, _data) __getUSBPollBuffer(_offset, _cnt, _data) |
Get usb poll buffer data. | |
#define | GetUSBPollBufferInPtr(_n) |
Get usb port poll buffer in-pointer. | |
#define | GetUSBPollBufferOutPtr(_n) |
Get usb port poll buffer out-pointer. | |
#define | GetBTDeviceCount(_n) |
Get bluetooth device count. | |
#define | GetBTDeviceNameCount(_n) |
Get bluetooth device name count. | |
#define | GetHSFlags(_n) |
Get hi-speed port flags. | |
#define | GetHSSpeed(_n) |
Get hi-speed port speed. | |
#define | GetHSState(_n) |
Get hi-speed port state. | |
#define | GetUSBState(_n) |
Get USB state. | |
#define | GetHSAddress(_n) |
Get hi-speed port address. | |
#define | GetHSMode(_n) |
Get hi-speed port mode. | |
#define | GetBTDataMode(_n) |
Get Bluetooth data mode. | |
#define | GetHSDataMode(_n) |
Get hi-speed port data mode. | |
#define | SetBTInputBuffer(_offset, _cnt, _data) __setBTInputBuffer(_offset, _cnt, _data) |
Set bluetooth input buffer data. | |
#define | SetBTInputBufferInPtr(_n) __setBTInputBufferInPtr(_n) |
Set bluetooth input buffer in-pointer. | |
#define | SetBTInputBufferOutPtr(_n) __setBTInputBufferOutPtr(_n) |
Set bluetooth input buffer out-pointer. | |
#define | SetBTOutputBuffer(_offset, _cnt, _data) __setBTOutputBuffer(_offset, _cnt, _data) |
Set bluetooth output buffer data. | |
#define | SetBTOutputBufferInPtr(_n) __setBTOutputBufferInPtr(_n) |
Set bluetooth output buffer in-pointer. | |
#define | SetBTOutputBufferOutPtr(_n) __setBTOutputBufferOutPtr(_n) |
Set bluetooth output buffer out-pointer. | |
#define | SetHSInputBuffer(_offset, _cnt, _data) __setHSInputBuffer(_offset, _cnt, _data) |
Set hi-speed port input buffer data. | |
#define | SetHSInputBufferInPtr(_n) __setHSInputBufferInPtr(_n) |
Set hi-speed port input buffer in-pointer. | |
#define | SetHSInputBufferOutPtr(_n) __setHSInputBufferOutPtr(_n) |
Set hi-speed port input buffer out-pointer. | |
#define | SetHSOutputBuffer(_offset, _cnt, _data) __setHSOutputBuffer(_offset, _cnt, _data) |
Set hi-speed port output buffer data. | |
#define | SetHSOutputBufferInPtr(_n) __setHSOutputBufferInPtr(_n) |
Set hi-speed port output buffer in-pointer. | |
#define | SetHSOutputBufferOutPtr(_n) __setHSOutputBufferOutPtr(_n) |
Set hi-speed port output buffer out-pointer. | |
#define | SetUSBInputBuffer(_offset, _cnt, _data) __setUSBInputBuffer(_offset, _cnt, _data) |
Set USB input buffer data. | |
#define | SetUSBInputBufferInPtr(_n) __setUSBInputBufferInPtr(_n) |
Set USB input buffer in-pointer. | |
#define | SetUSBInputBufferOutPtr(_n) __setUSBInputBufferOutPtr(_n) |
Set USB input buffer out-pointer. | |
#define | SetUSBOutputBuffer(_offset, _cnt, _data) __setUSBOutputBuffer(_offset, _cnt, _data) |
Set USB output buffer data. | |
#define | SetUSBOutputBufferInPtr(_n) __setUSBOutputBufferInPtr(_n) |
Set USB output buffer in-pointer. | |
#define | SetUSBOutputBufferOutPtr(_n) __setUSBOutputBufferOutPtr(_n) |
Set USB output buffer out-pointer. | |
#define | SetUSBPollBuffer(_offset, _cnt, _data) __setUSBPollBuffer(_offset, _cnt, _data) |
Set USB poll buffer data. | |
#define | SetUSBPollBufferInPtr(_n) __setUSBPollBufferInPtr(_n) |
Set USB poll buffer in-pointer. | |
#define | SetUSBPollBufferOutPtr(_n) __setUSBPollBufferOutPtr(_n) |
Set USB poll buffer out-pointer. | |
#define | SetHSFlags(_n) __setHSFlags(_n) |
Set hi-speed port flags. | |
#define | SetHSSpeed(_n) __setHSSpeed(_n) |
Set hi-speed port speed. | |
#define | SetHSState(_n) __setHSState(_n) |
Set hi-speed port state. | |
#define | SetUSBState(_n) __setUSBState(_n) |
Set USB state. | |
#define | SetHSAddress(_n) __setHSAddress(_n) |
Set hi-speed port address. | |
#define | SetHSMode(_n) __setHSMode(_n) |
Set hi-speed port mode. | |
#define | SetBTDataMode(_n) __setBTDataMode(_n) |
Set Bluetooth data mode. | |
#define | SetHSDataMode(_n) __setHSDataMode(_n) |
Set hi-speed port data mode. |
Functions for accessing and modifying Comm module features.