swieeprom  2.0.0.7
gpio.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** Copyright (C) 2020 MikroElektronika d.o.o.
3 ** Contact: https://www.mikroe.com/contact
4 **
5 ** Permission is hereby granted, free of charge, to any person obtaining a copy
6 ** of this software and associated documentation files (the "Software"), to deal
7 ** in the Software without restriction, including without limitation the rights
8 ** to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 ** copies of the Software, and to permit persons to whom the Software is
10 ** furnished to do so, subject to the following conditions:
11 ** The above copyright notice and this permission notice shall be
12 ** included in all copies or substantial portions of the Software.
13 **
14 ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
16 ** OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
18 ** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
19 ** OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20 ** USE OR OTHER DEALINGS IN THE SOFTWARE.
21 ****************************************************************************/
27 #ifndef GPIO_
28 #define GPIO_
29 
30 #include "stdint.h"
31 
39 void pin_init( void );
40 
46 void pin_low ( void );
47 
53 void pin_high ( void );
54 
60 void pin_release ( void );
61 
67 uint8_t pin_get ( void );
68 
69 #endif
70 
71 
72 // ------------------------------------------------------------------------ END
pin_low
void pin_low(void)
Drive data pin low.
Definition: gpio.c:82
pin_release
void pin_release(void)
Release data pin.
Definition: gpio.c:92
pin_get
uint8_t pin_get(void)
Input data pin.
Definition: gpio.c:97
pin_init
void pin_init(void)
GPIO initialization.
Definition: gpio.c:77
pin_high
void pin_high(void)
Drive data pin high.
Definition: gpio.c:87