docs.rs failed to build cu-dps310-1.1.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
cu-dps310-1.1.0
cu-dps310
Copper source component for the Infineon DPS310 barometer.
Output
cu_dps310::Dps310Source emits cu_sensor_payloads::BarometerPayload
(pressure in Pa, temperature in C) at 30 Hz.
How To Use
- Add the crate dependency:
= { = "../../components/sources/cu_dps310", = false, = ["defmt"] }
- Define the task type alias in your app:
pub type Dps310Source = Dps310Source;
MyDps310Bus is your board/resource type that implements cu_dps310::Dps310Bus.
- Add the source task in
copperconfig.ron:
(
id: "dps310",
type: "tasks::Dps310Source",
logging: (enabled: true),
resources: {"i2c": "fc.dps310"},
)
- Connect it to a consumer:
(
src: "dps310",
dst: "baro_logger",
msg: "cu_sensor_payloads::BarometerPayload",
)
The source has no component-specific config fields; wiring the resource and connection is enough.