STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
STAR_MCP3201 Class Reference

#include <STAR_MCP3201.h>

Public Member Functions

 STAR_MCP3201 (uint8_t cs_pin, SPIClass *spi)
uint16_t read ()

Private Attributes

uint8_t _cs
SPIClass * _spi

Detailed Description

Definition at line 6 of file STAR_MCP3201.h.

Constructor & Destructor Documentation

◆ STAR_MCP3201()

STAR_MCP3201::STAR_MCP3201 ( uint8_t cs_pin,
SPIClass * spi )

Definition at line 3 of file STAR_MCP3201.cpp.

References _cs, and _spi.

Member Function Documentation

◆ read()

uint16_t STAR_MCP3201::read ( )

Definition at line 6 of file STAR_MCP3201.cpp.

References _cs, _spi, digitalWrite(), HIGH, and LOW.

Member Data Documentation

◆ _cs

uint8_t STAR_MCP3201::_cs
private

Definition at line 18 of file STAR_MCP3201.h.

Referenced by read(), and STAR_MCP3201().

◆ _spi

SPIClass* STAR_MCP3201::_spi
private

Definition at line 19 of file STAR_MCP3201.h.

Referenced by read(), and STAR_MCP3201().


The documentation for this class was generated from the following files: