TLE986x Device Family SDK
Data Fields
TIMER2x_Type Struct Reference

Detailed Description

TIMER2x Module (TIMER2x)

#include <tle986x.h>

Data Fields

union {
   __IOM uint8_t   reg
 
   struct {
      __IOM uint8_t   CP_RL2: 1
 
      __IOM uint8_t   C_T2: 1
 
      __IOM uint8_t   TR2: 1
 
      __IOM uint8_t   EXEN2: 1
 
      __IM   uint8_t: 2
 
      __IM uint8_t   EXF2: 1
 
      __IM uint8_t   TF2: 1
 
   }   bit
 
T2CON
 
__IM uint8_t RESERVED [3]
 
union {
   __IOM uint8_t   reg
 
   struct {
      __IOM uint8_t   DCEN: 1
 
      __IOM uint8_t   T2PRE: 3
 
      __IOM uint8_t   PREN: 1
 
      __IOM uint8_t   EDGESEL: 1
 
      __IOM uint8_t   T2RHEN: 1
 
      __IOM uint8_t   T2REGS: 1
 
   }   bit
 
T2MOD
 
__IM uint8_t RESERVED1 [3]
 
union {
   __IOM uint8_t   reg
 
   struct {
      __IOM uint8_t   RC2: 8
 
   }   bit
 
RC2L
 
__IM uint8_t RESERVED2 [3]
 
union {
   __IOM uint8_t   reg
 
   struct {
      __IOM uint8_t   RC2: 8
 
   }   bit
 
RC2H
 
__IM uint8_t RESERVED3 [3]
 
union {
   __IOM uint8_t   reg
 
   struct {
      __IOM uint8_t   T2L: 8
 
   }   bit
 
T2L
 
__IM uint8_t RESERVED4 [3]
 
union {
   __IOM uint8_t   reg
 
   struct {
      __IOM uint8_t   T2H: 8
 
   }   bit
 
T2H
 
__IM uint8_t RESERVED5 [3]
 
union {
   __IOM uint8_t   reg
 
   struct {
      __IOM uint8_t   EXF2EN: 1
 
      __IOM uint8_t   TF2EN: 1
 
   }   bit
 
T2CON1
 
__IM uint8_t RESERVED6 [3]
 
union {
   __IOM uint8_t   reg
 
   struct {
      __IM   uint8_t: 6
 
      __OM uint8_t   EXF2CLR: 1
 
      __OM uint8_t   TF2CLR: 1
 
   }   bit
 
T2ICLR
 

Field Documentation

◆ bit [1/8]

struct { ... } bit

◆ bit [2/8]

struct { ... } bit

◆ bit [3/8]

struct { ... } bit

◆ bit [4/8]

struct { ... } bit

◆ bit [5/8]

struct { ... } bit

◆ bit [6/8]

struct { ... } bit

◆ bit [7/8]

struct { ... } bit

◆ bit [8/8]

struct { ... } bit

◆ C_T2

__IOM uint8_t C_T2

[1..1] Timer or Counter Select

◆ CP_RL2

__IOM uint8_t CP_RL2

[0..0] Capture/Reload Select

◆ DCEN

__IOM uint8_t DCEN

[0..0] Up/Down Counter Enable

◆ EDGESEL

__IOM uint8_t EDGESEL

[5..5] Edge Select in Capture Mode/Reload Mode

◆ EXEN2

__IOM uint8_t EXEN2

[3..3] Timer 2 External Enable Control

◆ EXF2

__IM uint8_t EXF2

[6..6] Timer 2 External Flag

◆ EXF2CLR

__OM uint8_t EXF2CLR

[6..6] External Interrupt Clear Flag

◆ EXF2EN

__IOM uint8_t EXF2EN

[0..0] External Interrupt Enable

◆ PREN

__IOM uint8_t PREN

[4..4] Prescaler Enable

◆ RC2

[7..0] Reload/Capture Value

◆ RC2H

union { ... } RC2H

◆ RC2L

union { ... } RC2L

◆ reg

(@ 0x00000000) Timer 2 Control Register

(@ 0x00000004) Timer 2 Mode Register

(@ 0x00000008) Timer 2 Reload/Capture Register, Low Byte

(@ 0x0000000C) Timer 2 Reload/Capture Register, High Byte

(@ 0x00000010) Timer 2, Low Byte

(@ 0x00000014) Timer 2, High Byte

(@ 0x00000018) Timer 2 Control Register 1

(@ 0x0000001C) Timer 2 Interrupt Clear Register

◆ RESERVED

__IM uint8_t RESERVED[3]

◆ RESERVED1

__IM uint8_t RESERVED1[3]

◆ RESERVED2

__IM uint8_t RESERVED2[3]

◆ RESERVED3

__IM uint8_t RESERVED3[3]

◆ RESERVED4

__IM uint8_t RESERVED4[3]

◆ RESERVED5

__IM uint8_t RESERVED5[3]

◆ RESERVED6

__IM uint8_t RESERVED6[3]

◆ T2CON

union { ... } T2CON

◆ T2CON1

union { ... } T2CON1

◆ T2H [1/2]

[7..0] Timer 2 Value

◆ T2H [2/2]

union { ... } T2H

◆ T2ICLR

union { ... } T2ICLR

◆ T2L [1/2]

[7..0] Timer 2 Value

◆ T2L [2/2]

union { ... } T2L

◆ T2MOD

union { ... } T2MOD

◆ T2PRE

__IOM uint8_t T2PRE

[3..1] Timer 2 Prescaler Bit

◆ T2REGS

__IOM uint8_t T2REGS

[7..7] Edge Select for Timer 2 External Start

◆ T2RHEN

__IOM uint8_t T2RHEN

[6..6] Timer 2 External Start Enable

◆ TF2

[7..7] Timer 2 Overflow/Underflow Flag

◆ TF2CLR

__OM uint8_t TF2CLR

[7..7] Overflow/Underflow Interrupt Clear Flag

◆ TF2EN

__IOM uint8_t TF2EN

[1..1] Overflow/Underflow Interrupt Enable

◆ TR2

[2..2] Timer 2 Start/Stop Control

◆ uint8_t

__IM uint8_t

The documentation for this struct was generated from the following file: