40 lines
1.5 KiB
C
40 lines
1.5 KiB
C
/** \file rpi_selector.h
|
|
* \brief This module is used to manage selector on gpio
|
|
*/
|
|
/***************************************************************************************************
|
|
* Includes
|
|
**************************************************************************************************/
|
|
#if !defined(__RPI_SELECTOR_H__)
|
|
#define __RPI_SELECTOR_H__
|
|
|
|
/***************************************************************************************************
|
|
* Preprocessor Constants and Macros
|
|
**************************************************************************************************/
|
|
|
|
/***************************************************************************************************
|
|
* Type and Contant Definitions
|
|
**************************************************************************************************/
|
|
|
|
/***************************************************************************************************
|
|
* Global Variables
|
|
**************************************************************************************************/
|
|
|
|
/***************************************************************************************************
|
|
* External Function Prototypes
|
|
**************************************************************************************************/
|
|
/**
|
|
* \brief setup the selector module
|
|
**/
|
|
void selector_setup();
|
|
|
|
/**
|
|
* \brief get the selector position
|
|
**/
|
|
int selector_get_position();
|
|
|
|
/**
|
|
* \brief debug: print the selector position
|
|
**/
|
|
void selector_print();
|
|
|
|
#endif /* __RPI_SELECTOR_H__ */ |