14 / 30
iSense Ethernet Gateway User Guide
coalesenses
research to innovate
length
Determines how many bytes should be accessed. The length must be a
multiple of 512
buffer
Pointer to a buffer to/from which blocks are copied from/to the SD Card
Returns:
Status code indicating whether the desired read-operation was successful or not. The upper three bits
are don’t care bits, the lower 5 indicate the status. A value of
0
indicates success.
4.9.
write
uint8 SDCard::write( uint64 address, uint32 length, uint8* buffer );
Description:
Writes a given number of bytes to a certain address of the SD card. The method behaves exactly like
access
, since it only calls
access
with the parameter write set to
true
.
Parameter:
address
The address to which shall be written
length
Determines how many bytes should be read.
buffer
Pointer to a buffer to which blocks are copied from the SD Card
Returns:
Status code indicating whether the desired write-operation was successful or not. The upper three bits
are don’t care bits, the lower 5 indicate the status. A value of
5
indicates success.
4.10.
write_block
uint8 SDCard::write( uint32 block, uint32 length, uint8* buffer );
Description:
Writes a given number of blocks starting at a certain block to the SD Card. The method behaves
exactly like
access
, since it only calls
access
with the parameter write set to true.
Parameter:
block
The block to which shall be written
length
Determines how many bytes should be written. The length should be a
multiple of 512
buffer
Pointer to a buffer to which blocks are copied from the SD Card
Returns: