Sound Byte Libs 1ee2ca6
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
types.hpp
Go to the documentation of this file.
1/**
2 * @file types.hpp
3 * @brief Common types for SBL hardware abstraction
4 *
5 * Re-exports canonical types from the HAL layer for convenience.
6 * This header is used by generated hardware configs (sbl/hw/hardware.hpp)
7 * and provides a stable include path for common types.
8 */
9
10#ifndef SBL_TYPES_HPP_
11#define SBL_TYPES_HPP_
12
13// Canonical definitions
17
18#include <cstdint>
19
20namespace sbl {
21
22// GpioHandle is defined in hal/gpio/handle.hpp
23// AdcHandle is defined in hal/adc/handle.hpp
24// UartHandle is defined in hal/uart/handle.hpp
25
26/**
27 * @brief PWM output handle
28 *
29 * Represents a PWM output as resolved from hardware manifests.
30 */
31struct PwmHandle {
32 uint32_t timer; ///< Timer/PWM peripheral number
33 uint32_t channel; ///< Channel within the timer
34};
35
36} // namespace sbl
37
38#endif // SBL_TYPES_HPP_
ADC handle type for hardware abstraction.
GPIO handle type for hardware abstraction.
Root namespace for all Sound Byte Libs functionality.
Definition aliases.hpp:24
PWM output handle.
Definition types.hpp:31
uint32_t channel
Channel within the timer.
Definition types.hpp:33
uint32_t timer
Timer/PWM peripheral number.
Definition types.hpp:32
UART handle type for hardware abstraction.