Sound Byte Libs 29c5ff3
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
18
19#include <cstdint>
20
21namespace sbl {
22
23// GpioHandle is defined in hal/gpio/handle.hpp
24// AdcHandle is defined in hal/adc/handle.hpp
25// UartHandle is defined in hal/uart/handle.hpp
26// I2cHandle is defined in hal/i2c/handle.hpp
27
28/**
29 * @brief PWM output handle
30 *
31 * Represents a PWM output as resolved from hardware manifests.
32 */
33struct PwmHandle {
34 uint32_t timer; ///< Timer/PWM peripheral number
35 uint32_t channel; ///< Channel within the timer
36};
37
38} // namespace sbl
39
40#endif // SBL_TYPES_HPP_
ADC handle type for hardware abstraction.
GPIO handle type for hardware abstraction.
I2C handle type for hardware abstraction.
Root namespace for all Sound Byte Libs functionality.
Definition aliases.hpp:24
PWM output handle.
Definition types.hpp:33
uint32_t channel
Channel within the timer.
Definition types.hpp:35
uint32_t timer
Timer/PWM peripheral number.
Definition types.hpp:34
UART handle type for hardware abstraction.