RPLidar.Comm (rplidar v0.1.0)

Internal module containing functions for decoding messages received from the RPLidar device.

Link to this section Summary

Link to this section Types

@type info() :: %{
  model: non_neg_integer(),
  firmware_minor: non_neg_integer(),
  firmware_major: non_neg_integer(),
  hardware: non_neg_integer(),
  serial: binary()
}

Link to this section Functions

Link to this function

decode_get_info(arg)

@spec decode_get_info(binary()) :: {:ok, info()}
Link to this function

decode_scan(buffer)

@spec decode_scan(binary()) :: {{float(), float(), non_neg_integer()} | nil, binary()}
Link to this function

decode_scan(arg, time)