beautypg.com

The hsc object, Getifhw, Getchannel – Sundance SMT6025 v.2.9 User Manual

Page 29: Gethandlername

background image

Version 2.9

Page 29 of 45

SMT6025 User Manual

HSC_HANDLER_ERROR
HSC_HANDLER_CANCEL
.

The cancel event is used to indicate to the handler that it needs to
terminate. Whenever you wait for an event in the handler code, you
need to also wait for this cancel event. If the cancel event becomes
signalled, the handler needs to return immediately with the value
HSC_HANDLER_CANCEL.

Your handler code may look like this:

HANDLE h[] = {hCancel,hMyEvent};

DWORD dw = WaitForMultipleObjects( 2, h, FALSE,INFINITE);

if (dw == WAIT_OBJECT_0)

return HSC_HANDLER_CANCEL;

return HSC_HANDLER_OK;

15.6 The HSC object

The channel handler communicates with the DSP by means of an interface to a
HSC object. This object exposes the required high-speed-channel functionality.

15.6.1 GetIFHw

Obtain a pointer to the hardware interface of which this HSC object is
part.

Prototype

IFHw * HSC::GetIFHw( void )

Parameters

None

15.6.2 GetChannel

Return the channel number for this HSC object.

Prototype

UINT HSC::GetChannel( void )

Parameters

None

15.6.3 GetHandlerName

Get the name of the channel handler in operation.

User Manual (QCF42); Version 2.9, 22/02/02; © Sundance Multiprocessor Technology Ltd. 2002

This manual is related to the following products: