1/*
2 * File: zero_crossing_types.h
3 *
4 * Code generated for Simulink model 'Blinky'.
5 *
6 * Model version : 1.145
7 * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019
8 * MBDT for IMXRT Series Version : Version 1.3.0 (R2019a-R2021b) 18-Apr-2022
9 * C/C++ source code generated on : Sat Nov 26 13:09:17 2022
10 *
11 * Target selection: ert.tlc
12 * Embedded hardware selection: ARM Compatible->ARM Cortex
13 * Code generation objective: Execution efficiency
14 * Validation result: All passed
15 */
16
17#ifndef ZERO_CROSSING_TYPES_H
18#define ZERO_CROSSING_TYPES_H
19#include "rtwtypes.h"
20
21/* Trigger directions: falling, either, and rising */
22typedef enum {
23 FALLING_ZERO_CROSSING = -1,
24 ANY_ZERO_CROSSING = 0,
25 RISING_ZERO_CROSSING = 1
26} ZCDirection;
27
28/* Previous state of a trigger signal */
29typedef uint8_T ZCSigState;
30
31/* Initial value of a trigger zero crossing signal */
32#define UNINITIALIZED_ZCSIG 0x03U
33#define NEG_ZCSIG 0x02U
34#define POS_ZCSIG 0x01U
35#define ZERO_ZCSIG 0x00U
36
37/* Current state of a trigger signal */
38typedef enum {
39 FALLING_ZCEVENT = -1,
40 NO_ZCEVENT = 0,
41 RISING_ZCEVENT = 1
42} ZCEventType;
43
44#endif /* ZERO_CROSSING_TYPES_H */
45
46/*
47 * File trailer for generated code.
48 *
49 * [EOF]
50 */
51