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 File Reference

Header for PWM property-based tests. More...

#include "meshx_err.h"

Go to the source code of this file.

Functions

meshx_err_t register_pwm_property_tests (void)
 Register PWM property tests with unit test framework.

Detailed Description

Header for PWM property-based tests.

This file declares the PWM property test functions and registration.

Validates: Requirements 4.1-4.10

Property 4: PWM Subsystem Correctness For any GPIO pin configured for PWM output (with frequency, duty cycle, resolution, and channel specifications), the PWM subsystem SHALL:

  1. Initialize based on YAML configuration
  2. Start and stop PWM output as requested
  3. Set and get duty cycle (0-100%) and frequency values accurately
  4. Validate parameters against hardware limits
  5. Handle hardware channel allocation and conflicts
  6. Maintain PWM state for runtime control and monitoring
  7. Deinitialize and free resources during shutdown
Author
MeshX Team
Date
2024

Function Documentation

◆ register_pwm_property_tests()

meshx_err_t register_pwm_property_tests ( void )

Register PWM property tests with unit test framework.

Returns
meshx_err_t Registration result
746{
747 MESHX_LOGD(MODULE_ID_PWM_PROPERTY_TEST, "Registering PWM property tests");
749}
#define MESHX_LOGD(module_id, format,...)
Definition meshx_log.h:132
@ MODULE_ID_PWM_PROPERTY_TEST
Definition module_id.h:48
static meshx_err_t pwm_property_test_handler(int cmd_id, int argc, char **argv)
PWM property test command handler.
Definition pwm_property_test.c:684
meshx_err_t register_unit_test(module_id_t module_id, module_callback_t callback)
Register a unit test for a specific module.
Definition unit_test.c:137