SCRC v0.2.0 Scrc.Driver View Source

Driver implements the framework to write custom drivers. Simply use this module and implement scrc_init and scrc_drive.

Link to this section Summary

Functions

The client recieved identified payload for the driver to handle

The client recieved restart payload for the driver to handle

The client recieved new sensor data for the driver to handle

The client recieved shutdown payload for the driver to handle

The client requests the initialization data

Set the owning client

Link to this section Types

Link to this section Functions

Link to this function handle_identified(driver) View Source
handle_identified(pid()) :: :ok

The client recieved identified payload for the driver to handle.

Link to this function handle_restart(driver) View Source
handle_restart(pid()) :: :ok

The client recieved restart payload for the driver to handle.

Link to this function handle_sensor_data(driver, sensor_data) View Source
handle_sensor_data(pid(), Scrc.SensorData.t()) :: :ok

The client recieved new sensor data for the driver to handle.

Link to this function handle_shutdown(driver) View Source
handle_shutdown(pid()) :: :ok

The client recieved shutdown payload for the driver to handle.

Link to this function request_init_data(driver) View Source
request_init_data(pid()) :: :ok

The client requests the initialization data.

Link to this function set_client(driver, client) View Source
set_client(pid(), pid()) :: :ok

Set the owning client.