|
AWECore 8.C.10 API Document
|
Go to the documentation of this file.
23 #ifndef _AWECOREINSTANCE_H
24 #define _AWECOREINSTANCE_H
30 #include "TargetProcessor.h"
181 #ifdef AWEINSTANCE_FRAMEWORK
182 AWEINSTANCE_FRAMEWORK
216 INT32
awe_initPin(IOPinDescriptor *pPin, UINT32 channels,
const char *name);
226 typedef INT32 packetProcessFunction(
AWEInstance * pAWE);
498 #endif // _AWECOREINSTANCE_H
float sampleRate
Default sample rate of this instance.
Definition: AWEInstance.h:170
UINT32 * pFastHeapA
Fast heap A.
Definition: AWEInstance.h:54
INT32 awe_ctrlGetStatus(const AWEInstance *pAWE, UINT32 handle, UINT32 *status)
Get the runtime status of a module.
void awe_initFlashFS(AWEInstance *pAWE, AWEFlashFSInstance *pAWEFlashFSInstance)
Initialize the file system.
UINT32 slowHeapSize
The slow heap size.
Definition: AWEInstance.h:71
INT32(* cbAudioStop)(struct _AWEInstance *pAWE)
OPTIONAL.
Definition: AWEInstance.h:85
UINT32 fastHeapBSize
The fast heap B size.
Definition: AWEInstance.h:68
UINT32 _Reserved[39]
Internal members.
Definition: AWEInstance.h:188
const char * pName
Name of this instance as a string
Definition: AWEInstance.h:163
UINT32 numModules
Number of modules in module table.
Definition: AWEInstance.h:110
INT32 awe_ctrlSetValueMask(const AWEInstance *pAWE, UINT32 handle, const void *value, INT32 arrayOffset, UINT32 length, UINT32 mask)
Set a scalar or array value of a module variable by handle with mask.
UINT32 numThreads
Number of threads supported for multithreaded systems(1-4).
Definition: AWEInstance.h:167
INT32 awe_ctrlGetModuleClass(const AWEInstance *pAWE, UINT32 handle, UINT32 *pClassID)
Get an object class from its handle.
IOPinDescriptor * pInputPin
A BSP author must define/allocate an input pin in their BSP and assign it to this member NOTE: AudioW...
Definition: AWEInstance.h:94
UINT32 * pPacketBuffer
The Packet buffer pointer.
Definition: AWEInstance.h:128
UINT32 * pReplyBuffer
Reply buffer pointer.
Definition: AWEInstance.h:137
void awe_layoutGetChannelCount(const AWEInstance *pAWE, UINT32 pinIdx, UINT32 *inCount, UINT32 *outCount)
Returns the number of channels in the Layout's input and output pins.
float coreSpeed
A BSP author will set this to the speed of the CPU they are integrating into.
Definition: AWEInstance.h:152
INT32 awe_layoutGetInputSampleRate(const AWEInstance *pAWE, UINT32 pinIdx, FLOAT32 *sampleRate)
Returns the sample rate of an input pin.
INT32 awe_audioIsStarted(const AWEInstance *pAWE)
Check if this instance is running.
INT32 awe_ctrlSetStatus(const AWEInstance *pAWE, UINT32 handle, UINT32 status)
Set the runtime status of a module.
INT32(* cbAudioStart)(struct _AWEInstance *PAWE)
OPTIONAL This callback is invoked when a layout is run or when a StartAudio command is sent.
Definition: AWEInstance.h:79
INT32 awe_deferredSetCall(AWEInstance *pAWE)
Perform deferred awe set on a module.
INT32 awe_packetProcess(AWEInstance *pAWE)
Process an AWEInstance's newly received tuning packet.
const ModClassModule ** pModuleDescriptorTable
Pointer to module table.
Definition: AWEInstance.h:118
UINT32 userVersion
User Version word.
Definition: AWEInstance.h:149
INT32 awe_setProfilingStatus(AWEInstance *pAWE, UINT32 enable)
Enable or disable the profiling ability of the AWECore.
INT32 awe_initPin(IOPinDescriptor *pPin, UINT32 channels, const char *name)
Initialize an input or output pin.
AWEFlashFSInstance * pFlashFileSystem
DSPC Flash file system instance.
Definition: AWEInstance.h:179
enum _SampleType SampleType
Type of data for I/O.
The AWE instance.
Definition: AWEInstance.h:45
INT32 awe_layoutGetInputBlockSize(const AWEInstance *pAWE, UINT32 pinIdx, UINT32 *blockSize)
Returns the block size of a pin.
INT32 awe_layoutIsValid(const AWEInstance *pAWE)
Determines if a layout is loaded and valid.
INT32 awe_audioExportSamples(const AWEInstance *pAWE, void *outSamples, INT32 outStride, INT32 channel, SampleType outType)
Export samples to a user buffer from a channel.
INT32 awe_ctrlSetValue(const AWEInstance *pAWE, UINT32 handle, const void *value, INT32 arrayOffset, UINT32 length)
Set a scalar or array value of a module variable by handle.
float profileSpeed
Profiling clock speed in Hz.
Definition: AWEInstance.h:155
struct _AWEInstance AWEInstance
The AWE instance.
UINT32 fundamentalBlockSize
Base frame size of this instance.
Definition: AWEInstance.h:174
INT32 awe_getAverageLayoutCycles(AWEInstance *pAWE, UINT32 layoutIdx, UINT32 *averageCycles)
Get the average cycles of a running layout, in units of cycles at profileSpeed.
UINT32 instanceId
The ID of this instance.
Definition: AWEInstance.h:50
INT32 awe_loadAWBfromArray(AWEInstance *pAWE, const UINT32 *pCommands, UINT32 arraySize, UINT32 *pPos)
Executes packet commands from an in-memory array.
INT32 awe_audioImportSamples(const AWEInstance *pAWE, const void *inSamples, INT32 inStride, INT32 channel, SampleType inType)
Import samples from a user buffer to a channel.
INT32 awe_ctrlGetValue(const AWEInstance *pAWE, UINT32 handle, void *value, INT32 arrayOffset, UINT32 length)
Get a scalar or array value of a module variable by handle.
INT32 awe_ctrlGetValueMask(const AWEInstance *pAWE, UINT32 handle, void *value, INT32 arrayOffset, UINT32 length, UINT32 mask)
Get a scalar or array value of a module variable by handle with mask.
UINT32 packetBufferSize
Packet buffer size.
Definition: AWEInstance.h:144
INT32 awe_audioGetPumpMask(AWEInstance *pAWE)
Test if AWE is ready to run.
INT32 awe_init(AWEInstance *pAWE)
Initialize the instance.
IOPinDescriptor * pOutputPin
A BSP author must define/allocate an output pin in their BSP and assign it to this member NOTE: Audio...
Definition: AWEInstance.h:100
INT32 awe_audioPump(AWEInstance *pAWE, UINT32 layoutIndex)
Audio pump function.
UINT32 fastHeapASize
The fast heap A size.
Definition: AWEInstance.h:65
UINT32 * pSlowHeap
The slow heap.
Definition: AWEInstance.h:60
UINT32 * pFastHeapB
The second fast heap, B .
Definition: AWEInstance.h:57