include/nmtSlave.h
changeset 561 f9be4262c68d
parent 529 c171e11707c5
equal deleted inserted replaced
560:0bb927393dd0 561:f9be4262c68d
    30 
    30 
    31 #include <applicfg.h>
    31 #include <applicfg.h>
    32 #include "data.h"
    32 #include "data.h"
    33 
    33 
    34 /** 
    34 /** 
    35  * @brief Threat the reception of a NMT message from the master
    35  * @brief Threat the reception of a NMT message from the master.
    36  * bus_id is hardware dependant
    36  * @param *d Pointer to the CAN data structure
    37  * @param *d Pointer on the CAN data structure
    37  * @param *m Pointer to the message received
    38  * @param *m Pointer on the message received
       
    39  * @return 
    38  * @return 
    40  *  -  0 if OK 
    39  *  -  0 if OK 
    41  *  - -1 if the slave is not allowed, by its state, to receive the message
    40  *  - -1 if the slave is not allowed, by its state, to receive the message
    42  */
    41  */
    43 void proceedNMTstateChange (CO_Data* d, Message * m);
    42 void proceedNMTstateChange (CO_Data* d, Message * m);
    44 
    43 
    45 /** 
    44 /** 
    46  * @brief Transmit the boot-Up frame when the slave is moving from initialization
    45  * @brief Transmit the boot-Up frame when the slave is moving from initialization
    47  * state to pre_operational state.
    46  * state to pre_operational state.
    48  * bus_id is hardware dependant
       
    49  * @param *d Pointer on the CAN data structure
    47  * @param *d Pointer on the CAN data structure
    50  * @return canSend(bus_id,&m)
    48  * @return canSend(bus_id,&m)
    51  */
    49  */
    52 UNS8 slaveSendBootUp (CO_Data* d);
    50 UNS8 slaveSendBootUp (CO_Data* d);
    53 
    51