Changes between Version 96 and Version 97 of library_stdio
- Timestamp:
- Jul 18, 2015, 8:04:01 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
library_stdio
v96 v97 363 363 Task exit if no CMA channel available 364 364 365 === 2) void '''giet_fbf_cma_init_buf'''( void* buf0_vbase , void* buf1_vbase, void* sts0_vaddr, void* sts1_vaddr ) ===365 === 2) void '''giet_fbf_cma_init_buf'''( void* buf0_vbase , void* buf1_vbase , void* sts0_vaddr , void* sts1_vaddr ) === 366 366 This function initializes the chained buffer descriptors for the two source buffers and the frame buffer. CMA channel should have been allocated to the calling task in the application mapping. 367 367 * '''buf0_vbase''' is the first user buffer base address, … … 371 371 372 372 === 3) void '''giet_fbf_cma_start'''( unsigned int length ) === 373 This function initializes the chained buffer DMA controller (CMA) to transfer a stream of images from two user buffers to the frame buffer. It must be used in conjunction with the giet_fbf_cma_display() function. The chained buffer descriptors should have been initialized by the previous function. ''length'' is the buffer size (bytes). 373 This function initializes the chained buffer DMA controller (CMA) to transfer a stream of images from two user buffers to the frame buffer. It must be used in conjunction with the giet_fbf_cma_display() function. The chained buffer descriptors should have been initialized by the gift_fbf_cma_init() function. 374 * '''length''' is the buffer size (bytes). 374 375 375 376 === 4) void '''giet_fbf_cma_display'''( unsigned int buffer ) === 376 This function enables the transfer of the buffer specified by the ''buffer'' argument (0 or 1). 377 This function enables the transfer of the specified buffer. 378 * '''buffer''' is the buffer index (0 or 1). 377 379 378 380 === 5) void '''giet_fbf_cma_stop'''( ) === 379 381 This function desactivates the CMA channel allocated to the calling task. 380 382 381 === 6) void '''giet_fbf_sync_read'''( unsigned int offset, void* buffer, unsigned int length ) === 382 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. 383 384 === 7) void '''giet_fbf_sync_write'''( unsigned int offset, void* buffer, unsigned int length ) === 385 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. 383 === 6) void '''giet_fbf_sync_read'''( unsigned int offset , void* buffer , unsigned int length ) === 384 This blocking function use a memcopy strategy to transfer data from the frame buffer to an user buffer. 385 * '''offset''' defines the offset (in bytes) in the frame buffer, 386 * '''buffer''' is the user buffer base address, 387 * '''length''' is the number of bytes to be transfered. 388 389 === 7) void '''giet_fbf_sync_write'''( unsigned int offset , void* buffer , unsigned int length ) === 390 This blocking function use a memcopy strategy to transfer data from an user buffer to the frame buffer. 391 * '''offset''' defines the offset (in bytes) in the frame buffer, 392 * '''buffer''' is the user buffer base address, 393 * '''length''' is the number of bytes to be transfered. 386 394 387 395