Navigating Documentation

~15 min

Each peripheral typically gets its own module in a HAL crate. You can find the module list by navigating to the bottom of the crate's documentation page.

Navigate to the Peripheral Module

Find an Example for Your Peripheral

Simple examples are often shown directly in the module documentation. Most HAL repos also have a dedicated examples directory that you can browse on GitHub.

Find an Example

Identify the Peripheral Driver Struct

Use the example to apply the mental model. Identify the driver struct and how it is instantiated, configured, and controlled.

Identify the Driver Struct

Access the Driver Struct

Once you have identified the driver struct, navigate to its documentation page. There you will find the configuration and control methods available to you.

Access the Driver Struct