hololink::emulation::DataPlanePublicist
hololink::emulation::DataPlanePublicist
Inherits from: hololink::emulation::DataPlane (public)
Methods
update_metadata
method to update metadata model for the appropriate transmitter subclass can assume that appropriate locks are held while accessing memory registers and the transmitter metadata
start
Start the DataPlane by initiating the BootP broadcast.
stop
Stop the DataPlane by stopping the BootP broadcast.
stop_bootp
This is a clear alias for stop().
is_running
Check if the DataPlane is running.
(Bootp is broadcasting)
Returns: True if the DataPlane is running, false otherwise.
send
Send a tensor over the DataPlane.
This method is synchronous. It will block and metadata will be protected by a mutex until the send is complete.
Returns: The number of bytes sent or < 0 if error occurred.
Parameters
The tensor object reference to send. Supported device types are kDLCPU, kDLCUDA, kDLCUDAHost (host pinned), and kDLCUDAManaged (Unified Memory)
The frame metadata to send. Acts as a buffer flush. If nullptr, the data is by default buffered until the next send command that fills an MTU or a non-nullptr frame_metadata is provided.
get_sensor_id
Get the sensor ID associated with the DataPlane.
Returns: The sensor ID.
packetizer_enabled
Check if the packetizer is enabled.
Returns: True if the packetizer is enabled, false otherwise.