brazos-trapezoidal
Macros | Enumerations
LSI_prm.h File Reference

Header file for LSI_prm.h.c. More...

#include "includes.h"
Include dependency graph for LSI_prm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NUM_OF_LOAD   3
 
#define LOAD_CONFIG_LIST
 
#define NUM_OF_UNUSED   0
 
#define UNUSED_CONFIG_LIST   {PIN_PC1}
 
#define NUM_OF_SENSOR   0
 
#define SENSOR_CONFIG_LIST   {PIN_PA7}
 
#define NUM_OF_DIGITAL_IN   0
 
#define DIG_IN_CONFIG_LIST
 
#define NUM_OF_LEDS   2
 
#define LED_CONFIG_LIST
 
#define GPIO__INIT()
 
#define GPIO__ADC_GET_VALUE(value)   SRMCAtod__GetDataFromBuffer(value)
 
#define GPIO__CONFIG_OUTPUT_PUSHPULL_NO_PULLUP(value)
 
#define GPIO__CONFIG_INPUT_PULLUP(value)
 
#define GPIO__CONFIG_ANALOG(value)   xbar_control_cfg_pin(value, XBAR_CTL_ANA)
 
#define GPIO__CLEAR_PIN(value)   gpio_clear(value)
 
#define GPIO__CLR_PIN(value)   gpio_clear(value)
 
#define GPIO__SET_PIN(value)   gpio_set(value)
 
#define GPIO__GET_PIN(value)   gpio_read_bit(value)
 
#define GPIO__TOGGLE_PIN(value)   gpio_toggle(value)
 
#define GPIO__UPDT_PIN(u1, u2, u3, u4, u5, u6)   gpio_write(u1|u2|u3|u4|u5|u6)
 

Enumerations

enum  LOAD_NAME_TYPE { TEST_PIN , TEST_PIN2 , SURGE_RELAY }
 
enum  UNUSED_NAME_TYPE { UNUSED_PC1 }
 
enum  SENSOR_NAME_TYPE { NTC_SIM }
 
enum  DIG_IN_NAME_TYPE { TACT_SWITCH1 , TACT_SWITCH2 , PWM_IPM_FAULT }
 
enum  LED_NAME_TYPE { LED_1 , LED_3 }
 

Detailed Description

Header file for LSI_prm.h.c.

Definition in file LSI_prm.h.

Macro Definition Documentation

◆ DIG_IN_CONFIG_LIST

#define DIG_IN_CONFIG_LIST
Value:
{PIN_PC1,\
PIN_PB0,\
PIN_PC2}

Definition at line 78 of file LSI_prm.h.

◆ GPIO__ADC_GET_VALUE

#define GPIO__ADC_GET_VALUE (   value)    SRMCAtod__GetDataFromBuffer(value)

Definition at line 106 of file LSI_prm.h.

◆ GPIO__CLEAR_PIN

#define GPIO__CLEAR_PIN (   value)    gpio_clear(value)

Definition at line 120 of file LSI_prm.h.

◆ GPIO__CLR_PIN

#define GPIO__CLR_PIN (   value)    gpio_clear(value)

Definition at line 121 of file LSI_prm.h.

◆ GPIO__CONFIG_ANALOG

#define GPIO__CONFIG_ANALOG (   value)    xbar_control_cfg_pin(value, XBAR_CTL_ANA)

Definition at line 119 of file LSI_prm.h.

◆ GPIO__CONFIG_INPUT_PULLUP

#define GPIO__CONFIG_INPUT_PULLUP (   value)
Value:
{xbar_control(value, XBAR_CTL_OUT_CFG, XBAR_CTL_CFG_GPIO);\
gpio_control(value, GPIO_CTL_DIR, INPUT);\
xbar_control(value, XBAR_CTL_PULL_DOWN_CFG, XBAR_CTL_NO_PULL_DOWN);\
xbar_control(value, XBAR_CTL_PULL_UP_CFG, XBAR_CTL_PULL_UP);}

Definition at line 114 of file LSI_prm.h.

◆ GPIO__CONFIG_OUTPUT_PUSHPULL_NO_PULLUP

#define GPIO__CONFIG_OUTPUT_PUSHPULL_NO_PULLUP (   value)
Value:
{xbar_control(value, XBAR_CTL_OUT_CFG, XBAR_CTL_CFG_GPIO);\
gpio_control(value, GPIO_CTL_DIR, OUTPUT);\
xbar_control(value, XBAR_CTL_PULL_DOWN_CFG, XBAR_CTL_NO_PULL_DOWN);\
xbar_control(value, XBAR_CTL_PULL_UP_CFG, XBAR_CTL_NO_PULL_UP);\
xbar_control(value, XBAR_CTL_OUT_DRIVE_CFG, XBAR_CTL_PUSH_PULL);}

Definition at line 108 of file LSI_prm.h.

◆ GPIO__GET_PIN

#define GPIO__GET_PIN (   value)    gpio_read_bit(value)

Definition at line 123 of file LSI_prm.h.

◆ GPIO__INIT

#define GPIO__INIT ( )
Value:
{xbar_initialize();\
cmu_control(CMU_CTL_PCLK_GATE_SET, CMU_PCLK_EN_XBAR_EN_Msk | CMU_PCLK_EN_GPIO_EN_Msk);}

Defines the Methods Macros

Definition at line 103 of file LSI_prm.h.

◆ GPIO__SET_PIN

#define GPIO__SET_PIN (   value)    gpio_set(value)

Definition at line 122 of file LSI_prm.h.

◆ GPIO__TOGGLE_PIN

#define GPIO__TOGGLE_PIN (   value)    gpio_toggle(value)

Definition at line 124 of file LSI_prm.h.

◆ GPIO__UPDT_PIN

#define GPIO__UPDT_PIN (   u1,
  u2,
  u3,
  u4,
  u5,
  u6 
)    gpio_write(u1|u2|u3|u4|u5|u6)

Definition at line 125 of file LSI_prm.h.

◆ LED_CONFIG_LIST

#define LED_CONFIG_LIST
Value:
{PIN_PB1,\
PIN_PC4}

Definition at line 96 of file LSI_prm.h.

◆ LOAD_CONFIG_LIST

#define LOAD_CONFIG_LIST
Value:
{PIN_PB0,\
PIN_PC0,\
PIN_PC5}

Definition at line 33 of file LSI_prm.h.

◆ NUM_OF_DIGITAL_IN

#define NUM_OF_DIGITAL_IN   0


Defines the Digital inputs (Switches)

Definition at line 68 of file LSI_prm.h.

◆ NUM_OF_LEDS

#define NUM_OF_LEDS   2


Defines the LEDs names and pins

Definition at line 87 of file LSI_prm.h.

◆ NUM_OF_LOAD

#define NUM_OF_LOAD   3

-----------------------------— Theta Power Systems - CONFIDENTIAL --------------------------------------—


Defines the Digital outputs (Loads)

Definition at line 22 of file LSI_prm.h.

◆ NUM_OF_SENSOR

#define NUM_OF_SENSOR   0


Defines the Analog inputs (Sensors)

Definition at line 54 of file LSI_prm.h.

◆ NUM_OF_UNUSED

#define NUM_OF_UNUSED   0

Defines the Unused pins

Definition at line 40 of file LSI_prm.h.

◆ SENSOR_CONFIG_LIST

#define SENSOR_CONFIG_LIST   {PIN_PA7}

Definition at line 62 of file LSI_prm.h.

◆ UNUSED_CONFIG_LIST

#define UNUSED_CONFIG_LIST   {PIN_PC1}

Definition at line 47 of file LSI_prm.h.

Enumeration Type Documentation

◆ DIG_IN_NAME_TYPE

enum DIG_IN_NAME_TYPE

Definition at line 70 of file LSI_prm.h.

◆ LED_NAME_TYPE

enum LED_NAME_TYPE

Definition at line 89 of file LSI_prm.h.

◆ LOAD_NAME_TYPE

enum LOAD_NAME_TYPE

Definition at line 24 of file LSI_prm.h.

◆ SENSOR_NAME_TYPE

enum SENSOR_NAME_TYPE

Definition at line 56 of file LSI_prm.h.

◆ UNUSED_NAME_TYPE

enum UNUSED_NAME_TYPE

Definition at line 42 of file LSI_prm.h.