MSP430 DriverLib for MSP430F5xx_6xx Devices  2.91.13.01
tec

Functions

void TEC_initExternalClearInput (uint16_t baseAddress, uint8_t signalType, uint8_t signalHold, uint8_t polarityBit)
 Configures the Timer Event Control External Clear Input. More...
 
void TEC_initExternalFaultInput (uint16_t baseAddress, TEC_initExternalFaultInputParam *param)
 Configures the Timer Event Control External Fault Input. More...
 
void TEC_enableExternalFaultInput (uint16_t baseAddress, uint8_t channelEventBlock)
 Enable the Timer Event Control External fault input. More...
 
void TEC_disableExternalFaultInput (uint16_t baseAddress, uint8_t channelEventBlock)
 Disable the Timer Event Control External fault input. More...
 
void TEC_enableExternalClearInput (uint16_t baseAddress)
 Enable the Timer Event Control External Clear Input. More...
 
void TEC_disableExternalClearInput (uint16_t baseAddress)
 Disable the Timer Event Control External Clear Input. More...
 
void TEC_enableAuxiliaryClearSignal (uint16_t baseAddress)
 Enable the Timer Event Control Auxiliary Clear Signal. More...
 
void TEC_disableAuxiliaryClearSignal (uint16_t baseAddress)
 Disable the Timer Event Control Auxiliary Clear Signal. More...
 
void TEC_clearInterrupt (uint16_t baseAddress, uint8_t mask)
 Clears the Timer Event Control Interrupt flag. More...
 
uint8_t TEC_getInterruptStatus (uint16_t baseAddress, uint8_t mask)
 Gets the current Timer Event Control interrupt status. More...
 
void TEC_enableInterrupt (uint16_t baseAddress, uint8_t mask)
 Enables individual Timer Event Control interrupt sources. More...
 
void TEC_disableInterrupt (uint16_t baseAddress, uint8_t mask)
 Disables individual Timer Event Control interrupt sources. More...
 
uint8_t TEC_getExternalFaultStatus (uint16_t baseAddress, uint8_t mask)
 Gets the current Timer Event Control External Fault Status. More...
 
void TEC_clearExternalFaultStatus (uint16_t baseAddress, uint8_t mask)
 Clears the Timer Event Control External Fault Status. More...
 
uint8_t TEC_getExternalClearStatus (uint16_t baseAddress)
 Gets the current Timer Event Control External Clear Status. More...
 
void TEC_clearExternalClearStatus (uint16_t baseAddress)
 Clears the Timer Event Control External Clear Status. More...
 

Detailed Description

Function Documentation

§ TEC_clearExternalClearStatus()

void TEC_clearExternalClearStatus ( uint16_t  baseAddress)

Clears the Timer Event Control External Clear Status.

Parameters
baseAddressis the base address of the TEC module.

Modified bits of TECxINT register.

Returns
None

§ TEC_clearExternalFaultStatus()

void TEC_clearExternalFaultStatus ( uint16_t  baseAddress,
uint8_t  mask 
)

Clears the Timer Event Control External Fault Status.

Parameters
baseAddressis the base address of the TEC module.
maskis the masked status flag be cleared Mask value is the logical OR of any of the following:
  • TEC_CE0
  • TEC_CE1
  • TEC_CE2
  • TEC_CE3 - (available on TEC5 TEC7)
  • TEC_CE4 - (available on TEC5 TEC7)
  • TEC_CE5 - (only available on TEC7)
  • TEC_CE6 - (only available on TEC7)

Modified bits of TECxINT register.

Returns
None

§ TEC_clearInterrupt()

void TEC_clearInterrupt ( uint16_t  baseAddress,
uint8_t  mask 
)

Clears the Timer Event Control Interrupt flag.

Parameters
baseAddressis the base address of the TEC module.
maskis the masked interrupt flag to be cleared. Mask value is the logical OR of any of the following:
  • TEC_EXTERNAL_FAULT_INTERRUPT - External fault interrupt flag
  • TEC_EXTERNAL_CLEAR_INTERRUPT - External clear interrupt flag
  • TEC_AUXILIARY_CLEAR_INTERRUPT - Auxiliary clear interrupt flag

Modified bits of TECxINT register.

Returns
None

§ TEC_disableAuxiliaryClearSignal()

void TEC_disableAuxiliaryClearSignal ( uint16_t  baseAddress)

Disable the Timer Event Control Auxiliary Clear Signal.

Parameters
baseAddressis the base address of the TEC module.

Modified bits of TECxCTL2 register.

Returns
None

§ TEC_disableExternalClearInput()

void TEC_disableExternalClearInput ( uint16_t  baseAddress)

Disable the Timer Event Control External Clear Input.

Parameters
baseAddressis the base address of the TEC module.

Modified bits of TECxCTL2 register.

Returns
None

§ TEC_disableExternalFaultInput()

void TEC_disableExternalFaultInput ( uint16_t  baseAddress,
uint8_t  channelEventBlock 
)

Disable the Timer Event Control External fault input.

Parameters
baseAddressis the base address of the TEC module.
channelEventBlockselects the channel event block Valid values are:
  • TEC_CE0
  • TEC_CE1
  • TEC_CE2
  • TEC_CE3 - (available on TEC5 TEC7)
  • TEC_CE4 - (available on TEC5 TEC7)
  • TEC_CE5 - (only available on TEC7)
  • TEC_CE6 - (only available on TEC7)

Modified bits of TECxCTL0 register.

Returns
None

§ TEC_disableInterrupt()

void TEC_disableInterrupt ( uint16_t  baseAddress,
uint8_t  mask 
)

Disables individual Timer Event Control interrupt sources.

Disables the indicated Timer Event Control interrupt sources. Only the sources that are enabled can be reflected to the processor interrupt; disabled sources have no effect on the processor.

Parameters
baseAddressis the base address of the TEC module.
maskis the bit mask of the interrupt sources to be disabled. Mask value is the logical OR of any of the following:
  • TEC_EXTERNAL_FAULT_INTERRUPT - External fault interrupt flag
  • TEC_EXTERNAL_CLEAR_INTERRUPT - External clear interrupt flag
  • TEC_AUXILIARY_CLEAR_INTERRUPT - Auxiliary clear interrupt flag

Modified bits of TECxINT register.

Returns
None

§ TEC_enableAuxiliaryClearSignal()

void TEC_enableAuxiliaryClearSignal ( uint16_t  baseAddress)

Enable the Timer Event Control Auxiliary Clear Signal.

Parameters
baseAddressis the base address of the TEC module.

Modified bits of TECxCTL2 register.

Returns
None

§ TEC_enableExternalClearInput()

void TEC_enableExternalClearInput ( uint16_t  baseAddress)

Enable the Timer Event Control External Clear Input.

Parameters
baseAddressis the base address of the TEC module.

Modified bits of TECxCTL2 register.

Returns
None

§ TEC_enableExternalFaultInput()

void TEC_enableExternalFaultInput ( uint16_t  baseAddress,
uint8_t  channelEventBlock 
)

Enable the Timer Event Control External fault input.

Parameters
baseAddressis the base address of the TEC module.
channelEventBlockselects the channel event block Valid values are:
  • TEC_CE0
  • TEC_CE1
  • TEC_CE2
  • TEC_CE3 - (available on TEC5 TEC7)
  • TEC_CE4 - (available on TEC5 TEC7)
  • TEC_CE5 - (only available on TEC7)
  • TEC_CE6 - (only available on TEC7)

Modified bits of TECxCTL0 register.

Returns
None

§ TEC_enableInterrupt()

void TEC_enableInterrupt ( uint16_t  baseAddress,
uint8_t  mask 
)

Enables individual Timer Event Control interrupt sources.

Enables the indicated Timer Event Control interrupt sources. Only the sources that are enabled can be reflected to the processor interrupt; disabled sources have no effect on the processor. Does not clear interrupt flags.

Parameters
baseAddressis the base address of the TEC module.
maskis the bit mask of the interrupt sources to be enabled. Mask value is the logical OR of any of the following:
  • TEC_EXTERNAL_FAULT_INTERRUPT - External fault interrupt flag
  • TEC_EXTERNAL_CLEAR_INTERRUPT - External clear interrupt flag
  • TEC_AUXILIARY_CLEAR_INTERRUPT - Auxiliary clear interrupt flag

Modified bits of TECxINT register.

Returns
None

§ TEC_getExternalClearStatus()

uint8_t TEC_getExternalClearStatus ( uint16_t  baseAddress)

Gets the current Timer Event Control External Clear Status.

Parameters
baseAddressis the base address of the TEC module.
Returns
One of the following:
  • TEC_EXTERNAL_CLEAR_DETECTED
  • TEC_EXTERNAL_CLEAR_NOT_DETECTED
    indicating the status of the external clear

§ TEC_getExternalFaultStatus()

uint8_t TEC_getExternalFaultStatus ( uint16_t  baseAddress,
uint8_t  mask 
)

Gets the current Timer Event Control External Fault Status.

This returns the Timer Event Control fault status for the module.

Parameters
baseAddressis the base address of the TEC module.
maskis the masked interrupt flag status to be returned. Mask value is the logical OR of any of the following:
  • TEC_CE0
  • TEC_CE1
  • TEC_CE2
  • TEC_CE3 - (available on TEC5 TEC7)
  • TEC_CE4 - (available on TEC5 TEC7)
  • TEC_CE5 - (only available on TEC7)
  • TEC_CE6 - (only available on TEC7)
Returns
Logical OR of any of the following:
  • TEC_CE0
  • TEC_CE1
  • TEC_CE2
  • TEC_CE3 (available on TEC5 TEC7)
  • TEC_CE4 (available on TEC5 TEC7)
  • TEC_CE5 (only available on TEC7)
  • TEC_CE6 (only available on TEC7)
    indicating the external fault status of the masked channel event blocks

§ TEC_getInterruptStatus()

uint8_t TEC_getInterruptStatus ( uint16_t  baseAddress,
uint8_t  mask 
)

Gets the current Timer Event Control interrupt status.

This returns the interrupt status for the module based on which flag is passed.

Parameters
baseAddressis the base address of the TEC module.
maskis the masked interrupt flag status to be returned. Mask value is the logical OR of any of the following:
  • TEC_EXTERNAL_FAULT_INTERRUPT - External fault interrupt flag
  • TEC_EXTERNAL_CLEAR_INTERRUPT - External clear interrupt flag
  • TEC_AUXILIARY_CLEAR_INTERRUPT - Auxiliary clear interrupt flag
Returns
Logical OR of any of the following:
  • TEC_EXTERNAL_FAULT_INTERRUPT External fault interrupt flag
  • TEC_EXTERNAL_CLEAR_INTERRUPT External clear interrupt flag
  • TEC_AUXILIARY_CLEAR_INTERRUPT Auxiliary clear interrupt flag
    indicating the status of the masked interrupts

§ TEC_initExternalClearInput()

void TEC_initExternalClearInput ( uint16_t  baseAddress,
uint8_t  signalType,
uint8_t  signalHold,
uint8_t  polarityBit 
)

Configures the Timer Event Control External Clear Input.

Parameters
baseAddressis the base address of the TEC module.
signalTypeis the selected signal type Valid values are:
  • TEC_EXTERNAL_CLEAR_SIGNALTYPE_EDGE_SENSITIVE [Default]
  • TEC_EXTERNAL_CLEAR_SIGNALTYPE_LEVEL_SENSITIVE
signalHoldis the selected signal hold Valid values are:
  • TEC_EXTERNAL_CLEAR_SIGNAL_NOT_HELD [Default]
  • TEC_EXTERNAL_CLEAR_SIGNAL_HELD
polarityBitis the selected signal type Valid values are:
  • TEC_EXTERNAL_CLEAR_POLARITY_FALLING_EDGE_OR_LOW_LEVEL [Default]
  • TEC_EXTERNAL_CLEAR_POLARITY_RISING_EDGE_OR_HIGH_LEVEL

Modified bits of TECxCTL2 register.

Returns
None

§ TEC_initExternalFaultInput()

void TEC_initExternalFaultInput ( uint16_t  baseAddress,
TEC_initExternalFaultInputParam param 
)

Configures the Timer Event Control External Fault Input.

Parameters
baseAddressis the base address of the TEC module.
paramis the pointer to struct for external fault input initialization.

Modified bits of TECxCTL2 register.

Returns
None

References TEC_initExternalFaultInputParam::polarityBit, TEC_initExternalFaultInputParam::selectedExternalFault, TEC_initExternalFaultInputParam::signalHold, and TEC_initExternalFaultInputParam::signalType.


Copyright 2020, Texas Instruments Incorporated