Skip to main content

Module pd

Module pd 

Source
Expand description

PD (Peripheral Device) driver — receives commands from the ACU and emits replies. A real PD also owns the SCS state on the slave side.

This is currently a thin scaffold: the dispatcher wires up incoming crate::command::Command values and delegates response generation to a caller-supplied handler.

Structs§

Pd
PD driver.

Traits§

PdHandler
Trait for PD-side application logic. Each incoming command becomes a method call; the handler returns the reply to emit.