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_unit_test.h File Reference

Header for GPIO unit tests. More...

#include "meshx_err.h"

Go to the source code of this file.

Functions

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

Detailed Description

Header for GPIO unit tests.

This file declares the GPIO unit test functions and registration.

Validates: Requirements 10.1-10.4

These unit tests validate GPIO API functions with:

  • Valid and invalid inputs
  • Error conditions and recovery strategies
  • Function-based API with various argument vectors
Author
MeshX Team
Date
2024

Function Documentation

◆ register_gpio_unit_tests()

meshx_err_t register_gpio_unit_tests ( void )

Register GPIO unit tests with unit test framework.

Returns
meshx_err_t Registration result
1010{
1011 MESHX_LOGD(MODULE_ID_GPIO_UNIT_TEST, "Registering GPIO unit tests");
1012 /* Register under both IDs for compatibility with documentation (16) and internal organization (17) */
1015}
static meshx_err_t gpio_unit_test_handler(int cmd_id, int argc, char **argv)
GPIO unit test command handler.
Definition gpio_unit_test.c:968
#define MESHX_LOGD(module_id, format,...)
Definition meshx_log.h:132
@ MODULE_ID_COMPONENT_MESHX_GPIO
Definition module_id.h:44
@ MODULE_ID_GPIO_UNIT_TEST
Definition module_id.h:45
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