SimpleLink MCU SDK Driver APIs
tidrivers_msp43x_3_01_01_03
|
Capture driver interface for MSP432 devices.
===========================================================================
The Capture driver for MSP432 leverages the Timer_A peripheral of the MSP432 devive. It is important to note that each instance of the Capture driver will occupy exactly one Timer_A peripheral on the device. This is done to reduce contingencies and conflicts that might arise from using more than one Capture/Compare registers on a Timer_A peripheral. The specific Capture/Compare register that is used by the Capture module is determined automatically by the pin assignment. Pin assignments can also take advantage of the pin mapping peripheral of the MSP432. If a pin mapped pin is given as the capturePort parameter of the CaptureMSP432_HWAttrs structure, the implementation of the driver will automatically configure the PMAP module with the correct/corresponding pin assignments.
#include <ti/drivers/dpl/HwiP.h>
#include <ti/drivers/timer/TimerMSP432.h>
#include <ti/drivers/Capture.h>
Go to the source code of this file.
Data Structures | |
struct | CaptureMSP432_HWAttrs |
CaptureMSP432 Hardware Attributes. More... | |
struct | CaptureMSP432_Object |
CaptureMSP432 Object Driver specific structure that takes care of various driver parameters such as hardware interrupts and callbacks. The application should not modify any members of this structure. More... | |
Typedefs | |
typedef struct CaptureMSP432_HWAttrs | CaptureMSP432_HWAttrs |
CaptureMSP432 Hardware Attributes. More... | |
typedef struct CaptureMSP432_Object | CaptureMSP432_Object |
CaptureMSP432 Object Driver specific structure that takes care of various driver parameters such as hardware interrupts and callbacks. The application should not modify any members of this structure. More... | |
Functions | |
void | CaptureMSP432_close (Capture_Handle handle) |
int_fast16_t | CaptureMSP432_control (Capture_Handle handle, uint_fast16_t cmd, void *arg) |
void | CaptureMSP432_init (Capture_Handle handle) |
Capture_Handle | CaptureMSP432_open (Capture_Handle handle, Capture_Params *params) |
void | CaptureMSP432_start (Capture_Handle handle) |
void | CaptureMSP432_stop (Capture_Handle handle) |
Variables | |
CaptureMSP432_Object | captureMSP432Objects [] |
TimerMSP432_Object | timerMSP432Objects [] |
const uint8_t | Capture_count |
Capture_FxnTable | CaptureMSP432_captureFxnTable |
#define CAPTUREMSP432_INT_OFS 24 |
#define CAPTUREMSP432_CCR_OFS 16 |
#define CAPTUREMSP432_PMAP_OFS 8 |
#define CaptureMSP432_P2_0_TA0 |
#define CaptureMSP432_P2_0_TA1 |
#define CaptureMSP432_P2_1_TA0 |
#define CaptureMSP432_P2_1_TA1 |
#define CaptureMSP432_P2_2_TA0 |
#define CaptureMSP432_P2_2_TA1 |
#define CaptureMSP432_P2_3_TA0 |
#define CaptureMSP432_P2_3_TA1 |
#define CaptureMSP432_P2_4_TA0 |
#define CaptureMSP432_P2_4_TA1 |
#define CaptureMSP432_P2_5_TA0 |
#define CaptureMSP432_P2_5_TA1 |
#define CaptureMSP432_P2_6_TA0 |
#define CaptureMSP432_P2_6_TA1 |
#define CaptureMSP432_P2_7_TA0 |
#define CaptureMSP432_P2_7_TA1 |
#define CaptureMSP432_P3_0_TA0 |
#define CaptureMSP432_P3_0_TA1 |
#define CaptureMSP432_P3_1_TA0 |
#define CaptureMSP432_P3_1_TA1 |
#define CaptureMSP432_P3_2_TA0 |
#define CaptureMSP432_P3_2_TA1 |
#define CaptureMSP432_P3_3_TA0 |
#define CaptureMSP432_P3_3_TA1 |
#define CaptureMSP432_P3_4_TA0 |
#define CaptureMSP432_P3_4_TA1 |
#define CaptureMSP432_P3_5_TA0 |
#define CaptureMSP432_P3_5_TA1 |
#define CaptureMSP432_P3_6_TA0 |
#define CaptureMSP432_P3_6_TA1 |
#define CaptureMSP432_P3_7_TA0 |
#define CaptureMSP432_P3_7_TA1 |
#define CaptureMSP432_P5_6_TA2 |
#define CaptureMSP432_P5_7_TA2 |
#define CaptureMSP432_P6_6_TA2 |
#define CaptureMSP432_P6_7_TA2 |
#define CaptureMSP432_P7_0_TA0 |
#define CaptureMSP432_P7_0_TA1 |
#define CaptureMSP432_P7_1_TA0 |
#define CaptureMSP432_P7_1_TA1 |
#define CaptureMSP432_P7_2_TA0 |
#define CaptureMSP432_P7_2_TA1 |
#define CaptureMSP432_P7_3_TA0 |
#define CaptureMSP432_P7_3_TA1 |
#define CaptureMSP432_P7_4_TA0 |
#define CaptureMSP432_P7_4_TA1 |
#define CaptureMSP432_P7_5_TA0 |
#define CaptureMSP432_P7_5_TA1 |
#define CaptureMSP432_P7_6_TA0 |
#define CaptureMSP432_P7_6_TA1 |
#define CaptureMSP432_P7_7_TA0 |
#define CaptureMSP432_P7_7_TA1 |
#define CaptureMSP432_P8_0_TA1 |
#define CaptureMSP432_P8_1_TA2 |
#define CaptureMSP432_P8_2_TA3 |
#define CaptureMSP432_P9_2_TA3 |
#define CaptureMSP432_P9_3_TA3 |
#define CaptureMSP432_P10_4_TA3 |
#define CaptureMSP432_P10_5_TA3 |
typedef struct CaptureMSP432_HWAttrs CaptureMSP432_HWAttrs |
CaptureMSP432 Hardware Attributes.
Capture hardware attributes that tell the CaptureMSP432 driver specific hardware configurations and interrupt/priority settings.
A sample structure is shown below:
typedef struct CaptureMSP432_Object CaptureMSP432_Object |
CaptureMSP432 Object Driver specific structure that takes care of various driver parameters such as hardware interrupts and callbacks. The application should not modify any members of this structure.
void CaptureMSP432_close | ( | Capture_Handle | handle | ) |
int_fast16_t CaptureMSP432_control | ( | Capture_Handle | handle, |
uint_fast16_t | cmd, | ||
void * | arg | ||
) |
void CaptureMSP432_init | ( | Capture_Handle | handle | ) |
Capture_Handle CaptureMSP432_open | ( | Capture_Handle | handle, |
Capture_Params * | params | ||
) |
void CaptureMSP432_start | ( | Capture_Handle | handle | ) |
void CaptureMSP432_stop | ( | Capture_Handle | handle | ) |
CaptureMSP432_Object captureMSP432Objects[] |
TimerMSP432_Object timerMSP432Objects[] |
const uint8_t Capture_count |
Capture_FxnTable CaptureMSP432_captureFxnTable |