Skip to main content

Crate hisi_rf_core

Crate hisi_rf_core 

Source
Expand description

Chip-neutral radio control and L2 data-plane contracts.

This crate owns the portable controller, runner, configuration, event, and L2-device contracts. Applications normally depend on the chip-selecting hisi-rf facade instead of naming this implementation crate directly.

init claims caller-provided static state and returns an exclusive RadioController. Splitting it yields a WifiController, a WifiDevice, and the mandatory RadioRunner. Only the runner calls the chip backend; control methods merely enqueue commands and await completion.

Modules§

ble
Chip-neutral Bluetooth Low Energy GAP configuration contracts.
sle
Chip-neutral SLE announce and seek configuration contracts.

Structs§

BackendError
Backend error with a stable class and lossless chip-specific context.
BackendTimeout
Non-zero timeout for a bounded backend or vendor lifecycle call.
BlockingRunnerDiagnostics
Observational counters for the blocking RadioRunner path.
ConnectionInfo
Successful station association.
Diagnostic
Allocation-free diagnostic view of a public RF Error.
DiagnosticTrace
Fixed-capacity trace attached to one backend error.
DiagnosticTraceEntry
One numeric, secret-free backend trace entry.
EventDiagnostics
Event queue overflow diagnostics.
OperationTimeout
Non-zero end-to-end timeout for one protocol operation.
Passphrase
Owned WPA2/WPA3-Personal passphrase that is erased on drop.
RadioConfig
Radio-wide configuration.
RadioController
Exclusive unsplit radio ownership.
RadioParts
Enabled protocol handles plus the mandatory runner.
RadioResources
Caller-provided chip resources.
RadioRunner
Long-lived owner of a chip backend.
RadioState
Static storage for one radio controller and its bounded event queue.
ScanConfig
Bounded station scan request.
ScanOutcome
Result count for a caller-provided scan buffer.
ScanResult
One chip-neutral bounded scan result.
Ssid
Validated IEEE 802.11 SSID bytes.
StationConfig
Validated station connection request.
WifiConfig
Wi-Fi control-plane defaults.
WifiController
Async Wi-Fi control plane. This handle is deliberately not cloneable.
WifiDevice
L2 data-plane ownership independent of the control backend.
WifiL2Capabilities
Immutable link-layer identity published by one initialized Wi-Fi backend.
WifiParts
Separate Wi-Fi control and L2 data-plane ownership.

Enums§

BackendErrorClass
Stable class for backend-specific failures.
DiagnosticCode
Stable identity for a public RF failure.
DiagnosticStage
Stable stage at which a public RF failure was reported.
DiagnosticTraceKind
Stable identity for one bounded backend trace value.
Error
Failure to establish or use the radio control plane.
ManagementFrameProtection
IEEE 802.11 management-frame protection policy.
PersonalSecurity
Validated Personal-mode security selected for one station connection.
RecoveryAction
Action a caller or operator can take after a failure.
SaePwe
SAE password-element derivation policy.
Security
Link-layer security discovered during scan.
WifiEvent
Successful and failed state transitions emitted by the runner.

Constants§

DIAGNOSTIC_SCHEMA
Versioned machine-readable diagnostic schema.
DIAGNOSTIC_TRACE_CAPACITY
Maximum number of backend trace entries retained by one public error.

Traits§

WifiBackend
Chip backend driven exclusively by RadioRunner.

Functions§

init
Claim one radio instance without invoking its backend.