examples/gene_SYNC_HCS12/objdict.h
author etisserant
Mon, 02 Jul 2007 18:22:58 +0200
changeset 236 905677ed00f3
parent 172 0248c2b148bb
child 378 d2abf6c8c27b
permissions -rw-r--r--
Full preliminary implementation of TPDO transmit type:
- SYNC (N) (1-240)
- RTR only + SYNC (252)
- RTR only (253)
- EVENT, with timer and inhibit time (254 and 255)

User app have to call sendPDOevent(d) to eventually signal mapped data changes.
Callbacks added to 0x140N, TPDO comm parameters for on the fly timers values change.
TestMasterSlave updated.
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_heartbeatError(UNS8);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    12
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    13
UNS8 gene_SYNC_canSend(Message *);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    14
61
813ffdfbffb2 some improvements
frdupin
parents: 54
diff changeset
    15
void gene_SYNC_initialisation(void);
813ffdfbffb2 some improvements
frdupin
parents: 54
diff changeset
    16
void gene_SYNC_preOperational(void);
813ffdfbffb2 some improvements
frdupin
parents: 54
diff changeset
    17
void gene_SYNC_operational(void);
813ffdfbffb2 some improvements
frdupin
parents: 54
diff changeset
    18
void gene_SYNC_stopped(void);
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    19
61
813ffdfbffb2 some improvements
frdupin
parents: 54
diff changeset
    20
void gene_SYNC_post_sync(void);
813ffdfbffb2 some improvements
frdupin
parents: 54
diff changeset
    21
void gene_SYNC_post_TPDO(void);
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    22
80
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
    23
/* Master node data struct */
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    24
extern CO_Data gene_SYNC_Data;
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    25
80
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
    26
extern UNS16 acceptanceFilter1;		/* Mapped at index 0x2015, subindex 0x00*/
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
    27
extern UNS16 acceptanceFilter2;		/* Mapped at index 0x2016, subindex 0x00*/
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
    28
extern UNS16 acceptanceFilter3;		/* Mapped at index 0x2017, subindex 0x00*/
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
    29
extern UNS16 acceptanceFilter4;		/* Mapped at index 0x2018, subindex 0x00*/
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
    30
extern UNS16 mask1;		/* Mapped at index 0x2019, subindex 0x00*/
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
    31
extern UNS16 mask2;		/* Mapped at index 0x2020, subindex 0x00*/
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
    32
extern UNS16 mask3;		/* Mapped at index 0x2021, subindex 0x00*/
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
    33
extern UNS16 mask4;		/* Mapped at index 0x2022, subindex 0x00*/
37354e408645 compilers compatibility
frdupin
parents: 61
diff changeset
    34
extern UNS8 applyDownloadedFilters;		/* Mapped at index 0x2023, subindex 0x00*/