LCOV - code coverage report
Current view: top level - zephyr/drivers/stepper - stepper_fake.h Hit Total Coverage
Test: new.info Lines: 0 12 0.0 %
Date: 2024-10-22 03:18:24

          Line data    Source code
       1           0 : /*
       2             :  * Copyright (c) 2024 Fabian Blatz <fabianblatz@gmail.com>
       3             :  *
       4             :  * SPDX-License-Identifier: Apache-2.0
       5             :  */
       6             : 
       7             : #ifndef ZEPHYR_INCLUDE_DRIVERS_STEPPER_STEPPER_FAKE_H_
       8             : #define ZEPHYR_INCLUDE_DRIVERS_STEPPER_STEPPER_FAKE_H_
       9             : 
      10             : #include <zephyr/drivers/stepper.h>
      11             : #include <zephyr/fff.h>
      12             : 
      13             : #ifdef __cplusplus
      14             : extern "C" {
      15             : #endif
      16             : 
      17           0 : DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_enable, const struct device *, const bool);
      18             : 
      19           0 : DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_move, const struct device *, const int32_t);
      20             : 
      21           0 : DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_set_max_velocity, const struct device *, const uint32_t);
      22             : 
      23           0 : DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_set_micro_step_res, const struct device *,
      24             :                         const enum stepper_micro_step_resolution);
      25             : 
      26           0 : DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_get_micro_step_res, const struct device *,
      27             :                         enum stepper_micro_step_resolution *);
      28             : 
      29           0 : DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_set_actual_position, const struct device *,
      30             :                         const int32_t);
      31             : 
      32           0 : DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_get_actual_position, const struct device *, int32_t *);
      33             : 
      34           0 : DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_set_target_position, const struct device *,
      35             :                         const int32_t);
      36             : 
      37           0 : DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_is_moving, const struct device *, bool *);
      38             : 
      39           0 : DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_enable_constant_velocity_mode, const struct device *,
      40             :                         const enum stepper_direction, const uint32_t);
      41             : 
      42           0 : DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_set_event_callback, const struct device *,
      43             :                         stepper_event_callback_t, void *);
      44             : 
      45             : #ifdef __cplusplus
      46             : }
      47             : #endif
      48             : 
      49             : #endif /* ZEPHYR_INCLUDE_DRIVERS_STEPPER_STEPPER_FAKE_H_ */

Generated by: LCOV version 1.14