EE445M RTOS
Taken at the University of Texas Spring 2015
Main Page
Modules
Classes
Files
File List
File Members
gpio_twiddler.hpp
Go to the documentation of this file.
1
/* -*- mode: c++; c-basic-offset: 4; -*- */
2
/* Created by Hershal Bhave and Eric Crosson 2015-03-18 */
3
/* Revision history: Look in Git FGT */
4
#ifndef __gpio_twiddler__
5
#define __gpio_twiddler__
6
11
typedef
uint32_t
port_t
;
12
typedef
uint32_t
pin_t
;
13
14
class
gpio_twiddler
{
15
public
:
16
gpio_twiddler
() {}
17
gpio_twiddler
(
port_t
port) {}
18
virtual
void
set_base
(
port_t
) = 0;
19
virtual
void
turn_on
(
pin_t
) = 0;
20
virtual
void
turn_off
(
pin_t
) = 0;
21
virtual
void
toggle
(
pin_t
) = 0;
22
virtual
void
blink
(
pin_t
) = 0;
23
};
24
#endif
25
26
/* End Doxygen group
27
* @}
28
*/
gpio_twiddler::gpio_twiddler
gpio_twiddler(port_t port)
Definition:
gpio_twiddler.hpp:17
gpio_twiddler::turn_on
virtual void turn_on(pin_t)=0
gpio_twiddler::toggle
virtual void toggle(pin_t)=0
pin_t
uint32_t pin_t
Definition:
gpio_twiddler.hpp:12
gpio_twiddler::set_base
virtual void set_base(port_t)=0
port_t
uint32_t port_t
Definition:
gpio_twiddler.hpp:11
gpio_twiddler::turn_off
virtual void turn_off(pin_t)=0
gpio_twiddler
Definition:
gpio_twiddler.hpp:14
gpio_twiddler::gpio_twiddler
gpio_twiddler()
Definition:
gpio_twiddler.hpp:16
gpio_twiddler::blink
virtual void blink(pin_t)=0
board-progs
autonomous-racer
common
gpio_twiddler.hpp
Generated on Fri May 8 2015 15:22:13 for EE445M RTOS by
1.8.9.1