AWECore 8.C.1 API Document
|
Go to the documentation of this file.
33 #include "TargetProcessor.h"
74 BOOL (*
cbEraseSector)(UINT32 nStartingAddress, UINT32 nNumberOfSectors);
77 BOOL (*
cbFlashWrite)(UINT32 nFlashAddress, UINT32 * pBuffer, UINT32 nDWordsToWrite);
80 BOOL (*
cbFlashRead)(UINT32 nFlashAddress, UINT32 * pBuffer, UINT32 nDWordsToRead);
273 typedef INT32 packetProcessFunction(
AWEInstance * pAWE);
539 #endif // _FRAMEWORK_H
struct AWEFlashFSInstance AWEFlashFSInstance
The DSPC Flash File System Instance.
INT32(* cbAudioStop)(struct AWEInstance *pAWE)
OPTIONAL.
Definition: AWECore.h:141
float sampleRate
Default sample rate of this instance.
Definition: AWECore.h:226
struct IOPinDescriptor IOPinDescriptor
AWE IO Pin type.
BOOL(* cbFlashWrite)(UINT32 nFlashAddress, UINT32 *pBuffer, UINT32 nDWordsToWrite)
User callback function to write to flash.
Definition: AWECore.h:77
UINT32 numThreads
Number of threads supported for multithreaded systems(1-4).
Definition: AWECore.h:223
INT32 awe_ctrlGetModuleClass(const AWEInstance *pAWE, UINT32 handle, UINT32 *pClassID)
Get an object class from its handle.
UINT32 fastHeapBSize
The fast heap B size.
Definition: AWECore.h:124
INT32 awe_initPin(IOPinDescriptor *pPin, UINT32 channels, const char *name)
Initialize an input or output pin.
INT32 awe_ctrlGetStatus(const AWEInstance *pAWE, UINT32 handle, UINT32 *status)
Get the runtime status of a module.
INT32 awe_getAverageLayoutCycles(AWEInstance *pAWE, UINT32 layoutIdx, UINT32 *averageCycles)
Get the average cycles of a running layout, in units of cycles at profileSpeed.
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.
INT32 awe_layoutGetInputBlockSize(const AWEInstance *pAWE, UINT32 pinIdx, UINT32 *blockSize)
Returns the block size of a pin.
float coreSpeed
A BSP author will set this to the speed of the CPU they are integrating into.
Definition: AWECore.h:208
INT32 awe_layoutIsValid(const AWEInstance *pAWE)
Determines if a layout is loaded and valid.
void awe_initFlashFS(AWEInstance *pAWE, AWEFlashFSInstance *pAWEFlashFSInstance)
Initialize the file system.
INT32 awe_ctrlSetStatus(const AWEInstance *pAWE, UINT32 handle, UINT32 status)
Set the runtime status of a module.
INT32 awe_loadAWBfromArray(AWEInstance *pAWE, const UINT32 *pCommands, UINT32 arraySize, UINT32 *pPos)
Executes packet commands from an in-memory array.
INT32 awe_audioGetPumpMask(const AWEInstance *pAWE)
Test if AWE is ready to run.
UINT32 _Reserved[52]
Internal members.
Definition: AWECore.h:238
UINT32 numModules
Number of modules in module table.
Definition: AWECore.h:166
INT32 awe_layoutGetInputSampleRate(const AWEInstance *pAWE, UINT32 pinIdx, FLOAT32 *sampleRate)
Returns the sample rate of an input pin.
INT32 awe_audioExportSamples(const AWEInstance *pAWE, void *outSamples, INT32 outStride, INT32 channel, SampleType outType)
Export samples to a user buffer from a channel.
UINT32 flashEraseTimeInMs
Flash erase time in milliseconds.
Definition: AWECore.h:68
BOOL(* cbFlashRead)(UINT32 nFlashAddress, UINT32 *pBuffer, UINT32 nDWordsToRead)
User function to read from flash.
Definition: AWECore.h:80
UINT32 * pReplyBuffer
Reply buffer pointer.
Definition: AWECore.h:193
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:150
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:156
AWEFlashFSInstance * pFlashFileSystem
DSPC Flash file system instance.
Definition: AWECore.h:235
UINT32 flashSizeInBytes
Size of flash memory - if non-zero, next two values must also be non-zero.
Definition: AWECore.h:59
BOOL(* cbEraseSector)(UINT32 nStartingAddress, UINT32 nNumberOfSectors)
User callback function to erase one or more sectors.
Definition: AWECore.h:74
const char * pName
Name of this instance as a string
Definition: AWECore.h:219
INT32 awe_init(AWEInstance *pAWE)
Initialize the instance.
UINT32 flashErasableBlockSizeInBytes
Size of flash erase block.
Definition: AWECore.h:62
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 * pPacketBuffer
The Packet buffer pointer.
Definition: AWECore.h:184
UINT32 packetBufferSize
Packet buffer size.
Definition: AWECore.h:200
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.
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.
The AWE instance.
Definition: AWECore.h:101
INT32 awe_audioPump(AWEInstance *pAWE, UINT32 layoutIndex)
Audio pump function.
UINT32 userVersion
User Version word.
Definition: AWECore.h:205
UINT32 _Reserved[62]
Reserved member.
Definition: AWECore.h:88
UINT32 * pSlowHeap
The slow heap.
Definition: AWECore.h:116
UINT32 flashStartOffsetInBytes
Offset into start of flash used for file system.
Definition: AWECore.h:65
INT32(* cbAudioStart)(struct AWEInstance *PAWE)
OPTIONAL This callback is invoked when a layout is run or when a StartAudio command is sent.
Definition: AWECore.h:135
UINT32 _Reserved[82]
Reserved member.
Definition: AWECore.h:45
INT32 awe_setProfilingStatus(AWEInstance *pAWE, UINT32 enable)
Enable or disable the profiling ability of the AWECore.
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 instanceId
The ID of this instance.
Definition: AWECore.h:106
The DSPC Flash File System Instance.
Definition: AWECore.h:57
INT32 awe_audioIsStarted(const AWEInstance *pAWE)
Check if this instance is running.
float profileSpeed
Profiling clock speed in Hz.
Definition: AWECore.h:211
UINT32 fastHeapASize
The fast heap A size.
Definition: AWECore.h:121
INT32(* cbFlashProcessCmd)(struct AWEInstance *pAWE)
Optional user callback function to return the next command from an awb in flash.
Definition: AWECore.h:85
struct AWEInstance AWEInstance
The AWE instance.
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 slowHeapSize
The slow heap size.
Definition: AWECore.h:127
UINT32 * pFastHeapA
Fast heap A.
Definition: AWECore.h:110
UINT32 fundamentalBlockSize
Base frame size of this instance.
Definition: AWECore.h:230
INT32 awe_deferredSetCall(AWEInstance *pAWE)
Perform deferred awe set on a module.
AWE IO Pin type.
Definition: AWECore.h:43
UINT32 * pFastHeapB
The second fast heap, B .
Definition: AWECore.h:113
BOOL(* cbInit)(void)
User function to initialize flash file system.
Definition: AWECore.h:71
const void * pModuleDescriptorTable
Pointer to module table.
Definition: AWECore.h:174