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

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

#include "meshx_err.h"

Go to the source code of this file.

Functions

meshx_err_t register_gpio_property_tests (void)
 Register GPIO property tests with unit test framework.

Detailed Description

Header for GPIO property-based tests.

This file declares the GPIO property test functions and registration.

Validates: Requirements 2.1-2.5, 2.8-2.10, 8.1-8.3, 8.9-8.10

Property 2: Mode-Aware GPIO Operation Validity For any GPIO pin configured in a specific mode (input, output, open-drain, input/output, PWM output), operations attempted on that pin SHALL:

  1. Succeed only if valid for the pin's configured mode
  2. Return appropriate standardized error codes for invalid operations
  3. Not affect the state of other GPIO pins
  4. Maintain consistent pin state tracking for runtime validation
  5. Initialize and deinitialize pins correctly during system startup/shutdown
Author
MeshX Team
Date
2024

Function Documentation

◆ register_gpio_property_tests()

meshx_err_t register_gpio_property_tests ( void )

Register GPIO property tests with unit test framework.

Returns
meshx_err_t Registration result
532{
533 MESHX_LOGD(MODULE_ID_GPIO_PROPERTY_TEST, "Registering GPIO property tests");
535}
static meshx_err_t gpio_property_test_handler(int cmd_id, int argc, char **argv)
GPIO property test command handler.
Definition gpio_property_test.c:487
#define MESHX_LOGD(module_id, format,...)
Definition meshx_log.h:132
@ MODULE_ID_GPIO_PROPERTY_TEST
Definition module_id.h:46
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