Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
Cf_Read_Init
Cf_Read_Byte
208
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure Cf_Read_Init(address : dword; sector_count : byte);
Returns
Nothing.
Description
Initializes CF card for reading.
Parameters : 
address
: the first sector to be prepared for reading operation. 
sector_count
: number of sectors to be prepared for reading operation. 
Requires
The corresponding MCU ports must be appropriately initialized for CF card. See
Cf_Init.
Example
// initialize compact flash for reading from sector 590
Cf_Read_Init(590, 1);
Prototype
function CF_Read_Byte() : byte;
Returns
Returns a byte read from Compact Flash sector buffer.
Note: Higher byte of the 
unsigned
return value is cleared. 
Description
Reads one byte from Compact Flash sector buffer location currently pointed to
by internal read pointers. These pointers will be autoicremented upon reading.
Requires
The corresponding MCU ports must be appropriately initialized for CF card. See
Cf_Init
CF card must be initialized for reading operation. See Cf_Read_Init.
Example
// Read a byte from compact flash:
var data : byte;
...
data := Cf_Read_Byte();