DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

AN664 Просмотр технического описания (PDF) - Silicon Laboratories

Номер в каталоге
Компоненты Описание
производитель
AN664 Datasheet PDF : 18 Pages
1 2 3 4 5 6 7 8 9 10 Next Last
AN664
4. HAL Organization
The HAL is organized based on the SiM3xxxx peripheral modules. Modules of the same type and revision are
exactly the same, so these modules share the same generic description. The individual instances of the modules
then instantiate their own copies of the generic description. For example, the HAL implements a USART (module)
A (revision) type. This type is then instantiated multiple times for USART0 and USART1, which have their own
base pointers.
Each generic module has a *_Registers.h file that contains a module structure comprised of register structures and
bit fields properly aligned in memory. The *_Type.h file contains the HAL interface for the module, and the *_Type.c
contains the HAL implementation. Some modules will also have a *_Support.h file that contains helpful
enumeration definitions. Finally, a device header file named for the device (e.g., sim3u1xx.h) contains base pointer
and interrupt vector instantiations for each module on a device.
Figure 3 displays a block diagram showing the relationship of the HAL files.
sim3u1xx.h
Interrupt Vectors
Base Pointers
Module
Support.h
Enumerated Type
Definitions
Registers.h
Register and Bit
Definitions
Type.h
Function
Prototypes and
Macros
Figure 3. HAL Block Diagram
Type.c
Functions
Rev. 0.2
3

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]