Contains all macro definitions and function prototypes support for pcu firmware library on A31L12x. More...
Go to the source code of this file.
Enumerations | |
enum | PCU_PORT_MODE { INPUT = 0, PUSH_PULL_OUTPUT, ALTERN_FUNC, OPEN_DRAIN_OUTPUT } |
Functions | |
void | HAL_GPIO_Init (Pn_Type *Px, uint32_t u32Mode, uint32_t u32Type, uint32_t u32Afsr1, uint32_t u32Afsr2, uint32_t u32PuPd) |
Set PCU Pn_MOD/Pn_TYP/Pn_AFSR1/Pn_PUPD Registers. More... | |
void | HAL_GPIO_ConfigFunction (Pn_Type *Px, uint8_t pin_no, uint32_t func) |
Configure pin function. More... | |
void | HAL_GPIO_ConfigOutput (Pn_Type *Px, uint8_t pin_no, PCU_PORT_MODE dir_type) |
Configure pin mode. More... | |
void | HAL_GPIO_ConfigOutDataMask (Pn_Type *Px, uint8_t pin_no, FunctionalState maskctrl) |
Configure out data Mask. More... | |
void | HAL_GPIO_ConfigPullup (Pn_Type *Px, uint8_t pin_no, uint8_t pullupdown) |
Configure Pin Pull-Up & Pull-Down. More... | |
void | HAL_GPIO_SetDebouncePin (Pn_Type *Px, uint32_t u32Pins, uint32_t u32Debnc) |
Set PCU Debounce. More... | |
void | HAL_GPIO_SetPin (Pn_Type *Px, uint16_t bitValue) |
Set Value for bits that have output direction on GPIO port. More... | |
void | HAL_GPIO_ClearPin (Pn_Type *Px, uint16_t bitValue) |
Clear Value for bits that have output direction on GPIO port. More... | |
void | HAL_GPIO_WritePin (Pn_Type *Px, uint16_t Value) |
Write Value on port that have output direction of GPIO. More... | |
uint16_t | HAL_GPIO_ReadPin (Pn_Type *Px) |
Read Current state on port pin that have input direction of GPIO. More... | |
Contains all macro definitions and function prototypes support for pcu firmware library on A31L12x.
Copyright(C) 2019, ABOV Semiconductor All rights reserved.
ABOV Disclaimer
IMPORTANT NOTICE ? PLEASE READ CAREFULLY ABOV Semiconductor ("ABOV") reserves the right to make changes, corrections, enhancements, modifications, and improvements to ABOV products and/or to this document at any time without notice. ABOV does not give warranties as to the accuracy or completeness of the information included herein. Purchasers should obtain the latest relevant information of ABOV products before placing orders. Purchasers are entirely responsible for the choice, selection, and use of ABOV products and ABOV assumes no liability for application assistance or the design of purchasers' products. No license, express or implied, to any intellectual property rights is granted by ABOV herein. ABOV disclaims all express and implied warranties and shall not be responsible or liable for any injuries or damages related to use of ABOV products in such unauthorized applications. ABOV and the ABOV logo are trademarks of ABOV. All other product or service names are the property of their respective owners. Information in this document supersedes and replaces the information previously supplied in any former versions of this document. 2020 ABOV Semiconductor All rights reserved
Definition in file A31L12x_hal_pcu.h.
enum PCU_PORT_MODE |
Pin Mode and Pin Type Selection Control
Enumerator | |
---|---|
INPUT | |
PUSH_PULL_OUTPUT | |
ALTERN_FUNC | |
OPEN_DRAIN_OUTPUT |
Definition at line 116 of file A31L12x_hal_pcu.h.
void HAL_GPIO_ClearPin | ( | Pn_Type * | Px, |
uint16_t | bitValue | ||
) |
Clear Value for bits that have output direction on GPIO port.
[in] | Px | Pointer to the target PORT
|
[in] | bitValue | Value that contains all bits on GPIO to clear.
|
Definition at line 308 of file A31L12x_hal_pcu.c.
void HAL_GPIO_ConfigFunction | ( | Pn_Type * | Px, |
uint8_t | pin_no, | ||
uint32_t | func | ||
) |
Configure pin function.
[in] | Px | Pointer to the target PORT
|
[in] | pin_no | Pin Number
|
[in] | func | Alternative Function Number
|
Definition at line 89 of file A31L12x_hal_pcu.c.
Referenced by debug_frmwrk_init().
void HAL_GPIO_ConfigOutDataMask | ( | Pn_Type * | Px, |
uint8_t | pin_no, | ||
FunctionalState | maskctrl | ||
) |
Configure out data Mask.
[in] | Px | Pointer to the target PORT
|
[in] | pin_no | Pin Number
|
[in] | maskctrl | state
|
Definition at line 200 of file A31L12x_hal_pcu.c.
void HAL_GPIO_ConfigOutput | ( | Pn_Type * | Px, |
uint8_t | pin_no, | ||
PCU_PORT_MODE | dir_type | ||
) |
Configure pin mode.
[in] | Px | Pointer to the target PORT
|
[in] | pin_no | Pin Number
|
[in] | dir_type | Pin Mode
|
Definition at line 146 of file A31L12x_hal_pcu.c.
References OPEN_DRAIN_OUTPUT, and PUSH_PULL_OUTPUT.
Referenced by debug_frmwrk_init().
void HAL_GPIO_ConfigPullup | ( | Pn_Type * | Px, |
uint8_t | pin_no, | ||
uint8_t | pullupdown | ||
) |
Configure Pin Pull-Up & Pull-Down.
[in] | Px | Pointer to the target PORT
|
[in] | pin_no | Pin Number
|
[in] | pullupdown | Target Configuration
|
Definition at line 226 of file A31L12x_hal_pcu.c.
void HAL_GPIO_Init | ( | Pn_Type * | Px, |
uint32_t | u32Mode, | ||
uint32_t | u32Type, | ||
uint32_t | u32Afsr1, | ||
uint32_t | u32Afsr2, | ||
uint32_t | u32PuPd | ||
) |
Set PCU Pn_MOD/Pn_TYP/Pn_AFSR1/Pn_PUPD Registers.
[in] | Px | Pointer to the target PORT
|
[in] | u32Mode | Values for In/Out/Alternative mode |
[in] | u32Type | Values for Push-pull and Open-drain |
[in] | u32Afsr1 | Values for Alternative Function |
[in] | u32Afsr2 | Values for Alternative Function |
[in] | u32PuPd | Values for Pull-up/down resistor |
This function sets the mode, type, alternative function, and pull-up/down resistor of port.
Definition at line 66 of file A31L12x_hal_pcu.c.
uint16_t HAL_GPIO_ReadPin | ( | Pn_Type * | Px | ) |
Read Current state on port pin that have input direction of GPIO.
[in] | Px | Pointer to the target PORT
|
Definition at line 338 of file A31L12x_hal_pcu.c.
void HAL_GPIO_SetDebouncePin | ( | Pn_Type * | Px, |
uint32_t | u32Pins, | ||
uint32_t | u32Debnc | ||
) |
Set PCU Debounce.
[in] | Px | Pointer to the target PORT
|
[in] | u32Pins | Pin Number
|
[in] | u32Debnc | Sampling Clock Selection
|
This function enables the debounce filter for the pin specified by u32Pins and selects the debounce filter sampling clock.
Definition at line 261 of file A31L12x_hal_pcu.c.
void HAL_GPIO_SetPin | ( | Pn_Type * | Px, |
uint16_t | bitValue | ||
) |
Set Value for bits that have output direction on GPIO port.
[in] | Px | Pointer to the target PORT
|
[in] | bitValue | Value that contains all bits on GPIO to set.
|
Definition at line 291 of file A31L12x_hal_pcu.c.
void HAL_GPIO_WritePin | ( | Pn_Type * | Px, |
uint16_t | Value | ||
) |
Write Value on port that have output direction of GPIO.
[in] | Px | Pointer to the target PORT
|
[in] | Value | Value to write |
Definition at line 323 of file A31L12x_hal_pcu.c.