EDF - OnePIC MCU  v1.1.0
source/base/include/OnePIC_switch.h File Reference
#include "bsp.h"
Include dependency graph for OnePIC_switch.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

enum  swState_tag { SW_PRESSED, SW_RELEASED }
 Contains the switch (SW1) state. More...
typedef enum swState_tag swState
uint8_t _pbState
 _pbState what state push button is in
swState _swState
 holds SW1 info
void switchTasks (void)
 when switch is pressed, toggle all of the LEDs once
uint8_t switchPressed (void)
 polls and debounces the switch for a press

Detailed Description

Definition in file OnePIC_switch.h.


Enumeration Type Documentation

Contains the switch (SW1) state.

Enumerator:
SW_PRESSED 

switch was pressed

SW_RELEASED 

switch was released

Definition at line 20 of file OnePIC_switch.h.