ezasyncdata.h
#ifndef _VNEZASYNCDATA_H_
#define _VNEZASYNCDATA_H_
#include "vn/int.h"
#include "vn/error.h"
#include "vn/sensors/compositedata.h"
#include "vn/sensors.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
VnSensor* sensor;
VnCriticalSection* curDataCS;
VnCompositeData* curData;
} VnEzAsyncData;
VnError VnEzAsyncData_initializeAndConnect(VnEzAsyncData* ezAsyncData, const char* portName, uint32_t baudrate);
VnError VnEzAsyncData_disconnectAndUninitialize(VnEzAsyncData* ezAsyncData);
VnCompositeData VnEzAsyncData_currentData(VnEzAsyncData* ezAsyncData);
VnSensor* VnEzAsyncData_sensor(VnEzAsyncData* ezAsyncData);
#ifdef __cplusplus
}
#endif
#endif
VnEzAsyncData::curData
VnCompositeData * curData
The current data received from asynchronous data packets.
Definition: ezasyncdata.h:24
VnSensor
Helpful structure for working with VectorNav sensors.
Definition: sensors.h:894
VnEzAsyncData::curDataCS
VnCriticalSection * curDataCS
Critical section for accessing the current data.
Definition: ezasyncdata.h:21
VnCriticalSection
Definition: criticalsection.h:38
sensors.h
VnCompositeData
Composite structure of all available data types from VectorNav sensors.
Definition: compositedata.h:23
VnEzAsyncData
Structure supporting easy and reliable access to asynchronous data from a VectorNav sensor at the cos...
Definition: ezasyncdata.h:15
VnEzAsyncData::sensor
VnSensor * sensor
The associated connected sensor.
Definition: ezasyncdata.h:18