master/fsm.h
changeset 251 c1d0b63a9302
parent 246 0bf7c769de06
child 260 5fe7df7f2433
equal deleted inserted replaced
250:440ae5f6d2c3 251:c1d0b63a9302
    74     uint16_t slave_cat_words; /**< number of words of current category */
    74     uint16_t slave_cat_words; /**< number of words of current category */
    75 
    75 
    76     void (*sii_state)(ec_fsm_t *); /**< SII state function */
    76     void (*sii_state)(ec_fsm_t *); /**< SII state function */
    77     uint16_t sii_offset; /**< input: offset in SII */
    77     uint16_t sii_offset; /**< input: offset in SII */
    78     uint32_t sii_result; /**< output: read SII value (32bit) */
    78     uint32_t sii_result; /**< output: read SII value (32bit) */
       
    79 
       
    80     void (*change_state)(ec_fsm_t *); /**< slave state change state function */
       
    81     uint8_t change_new; /**< input: new state */
    79 };
    82 };
    80 
    83 
    81 /*****************************************************************************/
    84 /*****************************************************************************/
    82 
    85 
    83 int ec_fsm_init(ec_fsm_t *, ec_master_t *);
    86 int ec_fsm_init(ec_fsm_t *, ec_master_t *);
    84 void ec_fsm_clear(ec_fsm_t *);
    87 void ec_fsm_clear(ec_fsm_t *);
    85 void ec_fsm_reset(ec_fsm_t *);
    88 void ec_fsm_reset(ec_fsm_t *);
    86 void ec_fsm_execute(ec_fsm_t *);
    89 void ec_fsm_execute(ec_fsm_t *);
    87 int ec_fsm_idle(const ec_fsm_t *);
       
    88 
    90 
    89 /*****************************************************************************/
    91 /*****************************************************************************/
    90 
    92 
    91 #endif
    93 #endif