2019-01-27 14:25:26 +02:00
|
|
|
@extern "mynteye_types.yaml"
|
2019-01-15 09:10:59 +02:00
|
|
|
|
2019-01-27 14:25:26 +02:00
|
|
|
# Device class to communicate with MYNT® EYE device
|
2019-01-15 09:10:59 +02:00
|
|
|
device = interface +c {
|
2019-01-27 14:25:26 +02:00
|
|
|
# Create the device instance
|
2019-01-15 09:10:59 +02:00
|
|
|
static create(info: device_usb_info): device;
|
|
|
|
|
2019-01-27 14:25:26 +02:00
|
|
|
# Get all stream requests
|
2019-01-15 09:10:59 +02:00
|
|
|
get_stream_requests(): list<stream_request>;
|
2019-01-27 14:25:26 +02:00
|
|
|
# Config the stream request
|
2019-01-15 09:10:59 +02:00
|
|
|
config_stream_request(request: stream_request);
|
|
|
|
|
2019-01-27 14:25:26 +02:00
|
|
|
# Start capturing the source
|
|
|
|
start(source: source);
|
|
|
|
# Stop capturing the source
|
|
|
|
stop(source: source);
|
|
|
|
|
|
|
|
# Wait the streams are ready
|
|
|
|
wait_for_streams();
|
|
|
|
|
|
|
|
# Get the latest data of stream
|
|
|
|
get_stream_data(stream: stream): stream_data;
|
|
|
|
# Get the datas of stream
|
|
|
|
get_stream_datas(stream: stream): list<stream_data>;
|
|
|
|
|
2019-01-27 17:34:47 +02:00
|
|
|
# Enable cache motion datas until get them, otherwise using callback instead
|
|
|
|
enable_motion_datas(max_size: i32);
|
2019-01-27 14:25:26 +02:00
|
|
|
# Get the motion datas
|
|
|
|
get_motion_datas(): list<motion_data>;
|
2019-01-15 09:10:59 +02:00
|
|
|
}
|