rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
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
21#if HAL_USE_SPI
22 SPIDriver *spi_bus;
23 SPIConfig spi_config;
24#endif
25};
26
27int mc33972_add(brain_pin_e base, unsigned int index, const struct mc33972_config *cfg);
int mc33972_add(brain_pin_e base, unsigned int index, const struct mc33972_config *cfg)
MC33972 driver add.
Definition mc33972.cpp:414
SPIConfig spi_config
Definition mc33972.h:23
SPIDriver * spi_bus
Definition mc33972.h:22