MSPM0G3519SensorlessFOCMotorControlLibrary  1.0
Macros | Functions
focPeriphInit.h File Reference

Detailed Description

HAL interface for FOC Module.


Overview

HAL Apis for peripheral initializations


#include "stdint.h"
#include "ti_msp_dl_config.h"
#include "main.h"
Include dependency graph for focPeriphInit.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FOC_GPIO_DIR_PORT   (FOC_GPIO_IN_DIR_PORT)
 GPIO port for direction pin.
 
#define FOC_GPIO_DIR_PIN   (FOC_GPIO_IN_DIR_PIN)
 GPIO pin number for direction pin.
 
#define FOC_GPIO_BRAKE_PORT   (FOC_GPIO_IN_BRAKE_PORT)
 GPIO port for brake pin.
 
#define FOC_GPIO_BRAKE_PIN   (FOC_GPIO_IN_BRAKE_PIN)
 GPIO pin number for brake pin.
 
#define FOC_GPIO_NFAULT_PORT   (FOC_GPIO_OUT_NFAULT_PORT)
 GPIO port for nfault pin.
 
#define FOC_GPIO_NFAULT_PIN   (FOC_GPIO_OUT_NFAULT_PIN)
 GPIO pin number for nfault pin.
 
#define FOC_PWMA0_INST   (PWMA0_INST)
 PWM instance.
 
#define FOC_TIMA1_INST   (TIMA1_INST)
 TIM instance.
 
#define FOC_PWMA0_ADC_TRIG_LOAD_EVENT   (DL_TIMER_EVENT_LOAD_EVENT)
 Define for ADC trigger load event.
 
#define FOC_TIMER_INST   (FOC_TIMG0_INST)
 Timer instance used as system timer.
 
#define ADC_PWM_TRIG_CH   (12)
 Event channel used by PWM to trigger ADCs.
 

Functions

void focPeriphInit (void)
 FOC peripheral initialization.
 
© Copyright 1995-2025, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale