Go to the source code of this file.
|
enum | enPortnum {
PN_A = 0
, PN_B = 1
, PN_C = 2
, PN_D = 3
,
PN_E = 4
, PN_F = 5
, PN_NA = 255
, PN_A = 0
,
PN_B = 1
, PN_C = 2
, PN_D = 3
, PN_E = 4
,
PN_F = 5
, PN_G = 6
, PN_H = 7
, PN_NA = 255
} |
|
◆ BITMASK
#define BITMASK |
( |
|
x | ) |
(1UL << x) |
◆ CHARGE_STAT_PIN
#define CHARGE_STAT_PIN 12 |
◆ CHARGE_STAT_PNUM
#define CHARGE_STAT_PNUM PN_A |
◆ CHARGE_STAT_PORT
#define CHARGE_STAT_PORT PA |
◆ CHARGE_STAT_PVAL
#define CHARGE_STAT_PVAL PA12 |
◆ GPIO_BASE
#define GPIO_BASE GPIOA_BASE |
◆ MGPIO_PORT
#define MGPIO_PORT |
( |
|
portnum | ) |
((GPIO_T *)(GPIO_BASE + (portnum * 0x40UL))) |
◆ MGPIO_PORTPIN
#define MGPIO_PORTPIN |
( |
|
portnum, |
|
|
|
pin |
|
) |
| (*((volatile uint32_t *)((GPIO_PIN_DATA_BASE + (0x40 * (portnum))) + ((pin) << 2)))) |
◆ PMFP_ADC
◆ PMFP_GPIO
◆ PMFP_SPI
◆ PMFP_UART
◆ SPI_CS_PIN
◆ SPI_CS_PNUM
◆ SPI_CS_PORT
◆ SPI_CS_PVAL
◆ SPI_MISO_PIN
◆ SPI_MISO_PNUM
#define SPI_MISO_PNUM PN_B |
◆ SPI_MISO_PORT
◆ SPI_MISO_PVAL
#define SPI_MISO_PVAL PB1 |
◆ SPI_MOSI_PIN
◆ SPI_MOSI_PNUM
#define SPI_MOSI_PNUM PN_B |
◆ SPI_MOSI_PORT
◆ SPI_MOSI_PVAL
#define SPI_MOSI_PVAL PB0 |
◆ SPI_SCLK_PIN
◆ SPI_SCLK_PNUM
#define SPI_SCLK_PNUM PN_B |
◆ SPI_SCLK_PORT
◆ SPI_SCLK_PVAL
#define SPI_SCLK_PVAL PB2 |
◆ VOLTS_PIN
◆ VOLTS_PNUM
◆ VOLTS_PORT
◆ VOLTS_PVAL
◆ VOLTS_TEST_PIN
#define VOLTS_TEST_PIN 12 |
◆ VOLTS_TEST_PNUM
#define VOLTS_TEST_PNUM PN_B |
◆ VOLTS_TEST_PORT
#define VOLTS_TEST_PORT PB |
◆ VOLTS_TEST_PVAL
#define VOLTS_TEST_PVAL PB12 |
◆ ZIG_IRQB_IRQn
#define ZIG_IRQB_IRQn GPABC_IRQn |
◆ ZIG_IRQB_PIN
◆ ZIG_IRQB_PNUM
#define ZIG_IRQB_PNUM PN_A |
◆ ZIG_IRQB_PORT
◆ ZIG_IRQB_PVAL
#define ZIG_IRQB_PVAL PA10 |
◆ ZIG_RESET_PIN
◆ ZIG_RESET_PNUM
#define ZIG_RESET_PNUM PN_A |
◆ ZIG_RESET_PORT
#define ZIG_RESET_PORT PA |
◆ ZIG_RESET_PVAL
#define ZIG_RESET_PVAL PA11 |
◆ enPortnum
◆ enPortnum
Enumerator |
---|
PN_A | |
PN_B | |
PN_C | |
PN_D | |
PN_E | |
PN_F | |
PN_NA | |
PN_A | |
PN_B | |
PN_C | |
PN_D | |
PN_E | |
PN_F | |
PN_G | |
PN_H | |
PN_NA | |
◆ CHILI_ModuleGetIndexFromPin()
u8_t CHILI_ModuleGetIndexFromPin |
( |
u8_t |
mpin | ) |
|
Gets List Index from Module Pin.
- Parameters
-
- Returns
- list index or P_NA
◆ CHILI_ModuleGetPinFromPort()
Gets Module Pin from List index.
- Parameters
-
portnum | - port number |
portbit | - pin number |
- Returns
- list index or P_NA
◆ CHILI_ModuleGetPortBitFromPin()
u8_t CHILI_ModuleGetPortBitFromPin |
( |
u8_t |
mpin | ) |
|
Gets pin number from module pin.
- Parameters
-
- Returns
- list index or P_NA
◆ CHILI_ModuleGetPortNumFromPin()
u8_t CHILI_ModuleGetPortNumFromPin |
( |
u8_t |
mpin | ) |
|
Gets port number from module pin.
- Parameters
-
- Returns
- list index or P_NA
◆ CHILI_ModulePinIRQHandler()
void CHILI_ModulePinIRQHandler |
( |
enPortnum |
portnum | ) |
|
ISR: Module Pin Interrupt Handling.
◆ CHILI_ModulePowerDownGPIOs()
void CHILI_ModulePowerDownGPIOs |
( |
void |
| ) |
|
Re-configure GPIOs for PowerDown.
◆ CHILI_ModulePowerUpGPIOs()
void CHILI_ModulePowerUpGPIOs |
( |
void |
| ) |
|
Re-configure GPIOs for PowerUp.
◆ CHILI_ModuleSetMFP()
Sets MFP Functionality.
- Parameters
-
portnum | - returned port number |
portbit | - returned port b |
func | - function to set the pin to |