void Bikair_MBD_Controller_host_InitializeDataMapInfo (
Bikair_MBD_Controller_host_DataMapInfo_T * dataMap , const char * path ) {
rtwCAPI_SetVersion ( dataMap -> mmi , 1 ) ; rtwCAPI_SetStaticMap ( dataMap ->
mmi , & mmiStatic ) ; rtwCAPI_SetDataAddressMap ( dataMap -> mmi , NULL ) ;
rtwCAPI_SetVarDimsAddressMap ( dataMap -> mmi , NULL ) ; rtwCAPI_SetPath (
dataMap -> mmi , path ) ; rtwCAPI_SetFullPath ( dataMap -> mmi , NULL ) ;
rtwCAPI_SetChildMMIArray ( dataMap -> mmi , ( NULL ) ) ;
rtwCAPI_SetChildMMIArrayLen ( dataMap -> mmi , 0 ) ; }
void IntelligentFlightSystem_host_InitializeDataMapInfo (
IntelligentFlightSystem_host_DataMapInfo_T * dataMap , const char * path ) {
rtwCAPI_SetVersion ( dataMap -> mmi , 1 ) ; rtwCAPI_SetStaticMap ( dataMap ->
mmi , & mmiStatic ) ; rtwCAPI_SetDataAddressMap ( dataMap -> mmi , NULL ) ;
rtwCAPI_SetVarDimsAddressMap ( dataMap -> mmi , NULL ) ; rtwCAPI_SetPath (
dataMap -> mmi , path ) ; rtwCAPI_SetFullPath ( dataMap -> mmi , NULL ) ;
rtwCAPI_SetChildMMIArray ( dataMap -> mmi , ( NULL ) ) ;
rtwCAPI_SetChildMMIArrayLen ( dataMap -> mmi , 0 ) ; }
Ejemplo n.º 3
0
void Deadbeat_CUK_InitializeDataMapInfo ( SimStruct * const rtS ) {
rtwCAPI_SetVersion ( ( * rt_dataMapInfoPtr ) . mmi , 1 ) ;
rtwCAPI_SetStaticMap ( ( * rt_dataMapInfoPtr ) . mmi , & mmiStatic ) ;
rtwCAPI_SetLoggingStaticMap ( ( * rt_dataMapInfoPtr ) . mmi , ( NULL ) ) ;
rtwCAPI_SetDataAddressMap ( ( * rt_dataMapInfoPtr ) . mmi , rtDataAddrMap ) ;
rtwCAPI_SetVarDimsAddressMap ( ( * rt_dataMapInfoPtr ) . mmi ,
rtVarDimsAddrMap ) ; rtwCAPI_SetInstanceLoggingInfo ( ( * rt_dataMapInfoPtr )
. mmi , ( NULL ) ) ; rtwCAPI_SetChildMMIArray ( ( * rt_dataMapInfoPtr ) . mmi
, ( NULL ) ) ; rtwCAPI_SetChildMMIArrayLen ( ( * rt_dataMapInfoPtr ) . mmi ,
0 ) ; }
  void testmodel_1109_host_InitializeDataMapInfo
    (testmodel_1109_host_DataMapInfo_T *dataMap, const char *path)
  {
    /* Set C-API version */
    rtwCAPI_SetVersion(dataMap->mmi, 1);

    /* Cache static C-API data into the Real-time Model Data structure */
    rtwCAPI_SetStaticMap(dataMap->mmi, &mmiStatic);

    /* host data address map is NULL */
    rtwCAPI_SetDataAddressMap(dataMap->mmi, NULL);

    /* host vardims address map is NULL */
    rtwCAPI_SetVarDimsAddressMap(dataMap->mmi, NULL);

    /* Set Instance specific path */
    rtwCAPI_SetPath(dataMap->mmi, path);
    rtwCAPI_SetFullPath(dataMap->mmi, NULL);

    /* Set reference to submodels */
    rtwCAPI_SetChildMMIArray(dataMap->mmi, (NULL));
    rtwCAPI_SetChildMMIArrayLen(dataMap->mmi, 0);
  }
void EV_Pwr_Manager_InitializeDataMapInfo ( dk515r3a3r * const ez1amjfhle ,
dtjshe2cwg * localDW , void * sysRanPtr , int contextTid ) {
rtwCAPI_SetVersion ( ez1amjfhle -> DataMapInfo . mmi , 1 ) ;
rtwCAPI_SetStaticMap ( ez1amjfhle -> DataMapInfo . mmi , & mmiStatic ) ;
rtwCAPI_SetLoggingStaticMap ( ez1amjfhle -> DataMapInfo . mmi , &
mmiStaticInfoLogging ) ; EV_Pwr_Manager_InitializeDataAddr ( ez1amjfhle ->
DataMapInfo . dataAddress , localDW ) ; rtwCAPI_SetDataAddressMap (
ez1amjfhle -> DataMapInfo . mmi , ez1amjfhle -> DataMapInfo . dataAddress ) ;
EV_Pwr_Manager_InitializeVarDimsAddr ( ez1amjfhle -> DataMapInfo .
vardimsAddress ) ; rtwCAPI_SetVarDimsAddressMap ( ez1amjfhle -> DataMapInfo .
mmi , ez1amjfhle -> DataMapInfo . vardimsAddress ) ; rtwCAPI_SetPath (
ez1amjfhle -> DataMapInfo . mmi , ( NULL ) ) ; rtwCAPI_SetFullPath (
ez1amjfhle -> DataMapInfo . mmi , ( NULL ) ) ; rtwCAPI_SetInstanceLoggingInfo
( ez1amjfhle -> DataMapInfo . mmi , & ez1amjfhle -> DataMapInfo .
mmiLogInstanceInfo ) ; rtwCAPI_SetChildMMIArray ( ez1amjfhle -> DataMapInfo .
mmi , ( NULL ) ) ; rtwCAPI_SetChildMMIArrayLen ( ez1amjfhle -> DataMapInfo .
mmi , 0 ) ; EV_Pwr_Manager_InitializeSystemRan ( ez1amjfhle , ez1amjfhle ->
DataMapInfo . systemRan , localDW , ez1amjfhle -> DataMapInfo . systemTid ,
sysRanPtr , contextTid ) ; rtwCAPI_SetSystemRan ( ez1amjfhle -> DataMapInfo .
mmi , ez1amjfhle -> DataMapInfo . systemRan ) ; rtwCAPI_SetSystemTid (
ez1amjfhle -> DataMapInfo . mmi , ez1amjfhle -> DataMapInfo . systemTid ) ;
rtwCAPI_SetGlobalTIDMap ( ez1amjfhle -> DataMapInfo . mmi , & c5bw2jg1mz [ 0
] ) ; }
void Bikair_MBD_Controller_InitializeDataMapInfo ( cfnrecmf1m * const
iuns1uhuvx , void * sysRanPtr , int contextTid ) { rtwCAPI_SetVersion (
iuns1uhuvx -> DataMapInfo . mmi , 1 ) ; rtwCAPI_SetStaticMap ( iuns1uhuvx ->
DataMapInfo . mmi , & mmiStatic ) ; rtwCAPI_SetLoggingStaticMap ( iuns1uhuvx
-> DataMapInfo . mmi , & mmiStaticInfoLogging ) ;
Bikair_MBD_Controller_InitializeDataAddr ( iuns1uhuvx -> DataMapInfo .
dataAddress ) ; rtwCAPI_SetDataAddressMap ( iuns1uhuvx -> DataMapInfo . mmi ,
iuns1uhuvx -> DataMapInfo . dataAddress ) ;
Bikair_MBD_Controller_InitializeVarDimsAddr ( iuns1uhuvx -> DataMapInfo .
vardimsAddress ) ; rtwCAPI_SetVarDimsAddressMap ( iuns1uhuvx -> DataMapInfo .
mmi , iuns1uhuvx -> DataMapInfo . vardimsAddress ) ; rtwCAPI_SetPath (
iuns1uhuvx -> DataMapInfo . mmi , ( NULL ) ) ; rtwCAPI_SetFullPath (
iuns1uhuvx -> DataMapInfo . mmi , ( NULL ) ) ; rtwCAPI_SetInstanceLoggingInfo
( iuns1uhuvx -> DataMapInfo . mmi , & iuns1uhuvx -> DataMapInfo .
mmiLogInstanceInfo ) ; rtwCAPI_SetChildMMIArray ( iuns1uhuvx -> DataMapInfo .
mmi , ( NULL ) ) ; rtwCAPI_SetChildMMIArrayLen ( iuns1uhuvx -> DataMapInfo .
mmi , 0 ) ; Bikair_MBD_Controller_InitializeSystemRan ( iuns1uhuvx ,
iuns1uhuvx -> DataMapInfo . systemRan , iuns1uhuvx -> DataMapInfo . systemTid
, sysRanPtr , contextTid ) ; rtwCAPI_SetSystemRan ( iuns1uhuvx -> DataMapInfo
. mmi , iuns1uhuvx -> DataMapInfo . systemRan ) ; rtwCAPI_SetSystemTid (
iuns1uhuvx -> DataMapInfo . mmi , iuns1uhuvx -> DataMapInfo . systemTid ) ;
rtwCAPI_SetGlobalTIDMap ( iuns1uhuvx -> DataMapInfo . mmi , & ocdvaaq32b [ 0
] ) ; }
void IntelligentFlightSystem_InitializeDataMapInfo ( obtbqy5wje * const
kbrymlnnzk , hw45gft1pc * localDW , void * sysRanPtr , int contextTid ) {
rtwCAPI_SetVersion ( kbrymlnnzk -> DataMapInfo . mmi , 1 ) ;
rtwCAPI_SetStaticMap ( kbrymlnnzk -> DataMapInfo . mmi , & mmiStatic ) ;
rtwCAPI_SetLoggingStaticMap ( kbrymlnnzk -> DataMapInfo . mmi , &
mmiStaticInfoLogging ) ; IntelligentFlightSystem_InitializeDataAddr (
kbrymlnnzk -> DataMapInfo . dataAddress , localDW ) ;
rtwCAPI_SetDataAddressMap ( kbrymlnnzk -> DataMapInfo . mmi , kbrymlnnzk ->
DataMapInfo . dataAddress ) ; IntelligentFlightSystem_InitializeVarDimsAddr (
kbrymlnnzk -> DataMapInfo . vardimsAddress ) ; rtwCAPI_SetVarDimsAddressMap (
kbrymlnnzk -> DataMapInfo . mmi , kbrymlnnzk -> DataMapInfo . vardimsAddress
) ; rtwCAPI_SetPath ( kbrymlnnzk -> DataMapInfo . mmi , ( NULL ) ) ;
rtwCAPI_SetFullPath ( kbrymlnnzk -> DataMapInfo . mmi , ( NULL ) ) ;
rtwCAPI_SetInstanceLoggingInfo ( kbrymlnnzk -> DataMapInfo . mmi , &
kbrymlnnzk -> DataMapInfo . mmiLogInstanceInfo ) ; rtwCAPI_SetChildMMIArray (
kbrymlnnzk -> DataMapInfo . mmi , ( NULL ) ) ; rtwCAPI_SetChildMMIArrayLen (
kbrymlnnzk -> DataMapInfo . mmi , 0 ) ;
IntelligentFlightSystem_InitializeSystemRan ( kbrymlnnzk , kbrymlnnzk ->
DataMapInfo . systemRan , localDW , kbrymlnnzk -> DataMapInfo . systemTid ,
sysRanPtr , contextTid ) ; rtwCAPI_SetSystemRan ( kbrymlnnzk -> DataMapInfo .
mmi , kbrymlnnzk -> DataMapInfo . systemRan ) ; rtwCAPI_SetSystemTid (
kbrymlnnzk -> DataMapInfo . mmi , kbrymlnnzk -> DataMapInfo . systemTid ) ;
rtwCAPI_SetGlobalTIDMap ( kbrymlnnzk -> DataMapInfo . mmi , & cvcjuobuj3 [ 0
] ) ; }