MPLAB® Harmony Graphics Suite > Graphics Library > Legato Graphics Library > Legato Interface > b) Core Functions > leStream_Read Function
MPLAB® Harmony Graphics Suite
leStream_Read Function

Instructs a stream object to attempt to read from its data source using the leApplication_MediaReadRequest API.

C
leResult leStream_Read(
    leStream* stream, 
    uint32_t addr, 
    uint32_t size, 
    uint8_t* buf, 
    leStream_DataReadyCallback cb
);
Parameters
Parameters 
Description 
leStream* stream 
the stream to read from 
uint32_t addr 
the address to read from 
uint32_t size 
the size to read 
uint8_t* buf 
the destination buffer to read to 
leStream_DataReadyCallback cb 
a callback to indicate that the data is ready 
MPLAB® Harmony Graphics Suite