Skip to main content

API List

This chapter lists the APIs provided by this product and describes the conditions under which each API can be called.

API Overview

APIFunction
MPXGetAPIVersionRetrieve the API version
MPXOpenDetect MicroPeckerX units
MPXCloseRelease detected MicroPeckerX units
MPXSetLEDControl the LEDs
MPXGetStatusRetrieve MicroPeckerX status
MPXMonitorStartStart monitoring
MPXMonitorStopStop monitoring
MPXGetTimeStampRetrieve a timestamp
MPXSetGetLogModeConfigure the log acquisition method
MPXSetLogCallBackConfigure the callback function for log acquisition
MPXGetLogRetrieve log data (buffer pointer)
MPXGetLogExRetrieve log data (store in a structure array)
MPXSetCANParamConfigure communication parameters
MPXSetSlotConfigure slot information before monitoring
MPXChangeSlotConfigure slot information while monitoring
MPXSendSlotRequest slot transmission
MPXDirectSendSend a frame
MPXSetLogRequestCallBackConfigure the callback for log replay data requests
MPXSetLogReplayDataSend log replay data
MPXSetBurstLogConfigure frames for burst transfer mode (single frame)
MPXSetLogReplayTriggerConfigure triggers for sending log replay data
MPXLogReplayStartStart transmission in log replay or burst transfer mode
MPXLogReplayStopStop transmission in log replay or burst transfer mode

API Call Conditions

Each API can be called only when the MicroPeckerX unit is in one of the states marked with ○ in the table below.
Behavior is undefined if an API is called in other states.

APIStatus
Not detectedDetected (status: MPX_STATUS_***)
RUNPARAMSYNCNONEMONSIMLOGBUR_LOGBUR
MPXGetAPIVersion--------
MPXOpen---------
MPXClose---------
MPXSetLED--------
MPXGetStatus-
MPXMonitorStart---------
MPXMonitorStop--
MPXGetTimeStamp----
MPXSetGetLogMode--------
MPXSetLogCallBack--------
MPXGetLog----
MPXGetLogEx----
MPXSetCANParam---------
MPXSetSlot--------
MPXChangeSlot---------
MPXSendSlot---------
MPXDirectSend---------
MPXSetLogRequestCallBack--------
MPXSetLogReplayData---------
MPXSetBurstLog--------
MPXSetLogReplayTrigger--------
MPXLogReplayStart------
MPXLogReplayStop------