MeshX 0.4
This repository provides an implementation for Bluetooth Low Energy (BLE) Mesh network nodes. The project allows you to create BLE mesh nodes that can communicate with each other, enabling the development of smart home solutions or other IoT-based applications.
Loading...
Searching...
No Matches
pwm_property_test.h
Go to the documentation of this file.
1/**
2 * @file pwm_property_test.h
3 * @brief Header for PWM property-based tests
4 *
5 * This file declares the PWM property test functions and registration.
6 *
7 * **Validates: Requirements 4.1-4.10**
8 *
9 * Property 4: PWM Subsystem Correctness
10 * For any GPIO pin configured for PWM output (with frequency, duty cycle, resolution, and channel specifications), the PWM subsystem SHALL:
11 * 1. Initialize based on YAML configuration
12 * 2. Start and stop PWM output as requested
13 * 3. Set and get duty cycle (0-100%) and frequency values accurately
14 * 4. Validate parameters against hardware limits
15 * 5. Handle hardware channel allocation and conflicts
16 * 6. Maintain PWM state for runtime control and monitoring
17 * 7. Deinitialize and free resources during shutdown
18 *
19 * @author MeshX Team
20 * @date 2024
21 */
22
23#ifndef __PWM_PROPERTY_TEST_H
24#define __PWM_PROPERTY_TEST_H
25
26#include "meshx_err.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32#if CONFIG_ENABLE_UNIT_TEST
33
34/**
35 * @brief Register PWM property tests with unit test framework
36 *
37 * @return meshx_err_t Registration result
38 */
40
41#endif /* CONFIG_ENABLE_UNIT_TEST */
42
43#ifdef __cplusplus
44}
45#endif
46
47#endif /* __PWM_PROPERTY_TEST_H */
MeshX Error Codes.
meshx_err_t
MeshX Error Codes.
Definition meshx_err.h:43
meshx_err_t register_pwm_property_tests(void)
Register PWM property tests with unit test framework.
Definition pwm_property_test.c:745