|
brazos-trapezoidal
|
Header file for AtodDriver_prm.h. More...
#include "includes.h"

Go to the source code of this file.
Macros | |
| #define | ENABLE ( 0x1 ) |
| #define | DISABLE ( 0x0 ) |
| #define | CLEAR ( 0x1 ) |
| #define | SR_MCATOD_SAMPLING_TIME 0x7 |
| #define | CH0_ENABLE ENABLE |
| #define | CH1_ENABLE ENABLE |
| #define | CH2_ENABLE ENABLE |
| #define | CH3_ENABLE ENABLE |
| #define | CH4_ENABLE ENABLE |
| #define | CH5_ENABLE ENABLE |
| #define | CH6_ENABLE ENABLE |
| #define | CH7_ENABLE ENABLE |
| #define | ADC_TEMP 0 |
| #define | ADC_VBUS 1 |
| #define | ADC_VC 2 |
| #define | ADC_VB 3 |
| #define | ADC_VA 4 |
| #define | ADC_IC 6 |
| #define | ADC_IB 7 |
| #define | ADC_IA 5 |
| #define | ADC_NUMBER_OF_CONVERTIONS (CH0_ENABLE + CH1_ENABLE + CH2_ENABLE + CH3_ENABLE + CH4_ENABLE + CH5_ENABLE + CH6_ENABLE + CH7_ENABLE) |
| #define | NUM_ADC_SAMPLES ADC_NUMBER_OF_CONVERTIONS |
| #define | ADC_CH0 PIN_PA0 |
| #define | ADC_CH1 PIN_PA1 |
| #define | ADC_CH2 PIN_PA2 |
| #define | ADC_CH3 PIN_PA3 |
| #define | ADC_CH4 PIN_PA4 |
| #define | ADC_CH5 PIN_PA5 |
| #define | ADC_CH6 PIN_PA6 |
| #define | ADC_CH7 PIN_PA7 |
| #define | S12AD0_PG000EN_PRM 1 |
| #define | S12AD0_PG001EN_PRM 1 |
| #define | S12AD0_PG002EN_PRM 0 |
| #define | S12AD1_PG000EN_PRM 0 |
| #define | S12AD1_PG001EN_PRM 0 |
| #define | S12AD1_PG002EN_PRM 0 |
| #define | S12AD0_PG000SEL_PRM 1 |
| #define | S12AD0_PG001SEL_PRM 1 |
| #define | S12AD0_PG002SEL_PRM 0 |
| #define | S12AD1_PG000SEL_PRM 0 |
| #define | S12AD1_PG001SEL_PRM 0 |
| #define | S12AD1_PG002SEL_PRM 0 |
| #define | S12AD0_PG000GAIN_PRM 0x04 |
| #define | S12AD0_PG001GAIN_PRM 0x04 |
| #define | S12AD0_PG002GAIN_PRM 0x00 |
| #define | S12AD1_PG000GAIN_PRM 0x00 |
| #define | S12AD1_PG001GAIN_PRM 0x00 |
| #define | S12AD1_PG002GAIN_PRM 0x00 |
Variables | |
| uint16_t | ADC_Samples [NUM_ADC_SAMPLES] |
Header file for AtodDriver_prm.h.
Definition in file AtodDriver_prm.h.
| #define ADC_CH0 PIN_PA0 |
enable 1 VBUS
Definition at line 74 of file AtodDriver_prm.h.
| #define ADC_CH1 PIN_PA1 |
enable 2 W pole
Definition at line 75 of file AtodDriver_prm.h.
| #define ADC_CH2 PIN_PA2 |
enable 3 V pole
Definition at line 76 of file AtodDriver_prm.h.
| #define ADC_CH3 PIN_PA3 |
enable 4 U pole
Definition at line 77 of file AtodDriver_prm.h.
| #define ADC_CH4 PIN_PA4 |
enable 5 U curr
Definition at line 78 of file AtodDriver_prm.h.
| #define ADC_CH5 PIN_PA5 |
enable 6 W curr
Definition at line 79 of file AtodDriver_prm.h.
| #define ADC_CH6 PIN_PA6 |
enable 7 V curr
Definition at line 80 of file AtodDriver_prm.h.
| #define ADC_CH7 PIN_PA7 |
enable 0 POT
Definition at line 81 of file AtodDriver_prm.h.
| #define ADC_IA 5 |
ADC Current Ia
Definition at line 67 of file AtodDriver_prm.h.
| #define ADC_IB 7 |
ADC Current Ib
Definition at line 66 of file AtodDriver_prm.h.
| #define ADC_IC 6 |
ADC Current Ic
Definition at line 65 of file AtodDriver_prm.h.
| #define ADC_NUMBER_OF_CONVERTIONS (CH0_ENABLE + CH1_ENABLE + CH2_ENABLE + CH3_ENABLE + CH4_ENABLE + CH5_ENABLE + CH6_ENABLE + CH7_ENABLE) |
Number of conversions depending on channel enabled
Definition at line 69 of file AtodDriver_prm.h.
| #define ADC_TEMP 0 |
Define were the signal are connected to ADC data will be added to a vector that is polulated from the lowest channel up, so if the first channel anabled is CH2, this will be position 0 in the vector. Ex. VBus connect to channel CH2 (being CH2 the lowest enabled channel) ADC_VBUS must be 0 ADC Temperature
Definition at line 60 of file AtodDriver_prm.h.
| #define ADC_VA 4 |
ADC Pole voltage va
Definition at line 64 of file AtodDriver_prm.h.
| #define ADC_VB 3 |
ADC Pole voltage Vb
Definition at line 63 of file AtodDriver_prm.h.
| #define ADC_VBUS 1 |
ADC Vbus voltage
Definition at line 61 of file AtodDriver_prm.h.
| #define ADC_VC 2 |
ADC Pole voltage Vc
Definition at line 62 of file AtodDriver_prm.h.
| #define CH0_ENABLE ENABLE |
Check on schematics where are the currents and DC bus voltage pins in order to perform proper assignments here. Use ANA_CH0, ANA_CH1, ANA_CH2 ...,ANA_CH7, as channels for motor readings, since they feature independent sample and hold circuits.
Definition at line 42 of file AtodDriver_prm.h.
| #define CH1_ENABLE ENABLE |
Definition at line 43 of file AtodDriver_prm.h.
| #define CH2_ENABLE ENABLE |
Definition at line 44 of file AtodDriver_prm.h.
| #define CH3_ENABLE ENABLE |
Definition at line 45 of file AtodDriver_prm.h.
| #define CH4_ENABLE ENABLE |
Definition at line 46 of file AtodDriver_prm.h.
| #define CH5_ENABLE ENABLE |
Definition at line 47 of file AtodDriver_prm.h.
| #define CH6_ENABLE ENABLE |
Definition at line 48 of file AtodDriver_prm.h.
| #define CH7_ENABLE ENABLE |
Definition at line 49 of file AtodDriver_prm.h.
| #define CLEAR ( 0x1 ) |
Clear is set as 1 logic
Definition at line 26 of file AtodDriver_prm.h.
| #define DISABLE ( 0x0 ) |
Disable is set as 0 logic
Definition at line 22 of file AtodDriver_prm.h.
| #define ENABLE ( 0x1 ) |
Enable is set as 1 logic
Definition at line 18 of file AtodDriver_prm.h.
| #define NUM_ADC_SAMPLES ADC_NUMBER_OF_CONVERTIONS |
ADC number of conversions
Definition at line 70 of file AtodDriver_prm.h.
| #define S12AD0_PG000EN_PRM 1 |
Definition at line 90 of file AtodDriver_prm.h.
| #define S12AD0_PG000GAIN_PRM 0x04 |
Definition at line 125 of file AtodDriver_prm.h.
| #define S12AD0_PG000SEL_PRM 1 |
Definition at line 103 of file AtodDriver_prm.h.
| #define S12AD0_PG001EN_PRM 1 |
Definition at line 91 of file AtodDriver_prm.h.
| #define S12AD0_PG001GAIN_PRM 0x04 |
Definition at line 126 of file AtodDriver_prm.h.
| #define S12AD0_PG001SEL_PRM 1 |
Definition at line 104 of file AtodDriver_prm.h.
| #define S12AD0_PG002EN_PRM 0 |
Definition at line 92 of file AtodDriver_prm.h.
| #define S12AD0_PG002GAIN_PRM 0x00 |
Definition at line 127 of file AtodDriver_prm.h.
| #define S12AD0_PG002SEL_PRM 0 |
Definition at line 105 of file AtodDriver_prm.h.
| #define S12AD1_PG000EN_PRM 0 |
Definition at line 93 of file AtodDriver_prm.h.
| #define S12AD1_PG000GAIN_PRM 0x00 |
Definition at line 128 of file AtodDriver_prm.h.
| #define S12AD1_PG000SEL_PRM 0 |
Definition at line 106 of file AtodDriver_prm.h.
| #define S12AD1_PG001EN_PRM 0 |
Definition at line 94 of file AtodDriver_prm.h.
| #define S12AD1_PG001GAIN_PRM 0x00 |
Definition at line 129 of file AtodDriver_prm.h.
| #define S12AD1_PG001SEL_PRM 0 |
Definition at line 107 of file AtodDriver_prm.h.
| #define S12AD1_PG002EN_PRM 0 |
Definition at line 95 of file AtodDriver_prm.h.
| #define S12AD1_PG002GAIN_PRM 0x00 |
Definition at line 130 of file AtodDriver_prm.h.
| #define S12AD1_PG002SEL_PRM 0 |
Definition at line 108 of file AtodDriver_prm.h.
| #define SR_MCATOD_SAMPLING_TIME 0x7 |
This constant sets sampling time (in peripheral cycles)
Definition at line 34 of file AtodDriver_prm.h.
|
extern |