HAL Overview
1.2 HAL Overview
What the CSL HAL Offers:
1-4
The hardware abstraction layer, or HAL, is a set of constants and macros that
fully describes the peripheral registers by way of symbols. It is capable of hid-
ing subtle differences between devices such as bit-fields changing size or
position within a register. In addition, the HAL can substitute a NULL register
in the case where a register is supported on one device but not another. The
whole purpose of the HAL is to provide the service layer a symbolic interface
into the hardware. It is not intended as a user interface or API. This is explained
further in section 1.3 , Service Layer Overview .
Symbol definitions for every peripheral register
J
HPER_REG_ADDR
J
HPER_REG
Symbol definitions for every bit-field of every peripheral register
J
HPER_REG_FIELD_MASK
J
HPER_REG_FIELD_SHIFT
Macro definitions to get and set any field of any peripheral register
J
HPER_REG_FIELD_GET()
J
HPER_REG_FIELD_SET()
Macro definitions to get and set any peripheral register
J
HPER_REG_GET()
J
HPER_REG_SET()
Macro definitions to configure any peripheral register based on field
values
J
HPER_REG_CFG()
HPER – peripheral module name, ex. DMA
REG – peripheral register name, ex. PRICTL
FIELD – peripheral register field name, ex. ESIZE
For a complete reference of the HAL, see Chapter 5, HAL Reference.
Need help?
Do you have a question about the TMS320C6000 and is the answer not in the manual?