AN2616 Freescale Semiconductor / Motorola, AN2616 Datasheet - Page 44

no-image

AN2616

Manufacturer Part Number
AN2616
Description
Getting Started with HCS08 and CodeWarrior Using C
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2616
44
The definition of the bit can be found by right-clicking on the appropriate
variables. For example:
The definition of _TPM2C0SC:
Definition of type TPM2C0SCSTR is a structure:
Now MS0B is one bit of a byte in the structure Bits of the structure
TPM2C0SCTR, so we can use:
or
To reference it, alternatively, we can use one of the predefined macros:
Both examples refer to the Mode select B of TPM channel 0.
Summary: A register bit is defined by a macro as being its register and bit name
concatenated together with an underscore between the register and bit names.
Getting Started with HCS08 and CodeWarrior Using C
Freescale Semiconductor, Inc.
For More Information On This Product,
TPM2C0SC_MS0B
_TPM2C0SC.Bits.MS0B
TPM2C0SC.Bits.MS0B
TPM2C0SC_MS0B
Go to: www.freescale.com
MOTOROLA

Related parts for AN2616