rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
hw_layer
drivers
gpio
mc33972.h
Go to the documentation of this file.
1
/*
2
* mc33972.h
3
*
4
* Multiple Switch Detection Interface with Suppressed Wake-up
5
*
6
* @date Apr 07, 2019
7
* @author Andrey Gusakov <dron0gus@gmail.com>, (c) 2019
8
*/
9
10
#pragma once
11
12
#include <hal.h>
13
#include "efifeatures.h"
14
15
#define MC33972_INPUTS 22
16
17
/* TODO: add irq support */
18
#define MC33972_POLL_INTERVAL_MS 100
19
20
struct
mc33972_config
{
21
#if HAL_USE_SPI
22
SPIDriver *
spi_bus
;
23
SPIConfig
spi_config
;
24
#endif
25
};
26
27
int
mc33972_add
(
brain_pin_e
base,
unsigned
int
index,
const
struct
mc33972_config
*cfg);
Gpio
Gpio
Definition
rusefi_hw_enums.h:14
mc33972_add
int mc33972_add(brain_pin_e base, unsigned int index, const struct mc33972_config *cfg)
MC33972 driver add.
Definition
mc33972.cpp:414
mc33972_config
Definition
mc33972.h:20
mc33972_config::spi_config
SPIConfig spi_config
Definition
mc33972.h:23
mc33972_config::spi_bus
SPIDriver * spi_bus
Definition
mc33972.h:22
Generated on Sat Sep 27 2025 00:10:06 for rusEFI by
1.9.8