PISO-CPM100(U) / PCM-CPM100 user manual (ver. 2.02) Dec/03/2012 ----------------- 106
4.5.71.
CPM100_InstallReadSDOISR
Description:
This function allows the user to apply the ReadSDO IST (interrupt
service thread) of CPM100. When the user puts his read SDO process
into this function, all the read SDO messages sent to the specified
CPM100 will trigger the IST. For example, the CPM100 is initialized with
node ID 2. If someone sends an SDO message with the COB-ID 0x602
for reading the object of the CPM100, the CPM100 will go into the IST if
the user has installed it.
Note: The function is valid while the Node parameter of the
function CPM100_InitMaster is > 0.
Syntax:
WORD
CPM100_InstallReadSDOISR(
BYTE
BoardNo,
void
(*RSDOISR)( ))
Parameter:
BoardNo:
[input] CPM100 board number (0~7).
(*RSDOISR)( ):
[input] The pointer which points a function with format
“void XXX( )”. The XXX is the function name of the user’s
process. This process is usually used with the function
CPM100_GetMasterReadSDOEvent.