rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
poten.h
Go to the documentation of this file.
1/**
2 * @file poten.h
3 * @brief MCP42010 digital potentiometer driver
4 *
5 * @date Mar 16, 2013
6 * @author Andrey Belomutskiy, (c) 2012-2020
7 */
8
9#pragma once
10
11#include "global.h"
12
13#if HAL_USE_SPI
14
16
17typedef struct {
18 SPIDriver *spi;
19 SPIConfig spiConfig;
21
22//void initPotentiometer(Mcp42010Driver *driver, SPIDriver *spi, ioportid_t port, ioportmask_t pin);
24void setPotResistance(Mcp42010Driver *driver, int channel, int resistance);
25
26#endif
27
uint16_t channel
Definition adc_inputs.h:104
Main engine configuration data structure.
void initPotentiometers()
Definition poten.cpp:90
void setPotResistance(Mcp42010Driver *driver, int channel, int resistance)
Definition poten.cpp:73
SPIConfig spiConfig
Definition poten.h:19
SPIDriver * spi
Definition poten.h:18