NNP STM Generic Remote Module git-main
Loading...
Searching...
No Matches
pdo.c File Reference
#include "canfestival.h"
#include "sysdep.h"
#include "pdo.h"
#include "objacces.h"

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. (subindex 1)
 
UNS8 sendPDOrequest (CO_Data *d, UNS16 RPDOIndex)
 Transmit a PDO request frame on the network to the slave.
 
UNS8 processPDO (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)
 copy bit per bit in little endian
 
UNS8 sendPDOevent (CO_Data *d)
 Used by the application to signal changes in process data that could be mapped to some TPDO. This do not necessarily imply PDO emission. Function iterates on all TPDO and look TPDO transmit type and content change before sending it.
 
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)
 <BRIEF> TPDO_Communication_Parameter_Callback
 
void PDOInit (CO_Data *d)
 Initialize PDO feature.
 
void PDOStop (CO_Data *d)
 Stop PDO feature.
 
void sendPdo (CO_Data *d, UNS32 pdoNum, Message *pdo)
 <BRIEF> sendPDO
 

Detailed Description

Date
Created on: Oct 10, 2024
Author
Jerry Ukwela (jeu6@.nosp@m.case.nosp@m..edu)

Definition in file pdo.c.