anyKode Marilou
ContentsIndexHome
PreviousUpNext
RobotPHX::QueryDeviceExternalCommunicationPort

QueryDeviceExternalCommunicationPort searches and returns a "Communication port device" device from the PHX's devices list.

C++
DeviceExternalCommunicationPort* QueryDeviceExternalCommunicationPort(xkode::lib::String Name);
Parameters 
Description 
xkode::lib::String Name 
[in] Relative name of the device:
Ex: uart0 

A pointer to the instance of the required device. The function returns NULL if the device were not found.

//MODA C++ native sample code

//...
ModaCPP::DeviceExternalCommunicationPort *pDevice=robot->QueryDeviceExternalCommunicationPort("port");
if(pDevice) ...
Documentation v4.7 (17/05/2011), Copyright (c) 2011 anyKode. All rights reserved.
What do you think about this topic? Send feedback!