Landtiger LPC1768 C BigLib
1
A self made, custom C library for the LandTiger board.
Loading...
Searching...
No Matches
buttons.h
Go to the documentation of this file.
1
#ifndef BUTTONS_H
2
#define BUTTONS_H
3
4
#include "
button_types.h
"
5
#include "
types.h
"
6
10
BUTTON_Error
BUTTON_Init
(
u8
options);
11
14
void
BUTTON_Deinit
(
void
);
15
16
// INTERRUPTS
17
22
BUTTON_Error
BUTTON_EnableSource
(
BUTTON_Source
source,
u8
int_priority);
23
27
void
BUTTON_DisableSource
(
BUTTON_Source
source);
28
35
void
BUTTON_SetFunction
(
BUTTON_Source
source,
BUTTON_Function
func);
36
39
void
BUTTON_UnsetFunction
(
BUTTON_Source
source);
40
41
#endif
button_types.h
BUTTON_Source
BUTTON_Source
Definition
button_types.h:30
BUTTON_Function
void(* BUTTON_Function)(void)
Definition
button_types.h:44
BUTTON_Error
BUTTON_Error
Definition
button_types.h:10
BUTTON_SetFunction
void BUTTON_SetFunction(BUTTON_Source source, BUTTON_Function func)
Binds a given interrupt to a functionality.
Definition
buttons_irq.c:129
BUTTON_EnableSource
BUTTON_Error BUTTON_EnableSource(BUTTON_Source source, u8 int_priority)
Enables the interrupt generation of the given source, provided that there's a function associated to ...
Definition
buttons_irq.c:84
BUTTON_Deinit
void BUTTON_Deinit(void)
Deinitializes the buttons, by removing all jobs, disabling the interrupts, and removing the debouncin...
Definition
buttons.c:43
BUTTON_Init
BUTTON_Error BUTTON_Init(u8 options)
Initializes the BUTTON peripherals.
Definition
buttons.c:15
BUTTON_UnsetFunction
void BUTTON_UnsetFunction(BUTTON_Source source)
Unbinds the previously set function from the selected interrupt source.
Definition
buttons_irq.c:137
BUTTON_DisableSource
void BUTTON_DisableSource(BUTTON_Source source)
Disables the interrupt generation of the given source, but it leaves the function binding.
Definition
buttons_irq.c:121
types.h
u8
uint8_t u8
Definition
types.h:8
Keil
Include
Peripherals
buttons.h
Generated by
1.9.8