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
gpio_property_test.h
Go to the documentation of this file.
1/**
2 * @file gpio_property_test.h
3 * @brief Header for GPIO property-based tests
4 *
5 * This file declares the GPIO property test functions and registration.
6 *
7 * **Validates: Requirements 2.1-2.5, 2.8-2.10, 8.1-8.3, 8.9-8.10**
8 *
9 * Property 2: Mode-Aware GPIO Operation Validity
10 * For any GPIO pin configured in a specific mode (input, output, open-drain,
11 * input/output, PWM output), operations attempted on that pin SHALL:
12 * 1. Succeed only if valid for the pin's configured mode
13 * 2. Return appropriate standardized error codes for invalid operations
14 * 3. Not affect the state of other GPIO pins
15 * 4. Maintain consistent pin state tracking for runtime validation
16 * 5. Initialize and deinitialize pins correctly during system startup/shutdown
17 *
18 * @author MeshX Team
19 * @date 2024
20 */
21
22#ifndef __GPIO_PROPERTY_TEST_H
23#define __GPIO_PROPERTY_TEST_H
24
25#include "meshx_err.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31#if CONFIG_ENABLE_UNIT_TEST
32
33/**
34 * @brief Register GPIO property tests with unit test framework
35 *
36 * @return meshx_err_t Registration result
37 */
39
40#endif /* CONFIG_ENABLE_UNIT_TEST */
41
42#ifdef __cplusplus
43}
44#endif
45
46#endif /* __GPIO_PROPERTY_TEST_H */
meshx_err_t register_gpio_property_tests(void)
Register GPIO property tests with unit test framework.
Definition gpio_property_test.c:531
MeshX Error Codes.
meshx_err_t
MeshX Error Codes.
Definition meshx_err.h:43