37 #ifndef LibMultiSense_MultiSenseChannel_hh 38 #define LibMultiSense_MultiSenseChannel_hh 47 namespace multisense {
83 static Channel* Create(
const std::string& sensorAddress);
93 static void Destroy(
Channel *instanceP);
108 static const char *statusString(
Status status);
152 void *userDataP=NULL) = 0;
179 void *userDataP=NULL) = 0;
205 void *userDataP=NULL) = 0;
233 void *userDataP=NULL) = 0;
302 virtual void *reserveCallbackBuffer() = 0;
316 virtual Status releaseCallbackBuffer(
void *referenceP) = 0;
339 virtual Status networkTimeSynchronization(
bool enabled) = 0;
447 virtual Status startDirectedStreams(
const std::vector<DirectedStream>& streams) = 0;
480 virtual Status getDirectedStreams (std::vector<DirectedStream>& streams) = 0;
499 virtual Status maxDirectedStreams (uint32_t& maximum) = 0;
529 virtual Status setMotorSpeed (
float rpm) = 0;
760 virtual Status getDeviceModes (std::vector<system::DeviceMode>& m) = 0;
777 virtual Status getMtu (int32_t& mtu) = 0;
788 virtual Status setMtu (int32_t mtu) = 0;
844 virtual Status setDeviceInfo (
const std::string& key,
891 virtual Status flashBitstream (
const std::string& file) = 0;
906 virtual Status flashFirmware (
const std::string& file) = 0;
918 virtual Status verifyBitstream (
const std::string& file) = 0;
930 virtual Status verifyFirmware (
const std::string& file) = 0;
970 virtual Status getImuInfo (uint32_t& maxSamplesPerMesage,
971 std::vector<imu::Info>& info) = 0;
989 virtual Status getImuConfig (uint32_t& samplesPerMessage,
990 std::vector<imu::Config>& c) = 0;
1012 virtual Status setImuConfig (
bool storeSettingsInFlash,
1013 uint32_t samplesPerMessage,
1014 const std::vector<imu::Config>& c) = 0;
1033 virtual Status getLargeBufferDetails(uint32_t& bufferCount,
1034 uint32_t& bufferSize) = 0;
1055 virtual Status setLargeBuffers (
const std::vector<uint8_t*>& buffers,
1056 uint32_t bufferSize) = 0;
1067 virtual Status getLocalUdpPort(uint16_t& port) = 0;
1074 #endif // LibMultiSense_MultiSenseChannel_hh
void(* Callback)(const Header &header, void *userDataP)
std::string * frameId(M &m)
void(* Callback)(const Header &header, void *userDataP)
void(* Callback)(const Header &header, void *userDataP)
void(* Callback)(const Header &header, void *userDataP)