Z8 Encore! XP
®
Board Support Package API
Reference Manual
Z8 Encore! Series Board Support Package RM006406-0319
2
DMA is only available on select Z8 Encore! devices such as the F6482
Series. Consequently, BSP DMA services are not available on Z8 Encore!
devices without an integrated DMA controller such as the F3224 Series.
Therefore, whenever the word DMA is used in this document, it is under-
stood to mean that BSP DMA services are only available on devices that
have an integrated DMA controller.
API function calls that perform synchronous transfers do not return con-
trol to the caller until the operation specified by the API completes (or
aborts). API function calls that perform asynchronous transfers typically
return immediately while the actual data transfer completes in the back-
ground. Peripherals that can be configured for asynchronous data transfer
also include an (optional) transfer complete callback function pointer that
the application can set to the address of a routine the BSP calls when the
transfer completes. With asynchronous data transfers, the application
should not modify the contents of the buffer used in the transfer until the
BSP calls the application’s transfer complete handler. If the initial call to
an asynchronous API fails and the transfer operation cannot be performed
the transfer complete callback is not called.
Applications that call the init API of any of the BSP peripherals are cau-
tioned against directly modifying any of that peripheral’s special function
registers; such modifying can cause the peripheral to operate unexpect-
edly (or not at all). If an application must modify the configuration of a
peripheral after the peripheral’s init API is called, the application should
call the peripheral’s stop API (i.e.,
BSP_Xxx_Stop, in which Xxx identi-
fies the target peripheral). The application can next modify the periph-
eral’s configuration structure, then call the peripheral’s Init routine.
Similarly, when BSP services are no longer required for a given periph-
eral, applications can call the peripheral’s
BSP_Xxx_Stop API to direct
the BSP to stop using the device.