|
uint8_t | getRegisterValue (uint8_t address) |
| getRegisterValue() Getter function to access the registerMap array outside of this module More...
|
|
bool | adcStartupRoutine (SPI_Handle spiHdl) |
| adcStartupRoutine() Startup function to be called before communicating with the ADC More...
|
|
uint8_t | readSingleRegister (SPI_Handle spiHdl, uint8_t address) |
| readSingleRegister() Reads contents of a single register at the specified address More...
|
|
void | readMultipleRegisters (SPI_Handle spiHdl, uint8_t startAddress, uint8_t count) |
| readMultipleRegisters() Reads a group of registers starting at the specified address NOTE: Use getRegisterValue() to retrieve the read values More...
|
|
void | writeSingleRegister (SPI_Handle spiHdl, uint8_t address, uint8_t data) |
| writeSingleRegister() Write data to a single register at the specified address More...
|
|
void | writeMultipleRegisters (SPI_Handle spiHdl, uint8_t startAddress, uint8_t count, uint8_t regData[]) |
| writeMultipleRegisters() Write data to a group of registers NOTES: Use getRegisterValue() to retrieve the written values. Registers should be re-read after a write operation to ensure proper configuration. More...
|
|
void | sendCommand (SPI_Handle spiHdl, uint8_t op_code) |
| sendCommand() Sends the specified SPI command to the ADC More...
|
|
void | startConversions (SPI_Handle spiHdl) |
| startConversions() Wakes the device from power-down and starts continuous conversions by setting START pin high or sending START Command More...
|
|
void | stopConversions (SPI_Handle spiHdl) |
| stopConversions() Stops continuous conversions by setting START pin low or sending STOP Command More...
|
|
void | resetADC (SPI_Handle spiHdl) |
| resetADC() Resets ADC by setting RESET pin low or sending RESET Command More...
|
|
int32_t | readConvertedData (SPI_Handle spiHdl, uint8_t status[], readMode mode) |
| readConvertedData() Sends the read command and retrieves STATUS (if enabled) and data NOTE: Call this function after /DRDY goes low and specify the the number of bytes to read and the starting position of data More...
|
|
void | restoreRegisterDefaults (void) |
| restoreRegisterDefaults() Updates the registerMap[] array to its default values NOTES: If the MCU keeps a copy of the ADC register settings in memory, then it is important to ensure that these values remain in sync with the actual hardware settings. In order to help facilitate this, this function should be called after powering up or resetting the device (either by hardware pin control or SPI software command). Reading back all of the registers after resetting the device will accomplish the same result. More...
|
|
ADS124S08 Low level routines using TI Drivers.
- Copyright
- Copyright (C) 2019-22 Texas Instruments Incorporated - http://www.ti.com/ All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of Texas Instruments Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.