include/lss.h
author oremeq
Fri, 12 May 2006 22:14:03 +0200
changeset 3 d9cf34cd6823
parent 0 4472ee7c6c3e
permissions -rw-r--r--
ADDED LED to TESTMASTERSLAVE. It looks nice!
Some code for the NVRAM support
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     1
#if !defined(_LSS_H_)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     2
#define _LSS_H_
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     3
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     4
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     5
void lss_SwitchModeGlobal(CO_Data *d, UNS32 mode);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     6
void lss_SwitchModeSelective(CO_Data *d, UNS32 *LSSaddr);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     7
void lss_ConfigureNode_ID(CO_Data *d, UNS32 node_id);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     8
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     9
void lss_ConfigureBitTimingParameters(CO_Data *d, 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    10
                                      UNS32 table_selector, 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    11
                                      UNS32 table_index);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    12
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    13
void lss_ActivateBitTimingParameters_master(CO_Data *d, UNS16 switch_delay);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    14
void lss_ActivateBitTimingParameters_slave(UNS8 data1, UNS8 data2);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    15
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    16
void lss_StoreConfiguredParameters(CO_Data *d);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    17
UNS32 lss_InquireLSSAddress(CO_Data *d, UNS32 *LSSaddr);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    18
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    19
void lss_IdentifyRemoteSlaves(CO_Data *d, 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    20
                              UNS32 vendor_id,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    21
                              UNS32 product_code,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    22
                              UNS32 rev_low,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    23
                              UNS32 rev_high,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    24
                              UNS32 serial_low,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    25
                              UNS32 serial_high);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    26
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    27
UNS32 lss_validate_address(CO_Data *d);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    28
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    29
void lss_IdentifySlave(CO_Data *d);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    30
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    31
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    32
#endif
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    33