nico@215:
nico@215:
nico@215: CanFestival: include/states.h File Reference
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: states.h File Reference
#include <applicfg.h>
nico@215: #include "data.h"
nico@215:
nico@215:
nico@215: Include dependency graph for states.h:
nico@215:
nico@215:
nico@215:
nico@215: This graph shows which files directly or indirectly include this file:
nico@215:
nico@215:
nico@215:
nico@215: Go to the source code of this file.
nico@215: |
nico@215:
Data Structures |
nico@215: struct | s_state_communication |
nico@215:
nico@215:
Typedefs |
etisserant@240: typedef enum enum_nodeState | e_nodeState |
etisserant@240:
etisserant@240: typedef void(*) | initialisation_t (void) |
etisserant@240:
etisserant@240: typedef void(*) | preOperational_t (void) |
etisserant@240:
etisserant@240: typedef void(*) | operational_t (void) |
etisserant@240:
etisserant@240: typedef void(*) | stopped_t (void) |
nico@215:
nico@215:
Enumerations |
etisserant@240: enum | enum_nodeState {
etisserant@240: Initialisation = 0x00,
etisserant@240: Disconnected = 0x01,
etisserant@240: Connecting = 0x02,
etisserant@240: Preparing = 0x02,
nico@215:
etisserant@240: Stopped = 0x04,
etisserant@240: Operational = 0x05,
etisserant@240: Pre_operational = 0x7F,
etisserant@240: Unknown_state = 0x0F
nico@215:
nico@215: } |
nico@215:
nico@215:
Functions |
etisserant@240: void | _initialisation (void) |
etisserant@240:
etisserant@240: void | _preOperational (void) |
etisserant@240:
etisserant@240: void | _operational (void) |
etisserant@240:
etisserant@240: void | _stopped (void) |
etisserant@240:
etisserant@240: void | canDispatch (CO_Data *d, Message *m) |
etisserant@240:
etisserant@240: e_nodeState | getState (CO_Data *d) |
etisserant@240:
etisserant@240: UNS8 | setState (CO_Data *d, e_nodeState newState) |
etisserant@240:
etisserant@240: UNS8 | getNodeId (CO_Data *d) |
etisserant@240:
etisserant@240: void | setNodeId (CO_Data *d, UNS8 nodeId) |
etisserant@240:
etisserant@240: void | initPreOperationalMode (CO_Data *d) |
nico@215:
nico@215:
nico@215:
Typedef Documentation
etisserant@240:
etisserant@240:
etisserant@240:
etisserant@240:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: Definition at line 46 of file states.h.
nico@215:
nico@215:
etisserant@240:
etisserant@240:
etisserant@240:
etisserant@240:
etisserant@240:
etisserant@240: typedef void(*) initialisation_t(void) |
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: Function that user app can overload
nico@215:
nico@215: Definition at line 61 of file states.h.
nico@215:
nico@215:
etisserant@240:
etisserant@240:
etisserant@240:
etisserant@240:
etisserant@240:
etisserant@240: typedef void(*) operational_t(void) |
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: Definition at line 63 of file states.h.
nico@215:
nico@215:
etisserant@240:
etisserant@240:
etisserant@240:
etisserant@240:
etisserant@240:
etisserant@240: typedef void(*) preOperational_t(void) |
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: Definition at line 62 of file states.h.
nico@215:
nico@215:
etisserant@240:
etisserant@240:
etisserant@240:
etisserant@240:
etisserant@240:
etisserant@240: typedef void(*) stopped_t(void) |
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: Definition at line 64 of file states.h.
nico@215:
nico@215:
nico@215:
Enumeration Type Documentation
etisserant@240:
etisserant@240:
etisserant@240:
etisserant@240:
etisserant@240:
etisserant@240: enum enum_nodeState |
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
- Enumerator:
-
nico@215:
etisserant@240: Initialisation |
etisserant@240: |
etisserant@240: Disconnected |
etisserant@240: |
etisserant@240: Connecting |
etisserant@240: |
etisserant@240: Preparing |
etisserant@240: |
etisserant@240: Stopped |
etisserant@240: |
etisserant@240: Operational |
etisserant@240: |
etisserant@240: Pre_operational |
etisserant@240: |
etisserant@240: Unknown_state |
nico@215: |
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: Definition at line 35 of file states.h.
nico@215:
nico@215:
nico@215:
Function Documentation
etisserant@240:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: void _initialisation |
nico@215: ( |
nico@215: void |
nico@215: |
nico@215: ) |
nico@215: |
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: Definition at line 285 of file states.c.
nico@215:
nico@215:
etisserant@240:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: void _operational |
nico@215: ( |
nico@215: void |
nico@215: |
nico@215: ) |
nico@215: |
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: Definition at line 287 of file states.c.
nico@215:
nico@215:
etisserant@240:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: void _preOperational |
nico@215: ( |
nico@215: void |
nico@215: |
nico@215: ) |
nico@215: |
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: Definition at line 286 of file states.c.
nico@215:
nico@215:
etisserant@240:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: void _stopped |
nico@215: ( |
nico@215: void |
nico@215: |
nico@215: ) |
nico@215: |
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: Definition at line 288 of file states.c.
nico@215:
nico@215:
etisserant@240:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: void canDispatch |
nico@215: ( |
nico@215: CO_Data * |
nico@215: d, |
nico@215:
nico@215:
nico@215: |
nico@215: |
nico@215: Message * |
nico@215: m | |
nico@215:
nico@215:
nico@215: |
nico@215: ) |
nico@215: | | |
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
- Parameters:
-
nico@215:
nico@215: | d | |
nico@215: | m | |
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: Definition at line 65 of file states.c.
nico@215:
etisserant@240: References Message::cob_id, s_state_communication::csHeartbeat, s_state_communication::csPDO, s_state_communication::csSDO, s_state_communication::csSYNC, struct_CO_Data::CurrentCommunicationState, struct_s_timer_entry::d, struct_CO_Data::iam_a_slave, NMT, NODE_GUARD, PDO1rx, PDO1tx, PDO2rx, PDO2tx, PDO3rx, PDO3tx, PDO4rx, PDO4tx, proceedNMTstateChange(), proceedNODE_GUARD(), proceedPDO(), proceedSDO(), proceedSYNC(), SDOrx, SDOtx, SYNC, and SHORT_CAN::w.
nico@215:
nico@215: Referenced by canReceiveLoop(), and main().
nico@215:
etisserant@240: Here is the call graph for this function:
etisserant@240:
nico@215:
nico@215:
nico@215:
etisserant@240:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: UNS8 getNodeId |
nico@215: ( |
nico@215: CO_Data * |
nico@215: d |
nico@215: ) |
nico@215: |
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
etisserant@240:
etisserant@240:
etisserant@240:
etisserant@240:
etisserant@240:
etisserant@240: e_nodeState getState |
nico@215: ( |
nico@215: CO_Data * |
nico@215: d |
nico@215: ) |
nico@215: |
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
etisserant@240:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: void initPreOperationalMode |
nico@215: ( |
nico@215: CO_Data * |
nico@215: d |
nico@215: ) |
nico@215: |
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: Some stuff to do when the node enter in pre-operational mode
nico@215:
nico@215:
etisserant@240:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: void setNodeId |
nico@215: ( |
nico@215: CO_Data * |
nico@215: d, |
nico@215:
nico@215:
nico@215: |
nico@215: |
nico@215: UNS8 |
nico@215: nodeId | |
nico@215:
nico@215:
nico@215: |
nico@215: ) |
nico@215: | | |
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
- Parameters:
-
nico@215:
nico@215: | d | |
nico@215: | nodeId | |
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: Definition at line 235 of file states.c.
nico@215:
etisserant@240: References struct_CO_Data::bDeviceNodeId, struct_s_timer_entry::d, struct_CO_Data::firstIndex, struct_CO_Data::lastIndex, struct_CO_Data::objdict, s_quick_index::PDO_RCV, s_quick_index::PDO_TRS, td_subindex::pObject, td_indextable::pSubindex, s_quick_index::SDO_SVR, UNS16, UNS32, and UNS8.
nico@215:
nico@215: Referenced by InitNodes(), initSensor(), and main().
nico@215:
nico@215:
etisserant@240:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215: UNS8 setState |
nico@215: ( |
nico@215: CO_Data * |
nico@215: d, |
nico@215:
nico@215:
nico@215: |
nico@215: |
etisserant@240: e_nodeState |
nico@215: newState | |
nico@215:
nico@215:
nico@215: |
nico@215: ) |
nico@215: | | |
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
nico@215:
- Parameters:
-
nico@215:
nico@215: | d | |
nico@215: | newState | |
nico@215:
nico@215:
nico@215:
- Returns:
nico@215:
nico@215:
nico@215: Definition at line 138 of file states.c.
nico@215:
etisserant@240: References struct_s_timer_entry::d, decompo_dcf(), struct_CO_Data::iam_a_slave, struct_CO_Data::initialisation, Initialisation, struct_CO_Data::nodeState, OD_SUCCESSFUL, struct_CO_Data::operational, Operational, Pre_operational, struct_CO_Data::preOperational, ptrTable, struct_CO_Data::scanIndexOD, struct_CO_Data::stopped, Stopped, switchCommunicationState(), UNS16, and UNS32.
nico@215:
nico@215: Referenced by InitNodes(), main(), and proceedNMTstateChange().
nico@215:
etisserant@240: Here is the call graph for this function:
etisserant@240:
nico@215:
nico@215:
nico@215:
etisserant@240:
Generated on Mon Jul 2 19:10:34 2007 for CanFestival by
nico@215:
nico@215: 1.5.1
nico@215:
nico@215: