NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

TIM_MATCHCFG_Type Struct Reference

TIM_MATCHCFG_Type Struct Reference
[TIM_Public_Types]

Match channel configuration structure. More...

#include <lpc17xx_timer.h>

Data Fields

uint8_t MatchChannel
 Match channel, should be in range from 0..3.
uint8_t IntOnMatch
 Interrupt On match, should be:

  • ENABLE: Enable this function.

uint8_t StopOnMatch
 Stop On match, should be:

  • ENABLE: Enable this function.

uint8_t ResetOnMatch
 Reset On match, should be:

  • ENABLE: Enable this function.

uint8_t ExtMatchOutputType
 External Match Output type, should be:

  • 0: Do nothing for external output pin if match
  • 1: Force external output pin to low if match
  • 2: Force external output pin to high if match
  • 3: Toggle external output pin if match.

uint32_t MatchValue
 Reserved.

Detailed Description

Match channel configuration structure.

Definition at line 230 of file lpc17xx_timer.h.


Field Documentation

External Match Output type, should be:

  • 0: Do nothing for external output pin if match
  • 1: Force external output pin to low if match
  • 2: Force external output pin to high if match
  • 3: Toggle external output pin if match.

Definition at line 246 of file lpc17xx_timer.h.

uint8_t IntOnMatch

Interrupt On match, should be:

  • ENABLE: Enable this function.

  • DISABLE: Disable this function.

Definition at line 233 of file lpc17xx_timer.h.

uint8_t MatchChannel

Match channel, should be in range from 0..3.

Definition at line 231 of file lpc17xx_timer.h.

uint32_t MatchValue

Reserved.

Definition at line 253 of file lpc17xx_timer.h.

uint8_t ResetOnMatch

Reset On match, should be:

  • ENABLE: Enable this function.

  • DISABLE: Disable this function.

Definition at line 241 of file lpc17xx_timer.h.

uint8_t StopOnMatch

Stop On match, should be:

  • ENABLE: Enable this function.

  • DISABLE: Disable this function.

Definition at line 237 of file lpc17xx_timer.h.