| 91 | === void giet_fb_sync_read( unsigned int offset, void* buffer, unsigned int length ) === |
| 92 | This blocking function use a memcopy strategy to transfer data from the frame buffer to an user buffer: ''offset'' defines the offset (in bytes) in the frame buffer, ''buffer'' is the user buffer base address, ''length'' is the number of bytes to be transfered. In case or error, it makes a giet_exit(). |
| 93 | |
| 94 | === void giet_fb_sync_write( unsigned int offset, void* buffer, unsigned int length ) === |
| 95 | This blocking function use a memcopy strategy to transfer data from an user buffer to the frame buffer: ''offset'' defines the offset (in bytes) in the frame buffer, ''buffer'' is the user buffer base address, ''length'' is the number of bytes to be transfered. In case or error, it makes a giet_exit(). |
| 96 | |
| 97 | === void giet_fb_cma_init( void* buf0, void* buf1, unsigned int length ) === |
| 98 | This function initializes the two chained bufffer (sorce and destination) used by the chained buffer DMA controller (CMA) to transfer a stream of data from the user buffers to the frame buffer. A CMA channel should have been allocated to the calling task in the application mapping. ''buf0'' is the first user buffer base address, ''buf1'' is the second user buffer base address, ''length'' is the buffer size (bytes). In case or error, it makes a giet_exit(). |
| 99 | |
| 100 | === void giet_fb_cma_write( unsigned int buffer_id ) === |
| 101 | This function enables the transfer of the buffer specified by the ''buffer_id'' argument (0 or 1). |
| 102 | |
| 103 | === void giet_fb_cma_stop( ) === |
| 104 | This function desactivates the CMA channel allocated to the calling task. |
| 105 | |