PISO-CPM100(U) / PCM-CPM100 user manual (ver. 2.02) Dec/03/2012 ----------------- 108
4.5.73.
CPM100_InstallWriteSDOISR
Description:
This function allows the user to apply the WriteSDO IST (interrupt
service routine) of the CPM100. When the user puts the process into
this function, all the written 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
to the CPM100 for writing an object, 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_InstallWriteSDOISR(
BYTE
BoardNo,
void
(*WSDOISR)( ))
Parameter:
BoardNo:
[input] CPM100 board number (0~7).
(*WSDOISR)( ):
[input] The pointer which points a function with format
“void XXX( )”. The XXX is the function name of user’s process.
This process is usually used with the function
CPM100_GetMasterWriteSDOEvent.