Sam Grove / Mbed 2 deprecated canopen_masternode

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

pdo.c File Reference

pdo.c File Reference

Go to the source code of this file.

Functions

UNS8 buildPDO (CO_Data *d, UNS8 numPdo, Message *pdo)
 Copy all the data to transmit in process_var Prepare the PDO defined at index to be sent *pwCobId : returns the value of the cobid.
UNS8 sendPDOrequest (CO_Data *d, UNS16 RPDOIndex)
 Transmit a PDO request frame on the network to the slave.
UNS8 proceedPDO (CO_Data *d, Message *m)
 Compute a PDO frame reception bus_id is hardware dependant.
void CopyBits (UNS8 NbBits, UNS8 *SrcByteIndex, UNS8 SrcBitIndex, UNS8 SrcBigEndian, UNS8 *DestByteIndex, UNS8 DestBitIndex, UNS8 DestBigEndian)
UNS8 sendPDOevent (CO_Data *d)
 Used by the application to signal changes in process data that could be mapped to some TPDO.
void PDOEventTimerAlarm (CO_Data *d, UNS32 pdoNum)
 Set timer for PDO event.
void PDOInhibitTimerAlarm (CO_Data *d, UNS32 pdoNum)
 Inhibit timer for PDO event.
UNS8 _sendPDOevent (CO_Data *d, UNS8 isSyncEvent)
 Function iterates on all TPDO and look TPDO transmit type and content change before sending it.
UNS32 TPDO_Communication_Parameter_Callback (CO_Data *d, const indextable *OD_entry, UNS8 bSubindex)
void PDOInit (CO_Data *d)
 Initialize PDO feature.
void PDOStop (CO_Data *d)
 Stop PDO feature.

Detailed Description

Author:
Edouard TISSERANT and Francis DUPIN
Date:
Tue Jun 5 09:32:32 2007

Definition in file pdo.c.


Function Documentation

UNS8 buildPDO ( CO_Data d,
UNS8  numPdo,
Message pdo 
)

Copy all the data to transmit in process_var Prepare the PDO defined at index to be sent *pwCobId : returns the value of the cobid.

Parameters:
d
TPDO_comTPDO communication parameters OD entry
TPDO_mapTPDO mapping parameters OD entry
Returns:

Definition at line 49 of file pdo.c.

void CopyBits ( UNS8  NbBits,
UNS8 *  SrcByteIndex,
UNS8  SrcBitIndex,
UNS8  SrcBigEndian,
UNS8 *  DestByteIndex,
UNS8  DestBitIndex,
UNS8  DestBigEndian 
)
Parameters:
NbBits
SrcByteIndex
SrcBitIndex
SrcBigEndian
DestByteIndex
DestBitIndex
DestBigEndian

Definition at line 434 of file pdo.c.

void PDOInit ( CO_Data d )

Initialize PDO feature.

Parameters:
*dPointer on a CAN object data structure

Definition at line 788 of file pdo.c.

void PDOStop ( CO_Data d )

Stop PDO feature.

Parameters:
*dPointer on a CAN object data structure

Definition at line 822 of file pdo.c.

UNS8 proceedPDO ( CO_Data d,
Message m 
)

Compute a PDO frame reception bus_id is hardware dependant.

Parameters:
d
m
Returns:

Definition at line 171 of file pdo.c.

UNS8 sendPDOevent ( CO_Data d )

Used by the application to signal changes in process data that could be mapped to some TPDO.

Parameters:
d
Returns:

Definition at line 509 of file pdo.c.

UNS32 TPDO_Communication_Parameter_Callback ( CO_Data d,
const indextable OD_entry,
UNS8  bSubindex 
)
Parameters:
d
OD_entry
bSubindex
Returns:
always 0

Definition at line 755 of file pdo.c.