2021-03-13 14:42:30 +01:00
|
|
|
#ifndef LINUX_GPIO_GPIOCALLBACKS_H_
|
|
|
|
#define LINUX_GPIO_GPIOCALLBACKS_H_
|
|
|
|
|
2021-04-01 15:42:51 +02:00
|
|
|
#include <fsfw_hal/common/gpio/gpioDefinitions.h>
|
|
|
|
#include <fsfw_hal/common/gpio/GpioIF.h>
|
2021-03-13 14:42:30 +01:00
|
|
|
|
|
|
|
|
|
|
|
namespace gpioCallbacks {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief This function initializes the GPIOs used to control the SN74LVC138APWR decoders on
|
|
|
|
* the TCS Board.
|
|
|
|
*/
|
|
|
|
void initTcsBoardDecoder(GpioIF* gpioComIF);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief This function implements the decoding to multiply gpios by using the two decoder
|
|
|
|
* chips SN74LVC138APWR on the TCS board.
|
|
|
|
*/
|
|
|
|
void tcsBoardDecoderCallback(gpioId_t gpioId, gpio::GpioOperation gpioOp, int value, void* args);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* LINUX_GPIO_GPIOCALLBACKS_H_ */
|