master/fsm_mapping.c
changeset 758 8fa6f825eb7d
parent 660 582a90a34303
child 792 3778920f61e4
equal deleted inserted replaced
757:6210c4260899 758:8fa6f825eb7d
   136 {
   136 {
   137     return fsm->state == ec_fsm_mapping_state_end;
   137     return fsm->state == ec_fsm_mapping_state_end;
   138 }
   138 }
   139 
   139 
   140 /******************************************************************************
   140 /******************************************************************************
   141  * PDO mapping state machine
   141  * state functions
   142  *****************************************************************************/
   142  *****************************************************************************/
   143 
   143 
   144 /**
   144 /**
       
   145  * Start mapping configuration.
   145  */
   146  */
   146 
   147 
   147 void ec_fsm_mapping_state_start(
   148 void ec_fsm_mapping_state_start(
   148         ec_fsm_mapping_t *fsm /**< mapping state machine */
   149         ec_fsm_mapping_t *fsm /**< mapping state machine */
   149         )
   150         )
   153 }
   154 }
   154 
   155 
   155 /*****************************************************************************/
   156 /*****************************************************************************/
   156 
   157 
   157 /**
   158 /**
       
   159  * Process mapping of next sync manager.
   158  */
   160  */
   159 
   161 
   160 void ec_fsm_mapping_next_sync(
   162 void ec_fsm_mapping_next_sync(
   161         ec_fsm_mapping_t *fsm /**< mapping state machine */
   163         ec_fsm_mapping_t *fsm /**< mapping state machine */
   162         )
   164         )
   198 }
   200 }
   199 
   201 
   200 /*****************************************************************************/
   202 /*****************************************************************************/
   201 
   203 
   202 /**
   204 /**
       
   205  * Process mapping of next PDO.
   203  */
   206  */
   204 
   207 
   205 ec_pdo_t *ec_fsm_mapping_next_pdo(
   208 ec_pdo_t *ec_fsm_mapping_next_pdo(
   206         ec_fsm_mapping_t *fsm, /**< mapping state machine */
   209         ec_fsm_mapping_t *fsm, /**< mapping state machine */
   207         struct list_head *list /**< current PDO list item */
   210         struct list_head *list /**< current PDO list item */
   221 }
   224 }
   222 
   225 
   223 /*****************************************************************************/
   226 /*****************************************************************************/
   224 
   227 
   225 /**
   228 /**
       
   229  * Set the number of mapped PDOs to zero.
   226  */
   230  */
   227 
   231 
   228 void ec_fsm_mapping_state_zero_count(
   232 void ec_fsm_mapping_state_zero_count(
   229         ec_fsm_mapping_t *fsm /**< mapping state machine */
   233         ec_fsm_mapping_t *fsm /**< mapping state machine */
   230         )
   234         )
   266 }
   270 }
   267 
   271 
   268 /*****************************************************************************/
   272 /*****************************************************************************/
   269 
   273 
   270 /**
   274 /**
       
   275  * Add a PDO to the sync managers mapping.
   271  */
   276  */
   272 
   277 
   273 void ec_fsm_mapping_state_add_pdo(
   278 void ec_fsm_mapping_state_add_pdo(
   274         ec_fsm_mapping_t *fsm /**< mapping state machine */
   279         ec_fsm_mapping_t *fsm /**< mapping state machine */
   275         )
   280         )
   316 }
   321 }
   317 
   322 
   318 /*****************************************************************************/
   323 /*****************************************************************************/
   319 
   324 
   320 /**
   325 /**
       
   326  * Set the number of mapped PDOs.
   321  */
   327  */
   322 
   328 
   323 void ec_fsm_mapping_state_pdo_count(
   329 void ec_fsm_mapping_state_pdo_count(
   324         ec_fsm_mapping_t *fsm /**< mapping state machine */
   330         ec_fsm_mapping_t *fsm /**< mapping state machine */
   325         )
   331         )