Typedefs | |
typedef void(* | BTSS_DMAC_CALLBACK_t )(void *arg) |
Callback func is called when a DMA transfer has completed. More... | |
Functions | |
UINT8 | btss_dmac_init (void) |
Function btss_dmac_init. More... | |
UINT8 | btss_dmac_getAppFirstChannel (void) |
Function btss_dmac_getAppFirstChannel. More... | |
void | btss_dmac_setPeripheralDMACSync (UINT8 signal, BOOL32 sync_not_required) |
Function btss_dmac_setPeripheralDMACSync. More... | |
BOOL32 | btss_dmac_requestTransfer (BTSS_DMAC_APP_REQUEST_t *dmaReq) |
Function btss_dmac_requestTransfer. More... | |
void | btss_dmac_killTransfer (BTSS_DMAC_APP_REQUEST_t *dmaReq) |
Function btss_dmac_killTransfer. More... | |
void | btss_dmac_dmaReqSetSrc (BTSS_DMAC_APP_REQUEST_t *dmaReq, UINT32 src) |
Function btss_dmac_dmaReqSetSrc. More... | |
void | btss_dmac_dmaReqSetDst (BTSS_DMAC_APP_REQUEST_t *dmaReq, UINT32 dst) |
Function btss_dmac_dmaReqSetDst. More... | |
void | btss_dmac_dmaReqSetChannel (BTSS_DMAC_APP_REQUEST_t *dmaReq, UINT8 channel) |
Function btss_dmac_dmaReqSetChannel. More... | |
void | btss_dmac_dmaReqSetLLI (BTSS_DMAC_APP_REQUEST_t *dmaReq, BTSS_DMAC_LLI_DESC_t *next_lli) |
Function btss_dmac_dmaReqSetLLI. More... | |
void | btss_dmac_dmaReqSetControl (BTSS_DMAC_APP_REQUEST_t *dmaReq, BTSS_DMAC_CONTROL_REG_t control) |
Function btss_dmac_dmaReqSetControl. More... | |
void | btss_dmac_dmaReqSetConfig (BTSS_DMAC_APP_REQUEST_t *dmaReq, BTSS_DMAC_CONFIG_REG_t config) |
Function btss_dmac_dmaReqSetConfig. More... | |
void | btss_dmac_dmaReqSetLength (BTSS_DMAC_APP_REQUEST_t *dmaReq, UINT16 length) |
Function btss_dmac_dmaReqSetLength. More... | |
void | btss_dmac_dmaReqSetCallback (BTSS_DMAC_APP_REQUEST_t *dmaReq, BTSS_DMAC_CALLBACK_t callback, void *arg) |
Function btss_dmac_dmaReqSetCallback. More... | |
BTSS_DMAC_REQ_STATUS_t | btss_dmac_dmaReqGetStatus (BTSS_DMAC_APP_REQUEST_t *dmaReq) |
Function btss_dmac_dmaReqGetStatus. More... | |
typedef void(* BTSS_DMAC_CALLBACK_t)(void *arg) |
Callback func is called when a DMA transfer has completed.
UINT8 btss_dmac_init | ( | void | ) |
Function btss_dmac_init.
Initialize BTSS DMAC
none |
UINT8 btss_dmac_getAppFirstChannel | ( | void | ) |
Function btss_dmac_getAppFirstChannel.
Get App usable DMA channel's starting number
none |
void btss_dmac_setPeripheralDMACSync | ( | UINT8 | signal, |
BOOL32 | sync_not_required | ||
) |
Function btss_dmac_setPeripheralDMACSync.
Enables or disables synchronization logic for the DMA request Use synchronization logic when the peripheral generating the DMA request runs on a different clock to the DMAC/CPU. For peripherals running on the same clock as DMAC, disabling the synchronization logic improves the DMA response time.
[in] | signal | : DMA request signal |
[in] | sync_not_required | FALSE - Enables sync, TRUE - Disables sync |
BOOL32 btss_dmac_requestTransfer | ( | BTSS_DMAC_APP_REQUEST_t * | dmaReq | ) |
Function btss_dmac_requestTransfer.
Posts DMA request to the DMAC HW.
[in] | dmaReq | : DMA request input |
void btss_dmac_killTransfer | ( | BTSS_DMAC_APP_REQUEST_t * | dmaReq | ) |
Function btss_dmac_killTransfer.
Kill the requested DMA transfer
[in] | dmaReq | : DMA request input |
void btss_dmac_dmaReqSetSrc | ( | BTSS_DMAC_APP_REQUEST_t * | dmaReq, |
UINT32 | src | ||
) |
Function btss_dmac_dmaReqSetSrc.
Sets the source address parameter in dmaReq
[in] | dmaReq | : DMA request input |
[in] | src | : Source address - Aligned to src transfer size parameter |
void btss_dmac_dmaReqSetDst | ( | BTSS_DMAC_APP_REQUEST_t * | dmaReq, |
UINT32 | dst | ||
) |
Function btss_dmac_dmaReqSetDst.
Sets the destination address parameter in dmaReq
[in] | dmaReq | : DMA request input |
[in] | dst | : Destination address |
void btss_dmac_dmaReqSetChannel | ( | BTSS_DMAC_APP_REQUEST_t * | dmaReq, |
UINT8 | channel | ||
) |
Function btss_dmac_dmaReqSetChannel.
Sets the channel parameter in dmaReq
[in] | dmaReq | : DMA request input |
[in] | channel | : DMA channel |
void btss_dmac_dmaReqSetLLI | ( | BTSS_DMAC_APP_REQUEST_t * | dmaReq, |
BTSS_DMAC_LLI_DESC_t * | next_lli | ||
) |
Function btss_dmac_dmaReqSetLLI.
Sets the next linked DMA descriptor parameter in dmaReq
[in] | dmaReq | : DMA request input |
[in] | next_lli | : Next DMA descriptor |
void btss_dmac_dmaReqSetControl | ( | BTSS_DMAC_APP_REQUEST_t * | dmaReq, |
BTSS_DMAC_CONTROL_REG_t | control | ||
) |
Function btss_dmac_dmaReqSetControl.
Sets the control register parameter in dmaReq
[in] | dmaReq | : DMA request input |
[in] | control | : DMA control register configuration |
void btss_dmac_dmaReqSetConfig | ( | BTSS_DMAC_APP_REQUEST_t * | dmaReq, |
BTSS_DMAC_CONFIG_REG_t | config | ||
) |
Function btss_dmac_dmaReqSetConfig.
Sets the config register parameter in dmaReq
[in] | dmaReq | : DMA request input |
[in] | config | : DMA config register configuration |
void btss_dmac_dmaReqSetLength | ( | BTSS_DMAC_APP_REQUEST_t * | dmaReq, |
UINT16 | length | ||
) |
Function btss_dmac_dmaReqSetLength.
Sets the length parameter in dmaReq
[in] | dmaReq | : DMA request input |
[in] | length | : DMA transfer length |
void btss_dmac_dmaReqSetCallback | ( | BTSS_DMAC_APP_REQUEST_t * | dmaReq, |
BTSS_DMAC_CALLBACK_t | callback, | ||
void * | arg | ||
) |
Function btss_dmac_dmaReqSetCallback.
Sets the callback and arg parameter in dmaReq
[in] | dmaReq | : DMA request input |
[in] | callback | : Callback on completing DMA transfer |
[in] | arg | : Argument to be passed back with callback |
BTSS_DMAC_REQ_STATUS_t btss_dmac_dmaReqGetStatus | ( | BTSS_DMAC_APP_REQUEST_t * | dmaReq | ) |
Function btss_dmac_dmaReqGetStatus.
Gets the status of DMAC transfer
[in] | dmaReq | : DMA request input |