Data Manager provides control of
data . Functions of manager:
- Dynamic allocation of external memory;
- Organization and synchronization of a data access.
The manager supports the following devices:
- Internal EEPROM;
- External EEPROM on I2C;
- External EEPROM on SPI;
- FRAM on I2C;
- FRAM on SPI;
- FRAM on TWI.
The manager gives users the interface of access and a means of data organization.
The user can divide external memory into areas. Each area, in turn, can have the
personal allocation manager.
The Data Manager supports two algorithms of allocation:
1. LIFO. Algorithm "Stack".
2. Allocation by pages (blocks of
constant length).
The size of blocks (at allocation by pages) the user establishes at
initialization of the manager.
Librarys the Data Manager and the
Memory Manager
together compose a integrated control system
of the data. For user, librarys provide polymorphic access to data medium.
The representative of a Data Manager in system is the Administrator of
manager.
The Administrator of manager is an object of a pseudo-class on ANSI-C.
The Administrator of manager
encapsulates code and data.
Methods of a pseudo-class are standart functions (interface) of access to data
mediums:
- Reading;
- Writing;
- Filling;
- Check of a correctness of the information;
- etc.
The user can redefine methods of system and increase opportunities OS.
Such necessity can arise, for example, at addition of new data mediums
undescribed in LG.RTOS.
System FAT16 LG.RTOS - is completely compatible with
FAT16 Microsoft.
FAT16 provides an abstract level of file system.
The physical level is provided with the driver of the concrete device.
The abstract level of access FAT16 includes more 30 functions.
The abstract level allows to carry out various actions with files, such as:
- Connection of the device;
- Opening a file;
- Closing a file;
- Creation of a file;
- Removal of a file;
- Positioning;
- Reading;
- Writing;
- Filling;
- Search of a file or a directory by
name;
- Search of a file or a directory by
date ;
- Reading / Writing of date and time;
- Resize;
- a Access to attributes;
- And so forth.
The representatives FAT16 in system is the Disk Descriptor and
File Heading.
The Disk Descriptor is an object of a pseudo-class on ANSI-C.
The Disk Descriptor
encapsulates code and data.
Methods of a pseudo-class are standart functions (interface) of access to data
mediums:
- Reading sector of a disk;
- Writing of sector of a disk;
- Filling sector of a disk;
- Check of a correctness of the data of sector;
- Reading / Writing of date - time.
The user can redefine methods of system and increase opportunities OS.
Such necessity can arise, for example, at addition of new data mediums
undescribed in LG.RTOS.