Actions

EmSys

Tm4clib-gptm-defines

From EdWiki

GPTM Constants

Values that can be passed to gptm_configure as the ui32Config parameter.

TIMER_CFG_ONE_SHOT

#define TIMER_CFG_ONE_SHOT 0x00000021 /* Full-width one-shot timer */

TIMER_CFG_ONE_SHOT_UP

#define TIMER_CFG_ONE_SHOT_UP 0x00000031 /* Full-width one-shot up-count timer */

TIMER_CFG_PERIODIC

#define TIMER_CFG_PERIODIC 0x00000022 /* Full-width periodic timer */

TIMER_CFG_PERIODIC_UP

#define TIMER_CFG_PERIODIC_UP 0x00000032 /* Full-width periodic up-count timer */

TIMER_CFG_RTC

#define TIMER_CFG_RTC 0x01000000 /* Full-width RTC timer */

TIMER_CFG_SPLIT_PAIR

#define TIMER_CFG_SPLIT_PAIR 0x04000000 /* Two half-width timers */

TIMER_CFG_A_ONE_SHOT

#define TIMER_CFG_A_ONE_SHOT 0x00000021 /* Timer A one-shot timer */

TIMER_CFG_A_ONE_SHOT_UP

#define TIMER_CFG_A_ONE_SHOT_UP 0x00000031 /* Timer A one-shot up-count timer */

TIMER_CFG_A_PERIODIC

#define TIMER_CFG_A_PERIODIC 0x00000022 /* Timer A periodic timer */

TIMER_CFG_A_PERIODIC_UP

#define TIMER_CFG_A_PERIODIC_UP 0x00000032 /* Timer A periodic up-count timer */

TIMER_CFG_A_CAP_COUNT

#define TIMER_CFG_A_CAP_COUNT 0x00000003 /* Timer A event counter */

TIMER_CFG_A_CAP_COUNT_UP

#define TIMER_CFG_A_CAP_COUNT_UP 0x00000013 /* Timer A event up-counter */

TIMER_CFG_A_CAP_TIME

#define TIMER_CFG_A_CAP_TIME 0x00000007 /* Timer A event timer */

TIMER_CFG_A_CAP_TIME_UP

#define TIMER_CFG_A_CAP_TIME_UP 0x00000017 /* Timer A event up-count timer */

TIMER_CFG_A_PWM

#define TIMER_CFG_A_PWM 0x0000000A /* Timer A PWM output */

TIMER_CFG_B_ONE_SHOT

#define TIMER_CFG_B_ONE_SHOT 0x00002100 /* Timer B one-shot timer */

TIMER_CFG_B_ONE_SHOT_UP

#define TIMER_CFG_B_ONE_SHOT_UP 0x00003100 /* Timer B one-shot up-count timer */

TIMER_CFG_B_PERIODIC

#define TIMER_CFG_B_PERIODIC 0x00002200 /* Timer B periodic timer */

TIMER_CFG_B_PERIODIC_UP

#define TIMER_CFG_B_PERIODIC_UP 0x00003200 /* Timer B periodic up-count timer */

TIMER_CFG_B_CAP_COUNT

#define TIMER_CFG_B_CAP_COUNT 0x00000300 /* Timer B event counter */

TIMER_CFG_B_CAP_COUNT_UP

#define TIMER_CFG_B_CAP_COUNT_UP 0x00001300 /* Timer B event up-counter */

TIMER_CFG_B_CAP_TIME

#define TIMER_CFG_B_CAP_TIME 0x00000700 /* Timer B event timer */

TIMER_CFG_B_CAP_TIME_UP

#define TIMER_CFG_B_CAP_TIME_UP 0x00001700 /* Timer B event up-count timer */

TIMER_CFG_B_PWM

#define TIMER_CFG_B_PWM 0x00000A00 /* Timer B PWM output */

TIMER_CFG_A_ACT_TOINTD

#define TIMER_CFG_A_ACT_TOINTD 0x00010000 /* Timer A compare action disable time-out interrupt. */

TIMER_CFG_A_ACT_NONE

#define TIMER_CFG_A_ACT_NONE 0x00000000 /* Timer A compare action none. */

TIMER_CFG_A_ACT_TOGGLE

#define TIMER_CFG_A_ACT_TOGGLE 0x00020000 /* Timer A compare action toggle. */

TIMER_CFG_A_ACT_CLRTO

#define TIMER_CFG_A_ACT_CLRTO 0x00040000 /* Timer A compare action CCP clear on time-out. */

TIMER_CFG_A_ACT_SETTO

#define TIMER_CFG_A_ACT_SETTO 0x00060000 /* Timer A compare action CCP set on time-out. */

TIMER_CFG_A_ACT_SETTOGTO

#define TIMER_CFG_A_ACT_SETTOGTO 0x00080000 /* Timer A compare action set CCP toggle on time-out. */

TIMER_CFG_A_ACT_CLRTOGTO

#define TIMER_CFG_A_ACT_CLRTOGTO 0x000A0000 /* Timer A compare action clear CCP toggle on time-out. */

TIMER_CFG_A_ACT_SETCLRTO

#define TIMER_CFG_A_ACT_SETCLRTO 0x000C0000 /* Timer A compare action set CCP clear on time-out. */

TIMER_CFG_A_ACT_CLRSETTO

#define TIMER_CFG_A_ACT_CLRSETTO 0x000E0000 /* Timer A compare action clear CCP set on time-out. */

TIMER_CFG_B_ACT_TOINTD

#define TIMER_CFG_B_ACT_TOINTD 0x00100000 /* Timer B compare action disable time-out interrupt. */

TIMER_CFG_B_ACT_NONE

#define TIMER_CFG_B_ACT_NONE 0x00000000 /* Timer A compare action none. */

TIMER_CFG_B_ACT_TOGGLE

#define TIMER_CFG_B_ACT_TOGGLE 0x00200000 /* Timer A compare action toggle. */

TIMER_CFG_B_ACT_CLRTO

#define TIMER_CFG_B_ACT_CLRTO 0x00400000 /* Timer A compare action CCP clear on time-out. */

TIMER_CFG_B_ACT_SETTO

#define TIMER_CFG_B_ACT_SETTO 0x00600000 /* Timer A compare action CCP set on time-out. */

TIMER_CFG_B_ACT_SETTOGTO

#define TIMER_CFG_B_ACT_SETTOGTO 0x00800000 /* Timer A compare action set CCP toggle on time-out. */

TIMER_CFG_B_ACT_CLRTOGTO

#define TIMER_CFG_B_ACT_CLRTOGTO 0x00A00000 /* Timer A compare action clear CCP toggle on time-out. */

TIMER_CFG_B_ACT_SETCLRTO

#define TIMER_CFG_B_ACT_SETCLRTO 0x00C00000 /* Timer A compare action set CCP clear on time-out. */

TIMER_CFG_B_ACT_CLRSETTO

#define TIMER_CFG_B_ACT_CLRSETTO 0x0000E000 /* Timer A compare action clear CCP set on time-out. */

Values that can be passed to gptm_int_enable, gpt_disable,_int and gptm_clear_int as the ui32IntFlags parameter, and returned from gptm_int_status.

TIMER_TIMB_DMA

#define TIMER_TIMB_DMA 0x00002000 /* TimerB DMA Complete Interrupt. */

TIMER_TIMB_MATCH

#define TIMER_TIMB_MATCH 0x00000800 /* TimerB match interrupt */

TIMER_CAPB_EVENT

#define TIMER_CAPB_EVENT 0x00000400 /* CaptureB event interrupt */

TIMER_CAPB_MATCH

#define TIMER_CAPB_MATCH 0x00000200 /* CaptureB match interrupt */

TIMER_TIMB_TIMEOUT

#define TIMER_TIMB_TIMEOUT 0x00000100 /* TimerB time out interrupt */

TIMER_TIMA_DMA

#define TIMER_TIMA_DMA 0x00000020 /* TimerA DMA Complete Interrupt. */

TIMER_TIMA_MATCH

#define TIMER_TIMA_MATCH 0x00000010 /* TimerA match interrupt */

TIMER_RTC_MATCH

#define TIMER_RTC_MATCH 0x00000008 /* RTC interrupt mask */

TIMER_CAPA_EVENT

#define TIMER_CAPA_EVENT 0x00000004 /* CaptureA event interrupt */

TIMER_CAPA_MATCH

#define TIMER_CAPA_MATCH 0x00000002 /* CaptureA match interrupt */

TIMER_TIMA_TIMEOUT

#define TIMER_TIMA_TIMEOUT 0x00000001 /* TimerA time out interrupt */

/* Values that can be passed to gptm_control_event as the ui32Event parameter. */

TIMER_EVENT_POS_EDGE

#define TIMER_EVENT_POS_EDGE 0x00000000 /* Count positive edges */

TIMER_EVENT_NEG_EDGE

#define TIMER_EVENT_NEG_EDGE 0x00000404 /* Count negative edges */

TIMER_EVENT_BOTH_EDGES

#define TIMER_EVENT_BOTH_EDGES 0x00000C0C /* Count both edges */

/* Values that can be passed to most of the timer APIs as the ui32Timer parameter. */

TIMER_A

#define TIMER_A 0x000000ff /* Timer A */

TIMER_B

#define TIMER_B 0x0000ff00 /* Timer B */

TIMER_BOTH

#define TIMER_BOTH 0x0000ffff /* Timer Both */

/* Values that can be passed to gptm_synchronize as the ui32Timers parameter. */

TIMER_0A_SYNC

#define TIMER_0A_SYNC 0x00000001 /* Synchronize Timer 0A */

TIMER_0B_SYNC

#define TIMER_0B_SYNC 0x00000002 /* Synchronize Timer 0B */

TIMER_1A_SYNC

#define TIMER_1A_SYNC 0x00000004 /* Synchronize Timer 1A */

TIMER_1B_SYNC

#define TIMER_1B_SYNC 0x00000008 /* Synchronize Timer 1B */

TIMER_2A_SYNC

#define TIMER_2A_SYNC 0x00000010 /* Synchronize Timer 2A */

TIMER_2B_SYNC

#define TIMER_2B_SYNC 0x00000020 /* Synchronize Timer 2B */

TIMER_3A_SYNC

#define TIMER_3A_SYNC 0x00000040 /* Synchronize Timer 3A */

TIMER_3B_SYNC

#define TIMER_3B_SYNC 0x00000080 /* Synchronize Timer 3B */

TIMER_4A_SYNC

#define TIMER_4A_SYNC 0x00000100 /* Synchronize Timer 4A */

TIMER_4B_SYNC

#define TIMER_4B_SYNC 0x00000200 /* Synchronize Timer 4B */

TIMER_5A_SYNC

#define TIMER_5A_SYNC 0x00000400 /* Synchronize Timer 5A */

TIMER_5B_SYNC

#define TIMER_5B_SYNC 0x00000800 /* Synchronize Timer 5B */

WTIMER_0A_SYNC

#define WTIMER_0A_SYNC 0x00001000 /* Synchronize Wide Timer 0A */

WTIMER_0B_SYNC

#define WTIMER_0B_SYNC 0x00002000 /* Synchronize Wide Timer 0B */

WTIMER_1A_SYNC

#define WTIMER_1A_SYNC 0x00004000 /* Synchronize Wide Timer 1A */

WTIMER_1B_SYNC

#define WTIMER_1B_SYNC 0x00008000 /* Synchronize Wide Timer 1B */

WTIMER_2A_SYNC

#define WTIMER_2A_SYNC 0x00010000 /* Synchronize Wide Timer 2A */

WTIMER_2B_SYNC

#define WTIMER_2B_SYNC 0x00020000 /* Synchronize Wide Timer 2B */

WTIMER_3A_SYNC

#define WTIMER_3A_SYNC 0x00040000 /* Synchronize Wide Timer 3A */

WTIMER_3B_SYNC

#define WTIMER_3B_SYNC 0x00080000 /* Synchronize Wide Timer 3B */

WTIMER_4A_SYNC

#define WTIMER_4A_SYNC 0x00100000 /* Synchronize Wide Timer 4A */

WTIMER_4B_SYNC

#define WTIMER_4B_SYNC 0x00200000 /* Synchronize Wide Timer 4B */

WTIMER_5A_SYNC

#define WTIMER_5A_SYNC 0x00400000 /* Synchronize Wide Timer 5A */

WTIMER_5B_SYNC

#define WTIMER_5B_SYNC 0x00800000 /* Synchronize Wide Timer 5B */

Values that can be passed to gptm_set_clock_source() or returned from gptm_get_clock_source().

TIMER_CLOCK_SYSTEM

#define TIMER_CLOCK_SYSTEM 0x00000000

TIMER_CLOCK_PIOSC

#define TIMER_CLOCK_PIOSC 0x00000001

/* Values that can be passed to gptm_set_dma_event() or returned from gpt_get_dma_event().

TIMER_DMA_MODEMATCH_B

#define TIMER_DMA_MODEMATCH_B 0x00000800

TIMER_DMA_CAPEVENT_B

#define TIMER_DMA_CAPEVENT_B 0x00000400

TIMER_DMA_CAPMATCH_B

#define TIMER_DMA_CAPMATCH_B 0x00000200

TIMER_DMA_TIMEOUT_B

#define TIMER_DMA_TIMEOUT_B 0x00000100

TIMER_DMA_MODEMATCH_A

#define TIMER_DMA_MODEMATCH_A 0x00000010

TIMER_DMA_RTC_A

#define TIMER_DMA_RTC_A 0x00000008

TIMER_DMA_CAPEVENT_A

#define TIMER_DMA_CAPEVENT_A 0x00000004

TIMER_DMA_CAPMATCH_A

#define TIMER_DMA_CAPMATCH_A 0x00000002

TIMER_DMA_TIMEOUT_A

#define TIMER_DMA_TIMEOUT_A 0x00000001

/* Values that can be passed to gptm_set_adc_event() or returned from gptm_get_adc_event(). */

TIMER_ADC_MODEMATCH_B

#define TIMER_ADC_MODEMATCH_B 0x00000800

TIMER_ADC_CAPEVENT_B

#define TIMER_ADC_CAPEVENT_B 0x00000400

TIMER_ADC_CAPMATCH_B

#define TIMER_ADC_CAPMATCH_B 0x00000200

TIMER_ADC_TIMEOUT_B

#define TIMER_ADC_TIMEOUT_B 0x00000100

TIMER_ADC_MODEMATCH_A

#define TIMER_ADC_MODEMATCH_A 0x00000010

TIMER_ADC_RTC_A

#define TIMER_ADC_RTC_A 0x00000008

TIMER_ADC_CAPEVENT_A

#define TIMER_ADC_CAPEVENT_A 0x00000004

TIMER_ADC_CAPMATCH_A

#define TIMER_ADC_CAPMATCH_A 0x00000002

TIMER_ADC_TIMEOUT_A

#define TIMER_ADC_TIMEOUT_A 0x00000001

Values that can be passed to gptm_update_mode().

TIMER_UP_LOAD_IMMEDIATE

#define TIMER_UP_LOAD_IMMEDIATE 0x00000000

TIMER_UP_LOAD_TIMEOUT

#define TIMER_UP_LOAD_TIMEOUT 0x00000100

TIMER_UP_MATCH_IMMEDIATE

#define TIMER_UP_MATCH_IMMEDIATE 0x00000000

TIMER_UP_MATCH_TIMEOUT

#define TIMER_UP_MATCH_TIMEOUT 0x00000400