33 #include "TargetProcessor.h" 39 #define WORDSOF(x) (sizeof(x) / sizeof(INT32)) 42 #define NUMOF(x) (sizeof(x) / sizeof(*x)) 45 #define AWE_UNUSED_VARIABLE(x) ((void)(x)) 79 BOOL (*cbEraseSector)(UINT32 nStartingAddress, UINT32 nNumberOfSectors);
82 BOOL (*cbFlashWrite)(UINT32 nFlashAddress, UINT32 * pBuffer, UINT32 nDWordsToWrite);
85 BOOL (*cbFlashRead)(UINT32 nFlashAddress, UINT32 * pBuffer, UINT32 nDWordsToRead);
509 #endif // _FRAMEWORK_H UINT32 * pFastHeapB
The second fast heap, B .
Definition: AWECore.h:112
enum _SampleType SampleType
Type of data for I/O.
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.
UINT32 * pSlowHeap
The slow heap.
Definition: AWECore.h:115
INT32 awe_ctrlSetValue(const AWEInstance *pAWE, UINT32 handle, void *value, INT32 arrayOffset, UINT32 length)
Get a scalar or array value by handle.
Data is 24 bit PCM aligned to the high bit in 32 bit buffers.
Definition: AWECore.h:252
AWEFlashFSInstance * pFlashFileSystem
DSPC Flash file system instance.
Definition: AWECore.h:234
UINT32 fundamentalBlockSize
Base frame size of this instance.
Definition: AWECore.h:229
Data is 24 bit PCM aligned to the low bit in 32 bit buffers.
Definition: AWECore.h:249
UINT32 numModules
Number of modules in module table.
Definition: AWECore.h:165
INT32 awe_ctrlSetValueMask(const AWEInstance *pAWE, UINT32 handle, const void *value, INT32 arrayOffset, UINT32 length, UINT32 mask)
Set a scalar or array value by handle with mask.
const char * pName
Name of this instance as a string.
Definition: AWECore.h:218
INT32 awe_audioIsStarted(const AWEInstance *pAWE)
Check if this instance is running.
UINT32 * pPacketBuffer
The Packet buffer pointer.
Definition: AWECore.h:183
float profileSpeed
Profiling clock speed in Hz.
Definition: AWECore.h:210
Data is 16 bit PCM.
Definition: AWECore.h:246
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_packetProcess(AWEInstance *pAWE)
Process an AWEInstance's newly received tuning packet.
UINT32 flashSizeInBytes
Size of flash memory - if non-zero, next two values must also be non-zero.
Definition: AWECore.h:64
UINT32 * pReplyBuffer
Reply buffer pointer.
Definition: AWECore.h:192
IOPinDescriptor * pInputPin
A BSP author must define/allocate an input pin in their BSP and assign it to this member NOTE: AudioW...
Definition: AWECore.h:149
const void * pModuleDescriptorTable
Pointer to module table.
Definition: AWECore.h:173
INT32 awe_initPin(IOPinDescriptor *pPin, UINT32 channels, const char *name)
Initialize an input or output pin.
INT32 awe_deferredSetCall(AWEInstance *pAWE)
Perform deferred awe set on a module.
INT32 awe_layoutGetInputBlockSize(const AWEInstance *pAWE, UINT32 pinIdx, UINT32 *blockSize)
Returns the block size of a pin.
AWE IO Pin type.
Definition: AWECore.h:50
INT32 awe_layoutIsValid(const AWEInstance *pAWE)
Determines if a layout is loaded and valid.
UINT32 instanceId
The ID of this instance.
Definition: AWECore.h:105
INT32(* cbAudioStop)(struct AWEInstance *pAWE)
OPTIONAL.
Definition: AWECore.h:140
UINT32 flashStartOffsetInBytes
Offset into start of flash used for file system.
Definition: AWECore.h:70
void awe_initFlashFS(AWEInstance *pAWE, AWEFlashFSInstance *pAWEFlashFSInstance)
Initialize the file system.
INT32 awe_ctrlSetStatus(const AWEInstance *pAWE, UINT32 handle, UINT32 status)
Set the status of a module.
INT32 awe_audioGetPumpMask(const AWEInstance *pAWE)
Test if AWE is ready to run.
Data is 32 bit PCM .
Definition: AWECore.h:255
UINT32 fastHeapBSize
The fast heap B size.
Definition: AWECore.h:123
INT32 awe_ctrlGetModuleClass(const AWEInstance *pAWE, UINT32 handle, UINT32 *pClassID)
Get an object class from its handle.
UINT32 userVersion
User Version word.
Definition: AWECore.h:204
INT32 awe_ctrlGetValue(const AWEInstance *pAWE, UINT32 handle, const void *value, INT32 arrayOffset, UINT32 length)
Set a scalar or array value by handle.
INT32 awe_ctrlGetStatus(const AWEInstance *pAWE, UINT32 handle, UINT32 *status)
Get the status of a module.
The AWE instance.
Definition: AWECore.h:99
UINT32 flashEraseTimeInMs
Flash erase time in milliseconds.
Definition: AWECore.h:73
UINT32 fastHeapASize
The fast heap A size.
Definition: AWECore.h:120
UINT32 * pFastHeapA
Fast heap A.
Definition: AWECore.h:109
UINT32 flashErasableBlockSizeInBytes
Size of flash erase block.
Definition: AWECore.h:67
INT32 awe_loadAWBfromArray(AWEInstance *pAWE, const UINT32 *pCommands, UINT32 arraySize, UINT32 *pPos)
Executes packet commands from an in-memory array.
_SampleType
Type of data for I/O.
Definition: AWECore.h:243
INT32 awe_ctrlGetValueMask(const AWEInstance *pAWE, UINT32 handle, void *value, INT32 arrayOffset, UINT32 length, UINT32 mask)
Get a scalar or array value by handle with mask.
float sampleRate
Default sample rate of this instance.
Definition: AWECore.h:225
INT32 awe_layoutGetInputSampleRate(const AWEInstance *pAWE, UINT32 pinIdx, FLOAT32 *sampleRate)
Returns the sample rate of an input pin.
struct AWEFlashFSInstance AWEFlashFSInstance
The DSPC Flash File System Instance Optional – SINGLE INSTANCE ONLY.
UINT32 numThreads
Number of threads supported for multithreaded systems(1-4).
Definition: AWECore.h:222
struct IOPinDescriptor IOPinDescriptor
AWE IO Pin type.
INT32 awe_audioExportSamples(const AWEInstance *pAWE, void *outSamples, INT32 outStride, INT32 channel, SampleType outType)
Export samples to a user buffer from a channel.
struct AWEInstance AWEInstance
The AWE instance.
UINT32 packetBufferSize
Packet buffer size.
Definition: AWECore.h:199
IOPinDescriptor * pOutputPin
A BSP author must define/allocate an output pin in their BSP and assign it to this member NOTE: Audio...
Definition: AWECore.h:155
INT32 awe_audioPump(AWEInstance *pAWE, UINT32 layoutIndex)
Audio pump function.
float coreSpeed
A BSP author will set this to the speed of the CPU they are integrating into.
Definition: AWECore.h:207
UINT32 _Reserved[82]
Reserved member.
Definition: AWECore.h:53
UINT32 slowHeapSize
The slow heap size.
Definition: AWECore.h:126
The DSPC Flash File System Instance Optional – SINGLE INSTANCE ONLY.
Definition: AWECore.h:61
INT32 awe_init(AWEInstance *pAWE)
Initialize the instance.