NNP STM Generic Remote Module git-main
Loading...
Searching...
No Matches
lss.h File Reference

Go to the source code of this file.

Classes

struct  struct_lss_transfer
 

Macros

#define SLSS_ADRESS   0x7E4
 
#define MLSS_ADRESS   0x7E5
 
#define SDELAY_OFF   0
 
#define SDELAY_FIRST   1
 
#define SDELAY_SECOND   2
 
#define LSS_WAITING_MODE   0
 
#define LSS_CONFIGURATION_MODE   1
 
#define LSS_SM_GLOBAL   4
 
#define LSS_SM_SELECTIVE_VENDOR   64
 
#define LSS_SM_SELECTIVE_PRODUCT   65
 
#define LSS_SM_SELECTIVE_REVISION   66
 
#define LSS_SM_SELECTIVE_SERIAL   67
 
#define LSS_SM_SELECTIVE_RESP   68
 
#define LSS_CONF_NODE_ID   17
 
#define LSS_CONF_BIT_TIMING   19
 
#define LSS_CONF_ACT_BIT_TIMING   21
 
#define LSS_CONF_STORE   23
 
#define LSS_INQ_VENDOR_ID   90
 
#define LSS_INQ_PRODUCT_CODE   91
 
#define LSS_INQ_REV_NUMBER   92
 
#define LSS_INQ_SERIAL_NUMBER   93
 
#define LSS_INQ_NODE_ID   94
 
#define LSS_IDENT_REMOTE_VENDOR   70
 
#define LSS_IDENT_REMOTE_PRODUCT   71
 
#define LSS_IDENT_REMOTE_REV_LOW   72
 
#define LSS_IDENT_REMOTE_REV_HIGH   73
 
#define LSS_IDENT_REMOTE_SERIAL_LOW   74
 
#define LSS_IDENT_REMOTE_SERIAL_HIGH   75
 
#define LSS_IDENT_REMOTE_NON_CONF   76
 
#define LSS_IDENT_SLAVE   79
 
#define LSS_IDENT_NON_CONF_SLAVE   80
 
#define LSS_IDENT_FASTSCAN   81
 
#define LSS_FS_RESET   0
 
#define LSS_FS_PROCESSING   1
 
#define LSS_FS_CONFIRMATION   2
 

Typedefs

typedef void(* LSSCallback_t) (CO_Data *d, UNS8 command)
 
typedef void(* lss_StoreConfiguration_t) (CO_Data *d, UNS8 *, UNS8 *)
 
typedef UNS8 lss_transfer_t
 

Functions

void startLSS (CO_Data *d)
 
void stopLSS (CO_Data *d)
 
UNS8 sendLSS (CO_Data *d, UNS8 command, void *dat1, void *dat2)
 
UNS8 proceedLSS_Master (CO_Data *d, Message *m)
 
UNS8 proceedLSS_Slave (CO_Data *d, Message *m)
 
UNS8 configNetworkNode (CO_Data *d, UNS8 command, void *dat1, void *dat2, LSSCallback_t Callback)
 
UNS8 getConfigResultNetworkNode (CO_Data *d, UNS8 command, UNS32 *dat1, UNS8 *dat2)
 

Detailed Description

Created on: Oct 14, 2024 Author: jenej

Definition in file lss.h.

Macro Definition Documentation

◆ LSS_CONF_ACT_BIT_TIMING

#define LSS_CONF_ACT_BIT_TIMING   21

Definition at line 31 of file lss.h.

◆ LSS_CONF_BIT_TIMING

#define LSS_CONF_BIT_TIMING   19

Definition at line 30 of file lss.h.

◆ LSS_CONF_NODE_ID

#define LSS_CONF_NODE_ID   17

Definition at line 29 of file lss.h.

◆ LSS_CONF_STORE

#define LSS_CONF_STORE   23

Definition at line 32 of file lss.h.

◆ LSS_CONFIGURATION_MODE

#define LSS_CONFIGURATION_MODE   1

Definition at line 19 of file lss.h.

◆ LSS_FS_CONFIRMATION

#define LSS_FS_CONFIRMATION   2

Definition at line 54 of file lss.h.

◆ LSS_FS_PROCESSING

#define LSS_FS_PROCESSING   1

Definition at line 53 of file lss.h.

◆ LSS_FS_RESET

#define LSS_FS_RESET   0

Definition at line 52 of file lss.h.

◆ LSS_IDENT_FASTSCAN

#define LSS_IDENT_FASTSCAN   81

Definition at line 49 of file lss.h.

◆ LSS_IDENT_NON_CONF_SLAVE

#define LSS_IDENT_NON_CONF_SLAVE   80

Definition at line 48 of file lss.h.

◆ LSS_IDENT_REMOTE_NON_CONF

#define LSS_IDENT_REMOTE_NON_CONF   76

Definition at line 46 of file lss.h.

◆ LSS_IDENT_REMOTE_PRODUCT

#define LSS_IDENT_REMOTE_PRODUCT   71

Definition at line 41 of file lss.h.

◆ LSS_IDENT_REMOTE_REV_HIGH

#define LSS_IDENT_REMOTE_REV_HIGH   73

Definition at line 43 of file lss.h.

◆ LSS_IDENT_REMOTE_REV_LOW

#define LSS_IDENT_REMOTE_REV_LOW   72

Definition at line 42 of file lss.h.

◆ LSS_IDENT_REMOTE_SERIAL_HIGH

#define LSS_IDENT_REMOTE_SERIAL_HIGH   75

Definition at line 45 of file lss.h.

◆ LSS_IDENT_REMOTE_SERIAL_LOW

#define LSS_IDENT_REMOTE_SERIAL_LOW   74

Definition at line 44 of file lss.h.

◆ LSS_IDENT_REMOTE_VENDOR

#define LSS_IDENT_REMOTE_VENDOR   70

Definition at line 40 of file lss.h.

◆ LSS_IDENT_SLAVE

#define LSS_IDENT_SLAVE   79

Definition at line 47 of file lss.h.

◆ LSS_INQ_NODE_ID

#define LSS_INQ_NODE_ID   94

Definition at line 38 of file lss.h.

◆ LSS_INQ_PRODUCT_CODE

#define LSS_INQ_PRODUCT_CODE   91

Definition at line 35 of file lss.h.

◆ LSS_INQ_REV_NUMBER

#define LSS_INQ_REV_NUMBER   92

Definition at line 36 of file lss.h.

◆ LSS_INQ_SERIAL_NUMBER

#define LSS_INQ_SERIAL_NUMBER   93

Definition at line 37 of file lss.h.

◆ LSS_INQ_VENDOR_ID

#define LSS_INQ_VENDOR_ID   90

Definition at line 34 of file lss.h.

◆ LSS_SM_GLOBAL

#define LSS_SM_GLOBAL   4

Definition at line 22 of file lss.h.

◆ LSS_SM_SELECTIVE_PRODUCT

#define LSS_SM_SELECTIVE_PRODUCT   65

Definition at line 24 of file lss.h.

◆ LSS_SM_SELECTIVE_RESP

#define LSS_SM_SELECTIVE_RESP   68

Definition at line 27 of file lss.h.

◆ LSS_SM_SELECTIVE_REVISION

#define LSS_SM_SELECTIVE_REVISION   66

Definition at line 25 of file lss.h.

◆ LSS_SM_SELECTIVE_SERIAL

#define LSS_SM_SELECTIVE_SERIAL   67

Definition at line 26 of file lss.h.

◆ LSS_SM_SELECTIVE_VENDOR

#define LSS_SM_SELECTIVE_VENDOR   64

Definition at line 23 of file lss.h.

◆ LSS_WAITING_MODE

#define LSS_WAITING_MODE   0

Definition at line 18 of file lss.h.

◆ MLSS_ADRESS

#define MLSS_ADRESS   0x7E5

Definition at line 12 of file lss.h.

◆ SDELAY_FIRST

#define SDELAY_FIRST   1

Definition at line 15 of file lss.h.

◆ SDELAY_OFF

#define SDELAY_OFF   0

Definition at line 14 of file lss.h.

◆ SDELAY_SECOND

#define SDELAY_SECOND   2

Definition at line 16 of file lss.h.

◆ SLSS_ADRESS

#define SLSS_ADRESS   0x7E4

Definition at line 11 of file lss.h.

Typedef Documentation

◆ lss_StoreConfiguration_t

typedef void(* lss_StoreConfiguration_t) (CO_Data *d, UNS8 *, UNS8 *)

Definition at line 59 of file lss.h.

◆ lss_transfer_t

typedef UNS8 lss_transfer_t

Definition at line 137 of file lss.h.

◆ LSSCallback_t

typedef void(* LSSCallback_t) (CO_Data *d, UNS8 command)

Definition at line 57 of file lss.h.