MiraOS  v1.0 2016-02-20
mira_gpio.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (C) 2016 LumenRadio AB *
3  * *
4  * This file is part of MiraOS. *
5  * *
6  * MiraOS contains software components that are patented by LumenRadio. *
7  * Use of this software is under the terms of the LumenRadio MiraOS *
8  * license.
9  * *
10  * You should have received a copy of the MiraOS license from your *
11  * LumenRadio representative. If not, email to <licenses@lumenradio.com> *
12  ****************************************************************************/
13 
25 #ifndef LIBMIRA_GPIO_H_
26 #define LIBMIRA_GPIO_H_
27 
28 #include <stdint.h>
29 #include "hcl_typedefs.h"
30 
41 void mira_gpio_init(HclGpioPorts port, uint8_t pin, HclGpioPinMode mode, HclGpioPullMode pull_mode);
42 
51 uint8_t mira_gpio_read(HclGpioPorts port, uint8_t pin);
52 
61 void mira_gpio_set(HclGpioPorts port, uint8_t pin);
62 
71 void mira_gpio_clear(HclGpioPorts port, uint8_t pin);
72 
73 #endif /* LIBMIRA_GPIO_H_ */
void mira_gpio_clear(HclGpioPorts port, uint8_t pin)
Clear an output pin (logic low output).
uint8_t mira_gpio_read(HclGpioPorts port, uint8_t pin)
Read an input pin.
void mira_gpio_set(HclGpioPorts port, uint8_t pin)
Set an output pin (logic high output).
void mira_gpio_init(HclGpioPorts port, uint8_t pin, HclGpioPinMode mode, HclGpioPullMode pull_mode)
Initialize a GPIO pin.