Masterclock TCR1000 Bedienungsanleitung Seite 10

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 23
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 9
TCR1000SDKRev.3.0.0  Page10
TCR1000_ApiEnableCallback
TheTCR1000_ApiEnableCallbackfunctionenablestheasynchronouscallbackofausersupplied
callbackfunction,oraddshookstoanalreadyestablishedcallbackfunction,onbehalfofthecalling
thread.
DWORDTCR1000_ApiEnableCallback(
DWORDcbToAdd,//maskofcallbackhooks
PTCRASYNC_CALLBACK_ROUTINEcbFunction//pointertousersuppliedcallbackfunction
);
Parameters
cbToAdd
AnycombinationofcallbackhooksASYNC_xxx(definedinINTAPI.H)tobeenabledoradded,from:
ASYNC_TIMESET Once/minuteinterrupt(second=30,frame=0)
ASYNC_PERSEC Once/secondinterrupt(second=0)
ASYNC_ENDTC Once/frameinterrupt(aftertimecodedata,beforesyncword)
ASYNC_STARTTC Once/frameinterrupt(beforetimecodedata,aftersyncword)
ASYNC_TIMELOSS Timecodelost
ASYNC_TIMEGAIN Timecoderegainedfromloststate
cbFunction
AusersuppliedcallbackfunctionoftypePTCRASYNC_CALLBACK_ROUTINE.Askeletonexampleof
thecallbackfunctionwouldbe:
DWORD_stdcallTCR1000_ApiAsyncCallback(DWORDdwStatus,PVOIDdata,DWORDdataLen)
{
//codeheretohandleasynchronousnotifications
}
ReturnValues
Onsuccess,thenewcallbackhooksmask(alwaysnonzero).Onfailure,0.
Remarks
Eachthreadinaprocessmayhaveanactivecallbackfunctionbutnomorethanone.Additionalcalls
toTCR1000_ApiEnableCallbackinthethreadwillusethefunctionpassedbytheinitialcall.Allcallsto
TCR1000_ApiEnableCallbackareonbehalfofthecallingthread,notthecallingprocess.
TCR1000_ApiEnableCallbackmust
becalledonceforeveryeventthatthecallbackfunctionshould
berunfor.Enablingacallback,insomecircumstances,can
affectthecallbackhooksofotherthreads
orotherprocessesusingtheAPI.SeethesectionentitledRelationshipofTCRInterruptstoAPI
AsynchronousNotificationsforadditionaldescriptionofissuesregardingtheuseofthisfunction.
Seitenansicht 9
1 2 ... 5 6 7 8 9 10 11 12 13 14 15 ... 22 23

Kommentare zu diesen Handbüchern

Keine Kommentare