Naming Conventions
Naming Conventions
The header files use a familiar set of naming conventions. They are consistent with the Code
Composer Studio configuration tool, and generated file naming conventions
Structure Naming Conventions
Structure Naming Conventions
The DSP281x header files define:
The DSP281x header files define:
All of the peripheral structures
All of the peripheral structures
All of the register names
All of the register names
All of the bit field names
All of the bit field names
All of the register addresses
All of the register addresses
PeripheralName
PeripheralName
.
.
RegisterName
RegisterName
.all
.all
// Access full 16 or 32
// Access full 16 or 32
-
-
bit register
bit register
PeripheralName
PeripheralName
.
.
RegisterName
RegisterName
.half.LSW
.half.LSW
// Access low 16
// Access low 16
-
-
bits of 32
bits of 32
-
-
bit register
bit register
PeripheralName
PeripheralName
.
.
RegisterName
RegisterName
.half.MSW
.half.MSW
// Access high 16
// Access high 16
-
-
bits of 32
bits of 32
-
-
bit register
bit register
PeripheralName
PeripheralName
.
.
RegisterName
RegisterName
.bit.
.bit.
FieldName
FieldName
// Access specified bit fields of register
// Access specified bit fields of register
Notes: [1] “
Notes: [1] “
PeripheralName
PeripheralName
” are assigned by TI and found in the DSP281x header files.
” are assigned by TI and found in the DSP281x header files.
They are a combination of capital and small letters (i.e. CpuTi
They are a combination of capital and small letters (i.e. CpuTi
mer0Regs).
mer0Regs).
[2] “
[2] “
RegisterName
RegisterName
” are the same names as used in the data sheet.
” are the same names as used in the data sheet.
They are always in capital letters (i.e. TCR, TIM, TPR,.
They are always in capital letters (i.e. TCR, TIM, TPR,.
.).
.).
[3] “
[3] “
FieldName
FieldName
” are the same names as used in the data sheet.
” are the same names as used in the data sheet.
They are always in capital letters (i.e. POL, TOG, TSS,..).
They are always in capital letters (i.e. POL, TOG, TSS,..).
Code Maestro to the Rescue!
Code Maestro to the Rescue!
3 - 6 C28x - Peripheral Registers Header Files