Skip to main content

Crate pldm

Crate pldm 

Source
Expand description

Platform Level Data Model (PLDM) base protocol support

This crate implements some base communication primitives for PLDM, used to construct higher-level PLDM messaging applications.

Modules§

util
Helper functions

Macros§

proto_error
Create a PldmError::Protocol from a message and optional description.

Structs§

PldmRequest
Base PLDM request type
PldmResponse
Base PLDM response type

Enums§

CCode
PldmError
Generic PLDM error type
PldmMessage
Represents either a PLDM request or response message

Constants§

PLDM_MAX_MSGSIZE
Maximum size of a PLDM message, defining our buffer sizes.

Functions§

pldm_rx_req
Receive an incoming PLDM request.
pldm_rx_req_borrowed
Receive an incoming PLDM request in a borrowed buffer.
pldm_rx_resp_borrowed
Receive an incoming PLDM response in a borrowed buffer.
pldm_tx_req
Transmit an outgoing PLDM request
pldm_tx_resp
Transmit an outgoing PLDM response
pldm_xfer
Main PLDM transfer operation.
pldm_xfer_buf
Main PLDM transfer operation.

Type Aliases§

Result
PLDM protocol return type