76 #define LTC6954_CS QUIKEVAL_CS 81 #define LTC6954_CMSINV0 1 82 #define LTC6954_CMSINV1 2
83 #define LTC6954_CMSINV2 3
84 #define LTC6954_DEL0 4
85 #define LTC6954_DEL1 5
86 #define LTC6954_DEL2 6
87 #define LTC6954_LVCS0 7
88 #define LTC6954_LVCS1 8
89 #define LTC6954_LVCS2 9
93 #define LTC6954_PART 13
94 #define LTC6954_PDALL 14
95 #define LTC6954_PD_DIV0 15
96 #define LTC6954_PD_DIV1 16
97 #define LTC6954_PD_DIV2 17
98 #define LTC6954_PD_OUT0 18
99 #define LTC6954_PD_OUT1 19
100 #define LTC6954_PD_OUT2 20
101 #define LTC6954_REV 21
102 #define LTC6954_SYNC_EN0 22
103 #define LTC6954_SYNC_EN1 23
104 #define LTC6954_SYNC_EN2 24
106 #define LTC6954_NUM_REGADDR 8 107 #define LTC6954_NUM_REGFIELD 24
void set_LTC6954_SPI_FIELD(uint8_t cs, uint8_t f, long field_data)
Sets the LTC6954 SPI field value calls function LTC6954_read_field, which reads specific address/fiel...
void LTC6954_init()
Initializes the SPI MAP arrays The values set in initialization are used all the LTC6954 SPI/WRITE an...
uint8_t get_LTC6954_SPI_FIELD_NUMBITS(uint8_t f)
returns the number of bits for a given field name in the SPI map
long get_LTC6954_SPI_FIELD(uint8_t cs, uint8_t f)
Gets the LTC6954 SPI field value calls function LTC6954_read_field, which reads specific address loca...
void set_LTC6954_ALLREGS(uint8_t cs, uint8_t reg00, uint8_t reg01, uint8_t reg02, uint8_t reg03, uint8_t reg04, uint8_t reg05, uint8_t reg06)
Writes values to ALL LTC6954 RW address.
uint8_t get_LTC6954_SPI_FIELD_RW(uint8_t f)
returns if the given field name is (0)read/write or (1)read_only field
void LTC6954_write(uint8_t cs, uint8_t address, uint8_t Data)
LTC6954 Write Single Address writes 8 bit Data field to LTC6954.
uint8_t LTC6954_read(uint8_t cs, int8_t address)
LTC6954 Read Single Address reads 8 bit Data field to LTC6954.
uint8_t LTC6954_write_field(uint8_t cs, long field_data, uint8_t address, uint8_t MSB_loc, uint8_t numbits)
LTC6954 Write Single Field For SPI FIELDS in 1 or multiple address locations reads specific address/f...
uint8_t get_LTC6954_REGSIZE()
returns # of addresses in parts register map (array size)
long LTC6954_read_field(uint8_t cs, uint8_t address, uint8_t MSB_loc, uint8_t numbits)
LTC6954 Read Single Field For SPI FIELDS located in 1 or multiple address locations reads specific ad...