@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; # 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; # 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; }