/*
 * File: BSPR_MdulVoltCoord.h
 *
 * Code generated for Simulink model 'BSPR_MdulVoltCoord'.
 *
 * Model version                  : 1.966F
 * Simulink Coder version         : 8.11F (R2016b) 25-Aug-2016
 * C/C++ source code generated on : Sun Feb 24 16:04:54 2019
 *
 * Target selection: ert.tlc
 * Embedded hardware selection: Infineon->TriCore
 * Code generation objectives:
 *    1. MISRA C:2012 guidelines
 *    2. Execution efficiency
 * Validation result: Not run
 */

#ifndef RTW_HEADER_BSPR_MdulVoltCoord_h_
#define RTW_HEADER_BSPR_MdulVoltCoord_h_
#include <stddef.h>
#ifndef BSPR_MdulVoltCoord_COMMON_INCLUDES_
# define BSPR_MdulVoltCoord_COMMON_INCLUDES_
#include "rtwtypes.h"
#endif                                 /* BSPR_MdulVoltCoord_COMMON_INCLUDES_ */

#include "BSPR_MdulVoltCoord_types.h"

/* Includes for objects with custom storage classes. */
#include "BSPR_MdulVoltCalc_parameters.h"

/* Macros for accessing real-time model data structure */

/* user code (top of header file) */
#include "ASW_Interface.h"

/* Block states (auto storage) for system '<Root>' */
typedef struct {
  uint8_T is_active_c10_BSPR_MdulVoltCoor;/* '<S4>/MdulVoltSglProc' */
  uint8_T is_active_c1_BSPR_MdulVoltCoord;/* '<S3>/MdulVoltSglCoord' */
} DW_BSPR_MdulVoltCoord_T;

/* Block states (auto storage) */
extern DW_BSPR_MdulVoltCoord_T BSPR_MdulVoltCoord_DW;

/* Model entry point functions */
extern void BSPR_MdulVoltCoord_initialize(void);
extern void BSPR_MdulVoltCoord_step(void);

/* Exported data declaration */

/* Declaration for custom storage class: OutputSignal */
extern volatile uint8_T BSPR_cntModuSerNum;/* modul number in current battery package */
extern volatile real32_T BSPR_uMdulVoltAvrg;/* Calculated average module voltage */
extern volatile real32_T BSPR_uMdulVoltMax;/* Calculated max module voltage */
extern volatile real32_T BSPR_uMdulVoltMin;/* Calculated min module voltage */
extern volatile real32_T BSPR_uMdulVolt_A[16];/* Calculated modul voltage after coordinating */

/*-
 * The generated code includes comments that allow you to trace directly
 * back to the appropriate location in the model.  The basic format
 * is <system>/block_name, where system is the system number (uniquely
 * assigned by Simulink) and block_name is the name of the block.
 *
 * Use the MATLAB hilite_system command to trace the generated code back
 * to the model.  For example,
 *
 * hilite_system('<S3>')    - opens system 3
 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
 *
 * Here is the system hierarchy for this model
 *
 * '<Root>' : 'BSPR_MdulVoltCoord'
 * '<S1>'   : 'BSPR_MdulVoltCoord/BSPR_MdulVoltCoord'
 * '<S2>'   : 'BSPR_MdulVoltCoord/BSPR_MdulVoltCoord/MdulVoltSglCalc'
 * '<S3>'   : 'BSPR_MdulVoltCoord/BSPR_MdulVoltCoord/MdulVoltSglCoord'
 * '<S4>'   : 'BSPR_MdulVoltCoord/BSPR_MdulVoltCoord/MdulVoltSglProc'
 * '<S5>'   : 'BSPR_MdulVoltCoord/BSPR_MdulVoltCoord/MdulVoltSglCoord/MdulVoltSglCoord'
 * '<S6>'   : 'BSPR_MdulVoltCoord/BSPR_MdulVoltCoord/MdulVoltSglProc/MdulVoltSglProc'
 */
#endif                                 /* RTW_HEADER_BSPR_MdulVoltCoord_h_ */

/*
 * File trailer for generated code.
 *
 * [EOF]
 */
