Header file containing functions prototypes of MSIO HAL library. More...
Go to the source code of this file.
Classes | |
struct | _hal_msio_callback |
HAL_MSIO Callback function definition. More... | |
Macros | |
#define | MSIO_PIN_0 ((uint16_t)0x0001U) |
#define | MSIO_PIN_1 ((uint16_t)0x0002U) |
#define | MSIO_PIN_2 ((uint16_t)0x0004U) |
#define | MSIO_PIN_3 ((uint16_t)0x0008U) |
#define | MSIO_PIN_4 ((uint16_t)0x0010U) |
#define | MSIO_PIN_5 ((uint16_t)0x0020U) |
#define | MSIO_PIN_6 ((uint16_t)0x0040U) |
#define | MSIO_PIN_7 ((uint16_t)0x0080U) |
#define | MSIO_PIN_6 ((uint16_t)0x0040U) |
#define | MSIO_PIN_7 ((uint16_t)0x0080U) |
#define | MSIO_PIN_8 ((uint16_t)0x0100U) |
#define | MSIO_PIN_9 ((uint16_t)0x0200U) |
#define | MSIO_PIN_ALL ((uint16_t)0x03FFU) |
#define | MSIO_PIN_MASK (0x000003FFU) |
#define | MSIO_DIRECTION_NONE LL_MSIO_DIRECTION_NONE |
#define | MSIO_DIRECTION_INPUT LL_MSIO_DIRECTION_INPUT |
#define | MSIO_DIRECTION_OUTPUT LL_MSIO_DIRECTION_OUTPUT |
#define | MSIO_DIRECTION_INOUT LL_MSIO_DIRECTION_INOUT |
#define | MSIO_MODE_ANALOG LL_MSIO_MODE_ANALOG |
#define | MSIO_MODE_DIGITAL LL_MSIO_MODE_DIGITAL |
#define | MSIO_NOPULL LL_MSIO_PULL_NO |
#define | MSIO_PULLUP LL_MSIO_PULL_UP |
#define | MSIO_PULLDOWN LL_MSIO_PULL_DOWN |
#define | MSIO_SPEED_MEDIUM LL_MSIO_SPEED_MEDIUM |
#define | MSIO_SPEED_HIGH LL_MSIO_SPEED_HIGH |
#define | MSIO_STRENGTH_LOW LL_MSIO_STRENGTH_LOW |
#define | MSIO_STRENGTH_MEDIUM LL_MSIO_STRENGTH_MEDIUM |
#define | MSIO_STRENGTH_HIGH LL_MSIO_STRENGTH_HIGH |
#define | MSIO_STRENGTH_ULTRA LL_MSIO_STRENGTH_ULTRA |
#define | MSIO_INPUT_TYPE_CMOS LL_MSIO_INPUT_TYPE_CMOS |
#define | MSIO_INPUT_TYPE_SCHMITT LL_MSIO_INPUT_TYPE_SCHMITT |
#define | MSIO_DEFAULT_CONFIG |
MSIO_default_config initStruct default configuartion. More... | |
#define | __HAL_MSIO_IT_GET_IT(__MSIOX__, __MSIO_PIN__) ll_msio_read_flag_it(__MSIOX__, __MSIO_PIN__) |
Check whether the specified MSIO pin is asserted or not. More... | |
#define | __HAL_MSIO_IT_CLEAR_IT(__MSIOX__, __MSIO_PIN__) ll_msio_clear_flag_it(__MSIOX__, __MSIO_PIN__) |
Clear the MSIO pin pending bits. More... | |
#define | IS_MSIO_PIN_ACTION(__ACTION__) (((__ACTION__) == MSIO_PIN_RESET) || ((__ACTION__) == MSIO_PIN_SET)) |
Check if MSIO pin action is valid. More... | |
#define | IS_MSIO_PIN(__PIN__) |
Check if MSIO pins are valid. More... | |
#define | IS_MSIO_DIRECTION(__DIR__) |
Check if MSIO direction is valid. More... | |
#define | IS_MSIO_MODE(__MODE__) |
Check if MSIO mode is valid. More... | |
#define | IS_MSIO_PULL(__PULL__) |
Check if MSIO pull type is valid. More... | |
Typedefs | |
typedef struct _hal_msio_callback | hal_msio_callback_t |
HAL_MSIO Callback function definition. More... | |
typedef ll_msio_init_t | msio_init_t |
MSIO init structure definition. More... | |
Enumerations | |
enum | msio_pin_state_t { MSIO_PIN_RESET = 0U, MSIO_PIN_SET } |
MSIO Bit SET and Bit RESET enumerations. More... | |
Functions | |
void | hal_msio_init (msio_pad_t MSIOx, const msio_init_t *p_msio_init) |
Initialize the MSIOx peripheral according to the specified parameters in the msio_init_t. More... | |
void | hal_msio_deinit (msio_pad_t MSIOx, uint32_t msio_pin) |
De-initialize the MSIOx peripheral registers to their default reset values. More... | |
msio_pin_state_t | hal_msio_read_pin (msio_pad_t MSIOx, uint16_t msio_pin) |
Read the specified input port pin. More... | |
void | hal_msio_write_pin (msio_pad_t MSIOx, uint16_t msio_pin, msio_pin_state_t pin_state) |
Set or clear the selected data port bit. More... | |
void | hal_msio_toggle_pin (msio_pad_t MSIOx, uint16_t msio_pin) |
Toggle the specified MSIO pin. More... | |
void | hal_msio_exti_irq_handler (msio_pad_t MSIOx) |
Handle MSIOB interrupt request. More... | |
void | hal_msio_exti_callback (msio_pad_t MSIOx, uint16_t msio_pin) |
MSIOB pin detection callback. More... | |
Header file containing functions prototypes of MSIO HAL library.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file hal_msio.h.