NNP STM Generic Remote Module git-main
Loading...
Searching...
No Matches
states.h File Reference
#include <applicfg.h>

Go to the source code of this file.

Classes

struct  s_state_communication
 

Typedefs

typedef enum enum_nodeState e_nodeState
 
typedef void(* mode_X_Manual_t) (CO_Data *)
 
typedef void(* mode_Y_Manual_t) (CO_Data *)
 
typedef void(* waiting_t) (CO_Data *)
 
typedef void(* stopped_t) (CO_Data *)
 
typedef void(* mode_Patient_Manual_t) (CO_Data *)
 
typedef void(* mode_Patient_Control_t) (CO_Data *)
 

Enumerations

enum  enum_nodeState {
  Hibernate = 0x00 , Waiting = 0x01 , Mode_X_Manual = 0x02 , Mode_Y_Manual = 0x03 ,
  Stopped = 0x04 , Mode_Patient_Control = 0x05 , BootCheckReset = 0x06 , Mode_Patient_Manual = 0x07 ,
  Mode_Produce_X_Manual = 0x08 , Mode_Record_X = 0x09 , Unknown_state = 0x0F
}
 

Functions

void _mode_X_Manual (CO_Data *d)
 Function that user app can overload.
 
void _mode_Y_Manual (CO_Data *d)
 Function that user app can overload.
 
void _waiting (CO_Data *d)
 Function that user app can overload.
 
void _stopped (CO_Data *d)
 Function that user app can overload.
 
void _mode_Patient_Manual (CO_Data *d)
 Function that user app can overload.
 
void _mode_Patient_Control (CO_Data *d)
 Function that user app can overload.
 
void _mode_Produce_X_Manual (CO_Data *d)
 
void canDispatch (CO_Data *d, Message *m)
 Called by driver/app when receiving messages.
 
e_nodeState getState (CO_Data *d)
 Returns the state of the node.
 
UNS8 setState (CO_Data *d, e_nodeState newState)
 Change the state of the node.
 
UNS8 getNodeId (CO_Data *d)
 Returns the nodId.
 
void setNodeId (CO_Data *d, UNS8 nodeId)
 Define the node ID. Initialize the object dictionary.
 

Detailed Description

Created on: Oct 9, 2024 Author: jenej

Definition in file states.h.

Typedef Documentation

◆ e_nodeState

typedef enum enum_nodeState e_nodeState

Definition at line 35 of file states.h.

◆ mode_Patient_Control_t

typedef void(* mode_Patient_Control_t) (CO_Data *)

Definition at line 54 of file states.h.

◆ mode_Patient_Manual_t

typedef void(* mode_Patient_Manual_t) (CO_Data *)

Definition at line 53 of file states.h.

◆ mode_X_Manual_t

typedef void(* mode_X_Manual_t) (CO_Data *)

Definition at line 49 of file states.h.

◆ mode_Y_Manual_t

typedef void(* mode_Y_Manual_t) (CO_Data *)

Definition at line 50 of file states.h.

◆ stopped_t

typedef void(* stopped_t) (CO_Data *)

Definition at line 52 of file states.h.

◆ waiting_t

typedef void(* waiting_t) (CO_Data *)

Definition at line 51 of file states.h.

Enumeration Type Documentation

◆ enum_nodeState

enum enum_nodeState

Definition at line 20 of file states.h.

Function Documentation

◆ canDispatch()

void canDispatch ( CO_Data * d,
Message * m )

Called by driver/app when receiving messages.

Parameters
*dPointer on a CAN object data structure
*mPointer on a CAN message structure

Definition at line 43 of file states.c.

Here is the call graph for this function: