examples/gene_SYNC_HCS12/objdict.h
author etisserant
Fri, 06 Apr 2007 16:49:28 +0200
changeset 149 fe50ada8020b
parent 80 37354e408645
child 172 0248c2b148bb
permissions -rw-r--r--
Changes in the API:
- No more mandatory callbacks declared for each node anymore
heartbeatError
SDOtimeoutError
initialisation
preOperational
operational
stopped
post_sync
post_TPDO
canSend

- Fill function ptr to declare callbacks
CO_Data.heartbeatError
CO_Data.SDOtimeoutError
CO_Data.initialisation
CO_Data.preOperational
CO_Data.operational
CO_Data.stopped
CO_Data.post_sync
CO_Data.post_TPDO

- CanClose now takes CO_Data* as parameter
- canSend is provided to the stack directly by OS interface, no specific callback.
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     1
54
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
     2
/* File generated by gen_cfile.py. Should not be modified. */
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
     3
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     4
#include "data.h"
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     5
80
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
     6
/* Prototypes of function provided by object dictionnary */
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
     7
UNS32 gene_SYNC_valueRangeTest (UNS8 typeValue, void * value);
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
     8
const indextable * gene_SYNC_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks);
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
     9
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
    10
/* prototypes of function to be filled by app. */
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    11
void gene_SYNC_SDOtimeoutError(UNS8 line);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    12
void gene_SYNC_heartbeatError(UNS8);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    13
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    14
UNS8 gene_SYNC_canSend(Message *);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    15
61
813ffdfbffb2 some improvements
frdupin
parents: 54
diff changeset
    16
void gene_SYNC_initialisation(void);
813ffdfbffb2 some improvements
frdupin
parents: 54
diff changeset
    17
void gene_SYNC_preOperational(void);
813ffdfbffb2 some improvements
frdupin
parents: 54
diff changeset
    18
void gene_SYNC_operational(void);
813ffdfbffb2 some improvements
frdupin
parents: 54
diff changeset
    19
void gene_SYNC_stopped(void);
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    20
61
813ffdfbffb2 some improvements
frdupin
parents: 54
diff changeset
    21
void gene_SYNC_post_sync(void);
813ffdfbffb2 some improvements
frdupin
parents: 54
diff changeset
    22
void gene_SYNC_post_TPDO(void);
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    23
80
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
    24
/* Master node data struct */
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    25
extern CO_Data gene_SYNC_Data;
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    26
80
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
    27
extern UNS16 acceptanceFilter1;		/* Mapped at index 0x2015, subindex 0x00*/
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
    28
extern UNS16 acceptanceFilter2;		/* Mapped at index 0x2016, subindex 0x00*/
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
    29
extern UNS16 acceptanceFilter3;		/* Mapped at index 0x2017, subindex 0x00*/
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
    30
extern UNS16 acceptanceFilter4;		/* Mapped at index 0x2018, subindex 0x00*/
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
    31
extern UNS16 mask1;		/* Mapped at index 0x2019, subindex 0x00*/
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
    32
extern UNS16 mask2;		/* Mapped at index 0x2020, subindex 0x00*/
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
    33
extern UNS16 mask3;		/* Mapped at index 0x2021, subindex 0x00*/
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
    34
extern UNS16 mask4;		/* Mapped at index 0x2022, subindex 0x00*/
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
    35
extern UNS8 applyDownloadedFilters;		/* Mapped at index 0x2023, subindex 0x00*/