MYNT-EYE-S-SDK/wrappers/android/mynteye/scripts/mynteye.djinni
2019-02-12 16:03:22 +08:00

31 lines
859 B
Plaintext

@extern "mynteye_types.yaml"
# Device class to communicate with MYNT® EYE device
device = interface +c {
# Create the device instance
static create(info: device_usb_info): device;
# Get all stream requests
get_stream_requests(): list<stream_request>;
# Config the stream request
config_stream_request(request: stream_request);
# 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>;
# Enable cache motion datas until get them, otherwise using callback instead
enable_motion_datas(max_size: i32);
# Get the motion datas
get_motion_datas(): list<motion_data>;
}