Hardware Abstraction Layer for FreeRTOS
adcs747x.h File Reference

Go to the source code of this file.

Macros

#define ADD_ADCS747X(_channelID)
 
#define ADCS747X_ID(_channelID)   HAL_GET_ID(adc, adcs747x, adcs747x_##_channelID)
 

Functions

int32_t adcs747x_connect (struct adc *a, struct spi *spi, uint8_t cs, uint16_t gpio)
 

Macro Definition Documentation

◆ ADCS747X_ID

#define ADCS747X_ID (   _channelID)    HAL_GET_ID(adc, adcs747x, adcs747x_##_channelID)

◆ ADD_ADCS747X

#define ADD_ADCS747X (   _channelID)
Value:
struct adc_adcs747x adcs747x_##_channelID = { \
ADC_INIT_DEV(adcs747x) \
HAL_NAME("TI ADCS747x Channel " #_channelID) \
.channelID = _channelID, \
};\
ADC_ADDDEV(adcs747x, adcs747x_##_channelID)

Function Documentation

◆ adcs747x_connect()

int32_t adcs747x_connect ( struct adc *  a,
struct spi *  spi,
uint8_t  cs,
uint16_t  gpio 
)