1 #ifndef __CARME_IO1_H__
2 #define __CARME_IO1_H__
77 #include <stm32f4xx.h>
80 #define CARME_IO1_BUTTON0_PORT GPIOC
81 #define CARME_IO1_BUTTON1_PORT GPIOB
82 #define CARME_IO1_BUTTON2_PORT GPIOB
83 #define CARME_IO1_BUTTON3_PORT GPIOI
84 #define CARME_IO1_BUTTON0_PIN GPIO_Pin_7
85 #define CARME_IO1_BUTTON1_PIN GPIO_Pin_15
86 #define CARME_IO1_BUTTON2_PIN GPIO_Pin_14
87 #define CARME_IO1_BUTTON3_PIN GPIO_Pin_0
enum _CARME_IO1_PIO_PORT CARME_IO1_PIO_PORT
This enum contains all available Ports of the PIO device.
void CARME_IO1_BUTTON_Get(uint8_t *pStatus)
Get the CARME IO1 button status.
void CARME_IO1_PIO_Read(CARME_IO1_PIO_PORT port, uint8_t *data)
Read the PIO value.
void CARME_IO1_PIO_Clear(CARME_IO1_PIO_PORT port, uint8_t pio)
Clears the PIO on the position of the input value. For example the input value 0x4 clears the pin nu...
enum _CARME_IO1_PIO_CONTROL CARME_IO1_PIO_CONTROL
This contains all possible commands for the PIO device.
_CARME_IO1_PIO_PORT
This enum contains all available Ports of the PIO device.
void CARME_IO1_PIO_Write(CARME_IO1_PIO_PORT port, uint8_t data)
Sets the PIOs in order with the input-value.
void CARME_IO1_LED_Set(uint8_t write, uint8_t mask)
Set a byte to the CARME IO1 LEDs.
void CARME_IO1_SWITCH_Get(uint8_t *pStatus)
Get the CARME IO1 switch status.
void CARME_IO1_PIO_Set(CARME_IO1_PIO_PORT port, uint8_t pio)
Sets the PIO on the position of the input value. For example the input value 0x4 sets the pin number...
void CARME_IO1_BUTTON_Interrupt(FunctionalState NewState)
Set the CARME IO1 interrupt enable/disable.
void CARME_IO1_PIO_Control(CARME_IO1_PIO_CONTROL cmd)
Sets the PIO Control Register. This function must be called to change the Port direction.
_CARME_IO1_PIO_CONTROL
This contains all possible commands for the PIO device.
void CARME_IO1_Init(void)
CARME IO1 initialization.
void CARME_IO1_LED_Get(uint8_t *pStatus)
Get the CARME IO1 LED status.