AFE_NXP_Arduino 2.0.2 Analog Front-End (AFE) device operation sample code for Arduino

Loading...
Searching...
No Matches
AFE_NXP.h
Go to the documentation of this file.
1
8
9#ifndef ARDUINO_AFE_DRIVER_H
10#define ARDUINO_AFE_DRIVER_H
11
12#include <Arduino.h>
13#include <math.h>
14#include <stdint.h>
15#include <SPI_for_AFE.h>
16
17 class AFE_base : public SPI_for_AFE
18{
19 public:
20
22 using raw_t = int32_t;
23 using volt_t = double;
24
26 AFE_base( bool spi_addr, bool highspeed_variant, int nINT, int DRDY, int SYN, int nRESET, int DRDY_input, int SYNCDAC );
27
29 virtual ~AFE_base();
30
37 virtual void begin( void );
38
40 virtual void boot( void ) = 0;
41
43 virtual void reset( bool hardware_reset = false ) = 0;
44
46 typedef void (*callback_fp_t)( void );
47 virtual void set_DRDY_callback( callback_fp_t fnc );
48
50
59 virtual void open_logical_channel( int ch, uint16_t cc0, uint16_t cc1, uint16_t cc2, uint16_t cc3 ) = 0;
60
66 virtual void open_logical_channel( int ch, const uint16_t (&cc)[ 4 ] ) = 0;
67
72 virtual void close_logical_channel( int ch ) = 0;
73
76 virtual void close_logical_channel( void ) = 0;
77
82 virtual void enable_logical_channel( int ch ) = 0;
83
88 virtual void start( int ch ) = 0;
89
92 virtual void start( void ) = 0;
93
96 virtual void start_continuous_conversion( void ) = 0;
97
102 virtual void DRDY_by_sequencer_done( bool flag = true ) = 0;
103
108 virtual raw_t read( int ch ) = 0;
109
114 virtual void read( raw_t *data_ptr ) = 0;
115
120 virtual void read( volt_t *data_ptr ) = 0;
121
126 virtual raw_t start_and_read( int ch );
127
128#ifdef NON_TEMPLATE_VERSION_FOR_START_AND_READ
129
134 virtual void start_and_read( raw_t *data_ptr );
135
136#else
137 template<typename T>
138 inline void start_and_read( T data )
139 {
140 double wait_time = cbf_DRDY ? -1.0 : total_delay * delay_accuracy;
141
142 start();
143 wait_conversion_complete( wait_time );
144
145 read( data );
146 };
147#endif
148
149 enum LV_mux_sel : uint8_t {
150 REF2_REF2 = 0,
151 GPIO0_GPIO1,
152 REFCOARSE_REF2,
153 VADD_REF2,
154 VHDD_REF2,
155 REF2_VHSS,
156 HV_MUX,
157 };
158
164 inline double raw2uv( int ch, raw_t value )
165 {
166 return raw2v( ch, value ) * 1e6;
167 }
168
174 inline double raw2mv( int ch, raw_t value )
175 {
176 return raw2v( ch, value ) * 1e3;
177 }
178
184 virtual double raw2v( int ch, raw_t value ) = 0;
185
190 inline double drdy_delay( int ch )
191 {
192 return ch_delay[ ch ];
193 }
194
197 inline double drdy_delay( void )
198 {
199 return total_delay;
200 }
201
203 inline int enabled_logical_channels( void )
204 {
205 return enabled_channels;
206 }
207
212 void use_DRDY_trigger( bool use = true );
213
214 protected:
215 bool dev_add;
216 bool highspeed_variant;
217 int pin_nINT;
218 int pin_DRDY;
219 int pin_SYN;
220 int pin_nRESET;
221 int pin_DRDY_input;
222 int pin_SYNCDAC;
223
224
225 int bit_count( uint32_t value );
226
228 int enabled_channels;
229
231 uint8_t sequence_order[ 16 ];
232
234 double coeff_V[ 16 ];
235
237 int mux_setting[ 16 ];
238
240 double ch_delay[ 16 ];
241 double total_delay;
242 static double delay_accuracy;
243
244 constexpr static uint32_t timeout_limit = 10000000;
245
246 void default_drdy_cb();
247 static void static_default_drdy_cb();
248 uint32_t drdy_count;
249 volatile bool drdy_flag;
250 static callback_fp_t cbf_DRDY;
251 static void DRDY_cb();
252
253 virtual void init( void );
254
255 int wait_conversion_complete( double delay = -1.0 );
256
257 public:
258 static AFE_base* instance;
259};
260
261 class LogicalChannel_Base
262{
263 public:
264 LogicalChannel_Base() {}
265 virtual ~LogicalChannel_Base() {}
266
267 void enable( void );
268 void disable( void );
269
270 template<class T> T read(void);
271
272 operator AFE_base::raw_t(void);
273 operator AFE_base::volt_t(void);
274
275 template<class T> double operator+( T v ) { return (double)(*this) + (double)v; }
276 template<class T> double operator-( T v ) { return (double)(*this) - (double)v; }
277 template<class T> double operator*( T v ) { return (double)(*this) * (double)v; }
278 template<class T> double operator/( T v ) { return (double)(*this) / (double)v; }
279 template<class T> friend double operator+( T v, LogicalChannel_Base lc ) { return (double)v + (double)lc; }
280 template<class T> friend double operator-( T v, LogicalChannel_Base lc ) { return (double)v - (double)lc; }
281 template<class T> friend double operator*( T v, LogicalChannel_Base lc ) { return (double)v * (double)lc; }
282 template<class T> friend double operator/( T v, LogicalChannel_Base lc ) { return (double)v / (double)lc; }
283
284 int ch_number;
285 AFE_base *afe_ptr;
286};
287
288 class NAFE13388_Base : public AFE_base
289{
290 public:
291 using ch_setting_t = uint16_t[ 4 ];
292
293 typedef struct _reference_point {
294 double voltage;
295 int32_t data;
296 } reference_point;
297
298 typedef struct _ref_points {
299 int coeff_index;
300 reference_point high;
301 reference_point low;
302 int cal_index;
303 } ref_points;
304
306 NAFE13388_Base( bool spi_addr, bool highspeed_variant, int nINT, int DRDY, int SYN, int nRESET, int DRDY_input, int SYNCDAC );
307
309 virtual ~NAFE13388_Base();
310
312 virtual void boot( void );
313
315 virtual void reset( bool hardware_reset = false );
316
325 virtual void open_logical_channel( int ch, uint16_t cc0, uint16_t cc1, uint16_t cc2, uint16_t cc3 );
326
332 virtual void open_logical_channel( int ch, const uint16_t (&cc)[ 4 ] );
333
334 class LogicalChannel : public LogicalChannel_Base
335 {
336 public:
337 LogicalChannel();
338 virtual ~LogicalChannel();
339
340 void configure( const uint16_t (&cc)[ 4 ] );
341 void configure( uint16_t cc0 = 0x0000, uint16_t cc1 = 0x0000, uint16_t cc2 = 0x0000, uint16_t cc3 = 0x0000 );
342 };
343
344 LogicalChannel logical_channel[ 16 ];
345
346 private:
347 double calc_delay( int ch );
348 void channel_info_update( uint16_t value );
349
350 public:
355 virtual void close_logical_channel( int ch );
356
359 virtual void close_logical_channel( void );
360
365 void enable_logical_channel( int ch );
366
371 virtual void start( int ch );
372
375 virtual void start( void );
376
379 virtual void start_continuous_conversion();
380
385 virtual void DRDY_by_sequencer_done( bool flag = true );
386
391 virtual raw_t read( int ch );
392
397 virtual void read( raw_t *data );
398
403 virtual void read( volt_t *data );
404
410 inline double raw2v( int ch, raw_t value )
411 {
412 double v = value * coeff_V[ ch ];
413
414 if ( HV_MUX != mux_setting[ ch ] )
415 {
416 switch ( mux_setting[ ch ] )
417 {
418 case REF2_REF2:
419 case GPIO0_GPIO1:
420 return v;
421 break;
422 case REFCOARSE_REF2:
423 case VADD_REF2:
424 return 2.00 * (v + 1.50);
425 break;
426 case VHDD_REF2:
427 return 32.00 * (v + 0.25);
428 break;
429 case REF2_VHSS:
430 return -32.00 * (v - 0.25);
431 break;
432 }
433 }
434 return v;
435 }
436
437
438// constexpr static double pga_gain[] = { 0.2, 0.4, 0.8, 1, 2, 4, 8, 16 };
439 static double pga_gain[];
440
441 enum GainPGA : uint8_t {
442 G_PGA_x_0_2 = 0,
443 G_PGA_x_0_4,
444 G_PGA_x_0_8,
445 G_PGA_x_1_0,
446 G_PGA_x_2_0,
447 G_PGA_x_4_0,
448 G_PGA_x_8_0,
449 G_PGA_x16_0,
450 };
451
452 enum class Register16 : uint16_t {
453 CH_CONFIG0 = 0x20,
454 CH_CONFIG1 = 0x21,
455 CH_CONFIG2 = 0x22,
456 CH_CONFIG3 = 0x23,
457 CH_CONFIG4 = 0x24,
458 CRC_CONF_REGS = 0x25,
459 CRC_COEF_REGS = 0x26,
460 CRC_TRIM_REGS = 0x27,
461 GPI_DATA = 0x29,
462 GPIO_CONFIG0 = 0x2A,
463 GPIO_CONFIG1 = 0x2B,
464 GPIO_CONFIG2 = 0x2C,
465 GPI_EDGE_POS = 0x2D,
466 GPI_EDGE_NEG = 0x2E,
467 GPO_DATA = 0x2F,
468 SYS_CONFIG0 = 0x30,
469 SYS_STATUS0 = 0x31,
470 GLOBAL_ALARM_ENABLE = 0x32,
471 GLOBAL_ALARM_INTERRUPT = 0x33,
472 DIE_TEMP = 0x34,
473 CH_STATUS0 = 0x35,
474 CH_STATUS1 = 0x36,
475 THRS_TEMP = 0x37,
476 PN2 = 0x7C,
477 PN1 = 0x7D,
478 PN0 = 0x7E,
479 CRC_TRIM_INT = 0x7F,
480 };
481
482 enum class Register24 : uint16_t {
483 CH_DATA0 = 0x40,
484 CH_DATA1 = 0x41,
485 CH_DATA2 = 0x42,
486 CH_DATA3 = 0x43,
487 CH_DATA4 = 0x44,
488 CH_DATA5 = 0x45,
489 CH_DATA6 = 0x46,
490 CH_DATA7 = 0x47,
491 CH_DATA8 = 0x48,
492 CH_DATA9 = 0x4A,
493 CH_DATA10 = 0x4B,
494 CH_DATA11 = 0x4C,
495 CH_DATA13 = 0x4D,
496 CH_DATA14 = 0x4E,
497 CH_DATA15 = 0x4F,
498 CH_CONFIG5_0 = 0x50,
499 CH_CONFIG5_1 = 0x51,
500 CH_CONFIG5_2 = 0x52,
501 CH_CONFIG5_3 = 0x53,
502 CH_CONFIG5_4 = 0x54,
503 CH_CONFIG5_5 = 0x55,
504 CH_CONFIG5_6 = 0x56,
505 CH_CONFIG5_7 = 0x57,
506 CH_CONFIG5_8 = 0x58,
507 CH_CONFIG5_9 = 0x59,
508 CH_CONFIG5_10 = 0x5A,
509 CH_CONFIG5_11 = 0x5B,
510 CH_CONFIG5_12 = 0x5C,
511 CH_CONFIG5_13 = 0x5D,
512 CH_CONFIG5_14 = 0x5E,
513 CH_CONFIG5_15 = 0x5F,
514 CH_CONFIG6_0 = 0x60,
515 CH_CONFIG6_1 = 0x61,
516 CH_CONFIG6_2 = 0x62,
517 CH_CONFIG6_3 = 0x63,
518 CH_CONFIG6_4 = 0x64,
519 CH_CONFIG6_5 = 0x65,
520 CH_CONFIG6_6 = 0x66,
521 CH_CONFIG6_7 = 0x67,
522 CH_CONFIG6_8 = 0x68,
523 CH_CONFIG6_9 = 0x69,
524 CH_CONFIG6_10 = 0x6A,
525 CH_CONFIG6_11 = 0x6B,
526 CH_CONFIG6_12 = 0x6C,
527 CH_CONFIG6_13 = 0x6D,
528 CH_CONFIG6_14 = 0x6E,
529 CH_CONFIG6_15 = 0x6F,
530 GAIN_COEFF0 = 0x80,
531 GAIN_COEFF1 = 0x81,
532 GAIN_COEFF2 = 0x82,
533 GAIN_COEFF3 = 0x83,
534 GAIN_COEFF4 = 0x84,
535 GAIN_COEFF5 = 0x85,
536 GAIN_COEFF6 = 0x86,
537 GAIN_COEFF7 = 0x87,
538 GAIN_COEFF8 = 0x88,
539 GAIN_COEFF9 = 0x89,
540 GAIN_COEFF10 = 0x8A,
541 GAIN_COEFF11 = 0x8B,
542 GAIN_COEFF12 = 0x8C,
543 GAIN_COEFF13 = 0x8D,
544 GAIN_COEFF14 = 0x8E,
545 GAIN_COEFF15 = 0x8F,
546 OFFSET_COEFF0 = 0x90,
547 OFFSET_COEFF1 = 0x91,
548 OFFSET_COEFF2 = 0x92,
549 OFFSET_COEFF3 = 0x93,
550 OFFSET_COEFF4 = 0x94,
551 OFFSET_COEFF5 = 0x95,
552 OFFSET_COEFF6 = 0x96,
553 OFFSET_COEFF7 = 0x97,
554 OFFSET_COEFF8 = 0x98,
555 OFFSET_COEFF9 = 0x99,
556 OFFSET_COEFF10 = 0x9A,
557 OFFSET_COEFF11 = 0x9B,
558 OFFSET_COEFF12 = 0x9C,
559 OFFSET_COEFF13 = 0x9D,
560 OFFSET_COEFF14 = 0x9E,
561 OFFSET_COEFF15 = 0x9F,
562 OPT_COEF0 = 0xA0,
563 OPT_COEF1 = 0xA1,
564 OPT_COEF2 = 0xA2,
565 OPT_COEF3 = 0xA3,
566 OPT_COEF4 = 0xA4,
567 OPT_COEF5 = 0xA5,
568 OPT_COEF6 = 0xA6,
569 OPT_COEF7 = 0xA7,
570 OPT_COEF8 = 0xA8,
571 OPT_COEF9 = 0xA9,
572 OPT_COEF10 = 0xAA,
573 OPT_COEF11 = 0xAB,
574 OPT_COEF12 = 0xAC,
575 OPT_COEF13 = 0xAD,
576 SERIAL1 = 0xAE,
577 SERIAL0 = 0xAF,
578 };
579
580 enum Command : uint16_t {
581 CMD_CH0 = 0x0000,
582 CMD_CH1 = 0x0001,
583 CMD_CH2 = 0x0002,
584 CMD_CH3 = 0x0003,
585 CMD_CH4 = 0x0004,
586 CMD_CH5 = 0x0005,
587 CMD_CH6 = 0x0006,
588 CMD_CH7 = 0x0007,
589 CMD_CH8 = 0x0008,
590 CMD_CH9 = 0x0009,
591 CMD_CH10 = 0x000A,
592 CMD_CH11 = 0x000B,
593 CMD_CH12 = 0x000C,
594 CMD_CH13 = 0x000D,
595 CMD_CH14 = 0x000E,
596 CMD_CH15 = 0x000F,
597 CMD_ABORT = 0x0010,
598 CMD_END = 0x0011,
599 CMD_CLEAR_ALARM = 0x0012,
600 CMD_CLEAR_DATA = 0x0013,
601 CMD_RESET = 0x0014,
602 CMD_CLEAR_REG = 0x0015,
603 CMD_RELOAD = 0x0016,
604 TBD = 0x0017,
605 CMD_SS = 0x2000,
606 CMD_SC = 0x2001,
607 CMD_MM = 0x2002,
608 CMD_MC = 0x2003,
609 CMD_MS = 0x2004,
610 CMD_BURST_DATA = 0x2005,
611 CMD_CALC_CRC_CONFG = 0x2006,
612 CMD_CALC_CRC_COEF = 0x2007,
613 CMD_CALC_CRC_FAC = 0x2008,
614 };
615
620 virtual void command( uint16_t com );
621
627 virtual void reg( Register16 r, uint16_t value );
628
634 virtual void reg( Register24 r, uint32_t value );
635
642 virtual uint16_t reg( Register16 r );
643
650 virtual uint32_t reg( Register24 r );
651
659 template<typename T>
660 uint32_t bit_op( T rg, uint32_t mask, uint32_t value )
661 {
662 uint32_t v = reg( rg );
663
664 v &= mask;
665 v |= value & ~mask;
666
667 reg( rg, v );
668
669 return v;
670 }
671
676 uint32_t part_number( void );
677
682 uint8_t revision_number( void );
683
688 uint64_t serial_number( void );
689
694 float temperature( void );
695
701 void gain_offset_coeff( const ref_points &ref );
702
703 enum CalibrationError : int {
704 NoError = 0,
705 GainError = -1,
706 OffsetError = -2,
707 };
708
720 int self_calibrate( int pga_gain_index, int channel_selection = 15, int input_select = 0, double reference_source_voltage = 0, bool use_positive_side = true );
721
723 void blink_leds( void );
724};
725
726 class NAFE13388 : public NAFE13388_Base
727{
728 public:
730 NAFE13388( bool spi_addr = 0, bool highspeed_variant = false, int nINT = 2, int DRDY = 4, int SYN = 5, int nRESET = 6, int DRDY_input = 15, int SYNCDAC = 14 );
731
733 virtual ~NAFE13388();
734};
735
736 class NAFE13388_UIM : public NAFE13388_Base
737{
738 public:
740 NAFE13388_UIM( bool spi_addr = 0, bool highspeed_variant = false, int nINT = 3, int DRDY = 4, int SYN = 6, int nRESET = 7, int DRDY_input = 2, int SYNCDAC = 14 );
741
743 virtual ~NAFE13388_UIM();
744
745 void blink_leds( void );
746};
747
748 inline NAFE13388_Base::Register16 operator+( NAFE13388_Base::Register16 rn, int n )
749{
750 return static_cast<NAFE13388_Base::Register16>( static_cast<uint16_t>( rn ) + n );
751}
752
753 inline NAFE13388_Base::Register16 operator+( int n, NAFE13388_Base::Register16 rn )
754{
755 return static_cast<NAFE13388_Base::Register16>( n + static_cast<uint16_t>( rn ) );
756}
757
758 inline NAFE13388_Base::Register24 operator+( NAFE13388_Base::Register24 rn, int n )
759{
760 return static_cast<NAFE13388_Base::Register24>( static_cast<uint16_t>( rn ) + n );
761}
762
763 inline NAFE13388_Base::Register24 operator+( int n, NAFE13388_Base::Register24 rn )
764{
765 return static_cast<NAFE13388_Base::Register24>( n + static_cast<uint16_t>( rn ) );
766}
767
768#endif // ARDUINO_AFE_DRIVER_H
operator+
NAFE13388_Base::Register16 operator+(NAFE13388_Base::Register16 rn, int n)
Definition AFE_NXP.h:748
SPI_for_AFE.h
AFE_base
Definition AFE_NXP.h:18
AFE_base::enable_logical_channel
virtual void enable_logical_channel(int ch)=0
AFE_base::start_continuous_conversion
virtual void start_continuous_conversion(void)=0
AFE_base::instance
static AFE_base * instance
Definition AFE_NXP.h:258
AFE_base::cbf_DRDY
static callback_fp_t cbf_DRDY
Definition AFE_NXP.h:250
AFE_base::close_logical_channel
virtual void close_logical_channel(void)=0
AFE_base::raw_t
int32_t raw_t
Definition AFE_NXP.h:22
AFE_base::volt_t
double volt_t
Definition AFE_NXP.h:23
AFE_base::use_DRDY_trigger
void use_DRDY_trigger(bool use=true)
Definition AFE_NXP.cpp:191
AFE_base::~AFE_base
virtual ~AFE_base()
Definition AFE_NXP.cpp:84
AFE_base::open_logical_channel
virtual void open_logical_channel(int ch, const uint16_t(&cc)[4])=0
AFE_base::DRDY_cb
static void DRDY_cb()
Definition AFE_NXP.cpp:114
AFE_base::raw2v
virtual double raw2v(int ch, raw_t value)=0
AFE_base::read
virtual void read(volt_t *data_ptr)=0
AFE_base::pin_nINT
int pin_nINT
Definition AFE_NXP.h:217
AFE_base::set_DRDY_callback
virtual void set_DRDY_callback(callback_fp_t fnc)
Definition AFE_NXP.cpp:109
AFE_base::pin_DRDY_input
int pin_DRDY_input
Definition AFE_NXP.h:221
AFE_base::init
virtual void init(void)
Definition AFE_NXP.cpp:88
AFE_base::timeout_limit
static constexpr uint32_t timeout_limit
Definition AFE_NXP.h:244
AFE_base::begin
virtual void begin(void)
Definition AFE_NXP.cpp:98
AFE_base::open_logical_channel
virtual void open_logical_channel(int ch, uint16_t cc0, uint16_t cc1, uint16_t cc2, uint16_t cc3)=0
AFE_base::drdy_delay
double drdy_delay(int ch)
Definition AFE_NXP.h:190
AFE_base::raw2mv
double raw2mv(int ch, raw_t value)
Definition AFE_NXP.h:174
AFE_base::LV_mux_sel
LV_mux_sel
Definition AFE_NXP.h:149
AFE_base::VADD_REF2
@ VADD_REF2
Definition AFE_NXP.h:153
AFE_base::HV_MUX
@ HV_MUX
Definition AFE_NXP.h:156
AFE_base::REF2_VHSS
@ REF2_VHSS
Definition AFE_NXP.h:155
AFE_base::GPIO0_GPIO1
@ GPIO0_GPIO1
Definition AFE_NXP.h:151
AFE_base::REF2_REF2
@ REF2_REF2
Definition AFE_NXP.h:150
AFE_base::REFCOARSE_REF2
@ REFCOARSE_REF2
Definition AFE_NXP.h:152
AFE_base::VHDD_REF2
@ VHDD_REF2
Definition AFE_NXP.h:154
AFE_base::highspeed_variant
bool highspeed_variant
Definition AFE_NXP.h:216
AFE_base::enabled_logical_channels
int enabled_logical_channels(void)
Definition AFE_NXP.h:203
AFE_base::reset
virtual void reset(bool hardware_reset=false)=0
AFE_base::drdy_count
uint32_t drdy_count
Definition AFE_NXP.h:248
AFE_base::bit_count
int bit_count(uint32_t value)
Definition AFE_NXP.cpp:155
AFE_base::pin_SYNCDAC
int pin_SYNCDAC
Definition AFE_NXP.h:222
AFE_base::read
virtual void read(raw_t *data_ptr)=0
AFE_base::start
virtual void start(int ch)=0
AFE_base::default_drdy_cb
void default_drdy_cb()
Definition AFE_NXP.cpp:126
AFE_base::raw2uv
double raw2uv(int ch, raw_t value)
Definition AFE_NXP.h:164
AFE_base::callback_fp_t
void(* callback_fp_t)(void)
Definition AFE_NXP.h:46
AFE_base::coeff_V
double coeff_V[16]
Definition AFE_NXP.h:234
AFE_base::start_and_read
virtual raw_t start_and_read(int ch)
Definition AFE_NXP.cpp:132
AFE_base::enabled_channels
int enabled_channels
Definition AFE_NXP.h:228
AFE_base::sequence_order
uint8_t sequence_order[16]
Definition AFE_NXP.h:231
AFE_base::static_default_drdy_cb
static void static_default_drdy_cb()
Definition AFE_NXP.cpp:120
AFE_base::start
virtual void start(void)=0
AFE_base::AFE_base
AFE_base(bool spi_addr, bool highspeed_variant, int nINT, int DRDY, int SYN, int nRESET, int DRDY_input, int SYNCDAC)
Definition AFE_NXP.cpp:70
AFE_base::wait_conversion_complete
int wait_conversion_complete(double delay=-1.0)
Definition AFE_NXP.cpp:168
AFE_base::close_logical_channel
virtual void close_logical_channel(int ch)=0
AFE_base::drdy_flag
volatile bool drdy_flag
Definition AFE_NXP.h:249
AFE_base::pin_SYN
int pin_SYN
Definition AFE_NXP.h:219
AFE_base::delay_accuracy
static double delay_accuracy
Definition AFE_NXP.h:242
AFE_base::ch_delay
double ch_delay[16]
Definition AFE_NXP.h:240
AFE_base::mux_setting
int mux_setting[16]
Definition AFE_NXP.h:237
AFE_base::boot
virtual void boot(void)=0
AFE_base::pin_nRESET
int pin_nRESET
Definition AFE_NXP.h:220
AFE_base::dev_add
bool dev_add
Definition AFE_NXP.h:215
AFE_base::start_and_read
void start_and_read(T data)
Definition AFE_NXP.h:138
AFE_base::drdy_delay
double drdy_delay(void)
Definition AFE_NXP.h:197
AFE_base::read
virtual raw_t read(int ch)=0
AFE_base::DRDY_by_sequencer_done
virtual void DRDY_by_sequencer_done(bool flag=true)=0
AFE_base::pin_DRDY
int pin_DRDY
Definition AFE_NXP.h:218
AFE_base::total_delay
double total_delay
Definition AFE_NXP.h:241
LogicalChannel_Base::~LogicalChannel_Base
virtual ~LogicalChannel_Base()
Definition AFE_NXP.h:265
LogicalChannel_Base::operator+
double operator+(T v)
Definition AFE_NXP.h:275
LogicalChannel_Base::operator-
friend double operator-(T v, LogicalChannel_Base lc)
Definition AFE_NXP.h:280
LogicalChannel_Base::read
T read(void)
LogicalChannel_Base::LogicalChannel_Base
LogicalChannel_Base()
Definition AFE_NXP.h:264
LogicalChannel_Base::enable
void enable(void)
Definition AFE_NXP.cpp:14
LogicalChannel_Base::afe_ptr
AFE_base * afe_ptr
Definition AFE_NXP.h:285
LogicalChannel_Base::operator-
double operator-(T v)
Definition AFE_NXP.h:276
LogicalChannel_Base::operator*
double operator*(T v)
Definition AFE_NXP.h:277
LogicalChannel_Base::operator/
friend double operator/(T v, LogicalChannel_Base lc)
Definition AFE_NXP.h:282
LogicalChannel_Base::operator*
friend double operator*(T v, LogicalChannel_Base lc)
Definition AFE_NXP.h:281
LogicalChannel_Base::operator+
friend double operator+(T v, LogicalChannel_Base lc)
Definition AFE_NXP.h:279
LogicalChannel_Base::operator/
double operator/(T v)
Definition AFE_NXP.h:278
LogicalChannel_Base::ch_number
int ch_number
Definition AFE_NXP.h:284
LogicalChannel_Base::disable
void disable(void)
Definition AFE_NXP.cpp:19
NAFE13388_Base::LogicalChannel
Definition AFE_NXP.h:335
NAFE13388_Base::LogicalChannel::~LogicalChannel
virtual ~LogicalChannel()
Definition AFE_NXP.cpp:51
NAFE13388_Base::LogicalChannel::LogicalChannel
LogicalChannel()
Definition AFE_NXP.cpp:47
NAFE13388_Base::LogicalChannel::configure
void configure(const uint16_t(&cc)[4])
Definition AFE_NXP.cpp:56
NAFE13388_Base::start_continuous_conversion
virtual void start_continuous_conversion()
Definition AFE_NXP.cpp:393
NAFE13388_Base::raw2v
double raw2v(int ch, raw_t value)
Definition AFE_NXP.h:410
NAFE13388_Base::boot
virtual void boot(void)
Definition AFE_NXP.cpp:219
NAFE13388_Base::gain_offset_coeff
void gain_offset_coeff(const ref_points &ref)
Definition AFE_NXP.cpp:472
NAFE13388_Base::calc_delay
double calc_delay(int ch)
Definition AFE_NXP.cpp:304
NAFE13388_Base::command
virtual void command(uint16_t com)
Definition AFE_NXP.cpp:423
NAFE13388_Base::blink_leds
void blink_leds(void)
Definition AFE_NXP.cpp:608
NAFE13388_Base::read
virtual raw_t read(int ch)
Definition AFE_NXP.cpp:403
NAFE13388_Base::logical_channel
LogicalChannel logical_channel[16]
Definition AFE_NXP.h:344
NAFE13388_Base::pga_gain
static double pga_gain[]
Definition AFE_NXP.h:667
NAFE13388_Base::bit_op
uint32_t bit_op(T rg, uint32_t mask, uint32_t value)
Definition AFE_NXP.h:660
NAFE13388_Base::self_calibrate
int self_calibrate(int pga_gain_index, int channel_selection=15, int input_select=0, double reference_source_voltage=0, bool use_positive_side=true)
Definition AFE_NXP.cpp:504
NAFE13388_Base::ref_points
struct NAFE13388_Base::_ref_points ref_points
NAFE13388_Base::start
virtual void start(void)
Definition AFE_NXP.cpp:388
NAFE13388_Base::reg
virtual void reg(Register16 r, uint16_t value)
Definition AFE_NXP.cpp:428
NAFE13388_Base::GainPGA
GainPGA
Definition AFE_NXP.h:441
NAFE13388_Base::G_PGA_x_0_8
@ G_PGA_x_0_8
Definition AFE_NXP.h:444
NAFE13388_Base::G_PGA_x_0_4
@ G_PGA_x_0_4
Definition AFE_NXP.h:443
NAFE13388_Base::G_PGA_x_4_0
@ G_PGA_x_4_0
Definition AFE_NXP.h:447
NAFE13388_Base::G_PGA_x16_0
@ G_PGA_x16_0
Definition AFE_NXP.h:449
NAFE13388_Base::G_PGA_x_8_0
@ G_PGA_x_8_0
Definition AFE_NXP.h:448
NAFE13388_Base::G_PGA_x_0_2
@ G_PGA_x_0_2
Definition AFE_NXP.h:442
NAFE13388_Base::G_PGA_x_1_0
@ G_PGA_x_1_0
Definition AFE_NXP.h:445
NAFE13388_Base::G_PGA_x_2_0
@ G_PGA_x_2_0
Definition AFE_NXP.h:446
NAFE13388_Base::reference_point
struct NAFE13388_Base::_reference_point reference_point
NAFE13388_Base::revision_number
uint8_t revision_number(void)
Definition AFE_NXP.cpp:453
NAFE13388_Base::close_logical_channel
virtual void close_logical_channel(void)
Definition AFE_NXP.cpp:376
NAFE13388_Base::Register24
Register24
Definition AFE_NXP.h:482
NAFE13388_Base::Register24::OFFSET_COEFF10
@ OFFSET_COEFF10
Definition AFE_NXP.h:556
NAFE13388_Base::Register24::CH_DATA2
@ CH_DATA2
Definition AFE_NXP.h:485
NAFE13388_Base::Register24::CH_CONFIG5_7
@ CH_CONFIG5_7
Definition AFE_NXP.h:505
NAFE13388_Base::Register24::CH_DATA3
@ CH_DATA3
Definition AFE_NXP.h:486
NAFE13388_Base::Register24::OFFSET_COEFF3
@ OFFSET_COEFF3
Definition AFE_NXP.h:549
NAFE13388_Base::Register24::CH_CONFIG5_2
@ CH_CONFIG5_2
Definition AFE_NXP.h:500
NAFE13388_Base::Register24::CH_CONFIG6_14
@ CH_CONFIG6_14
Definition AFE_NXP.h:528
NAFE13388_Base::Register24::CH_CONFIG5_5
@ CH_CONFIG5_5
Definition AFE_NXP.h:503
NAFE13388_Base::Register24::GAIN_COEFF5
@ GAIN_COEFF5
Definition AFE_NXP.h:535
NAFE13388_Base::Register24::CH_CONFIG6_11
@ CH_CONFIG6_11
Definition AFE_NXP.h:525
NAFE13388_Base::Register24::CH_DATA9
@ CH_DATA9
Definition AFE_NXP.h:492
NAFE13388_Base::Register24::OFFSET_COEFF0
@ OFFSET_COEFF0
Definition AFE_NXP.h:546
NAFE13388_Base::Register24::CH_CONFIG5_4
@ CH_CONFIG5_4
Definition AFE_NXP.h:502
NAFE13388_Base::Register24::CH_DATA15
@ CH_DATA15
Definition AFE_NXP.h:497
NAFE13388_Base::Register24::OPT_COEF4
@ OPT_COEF4
Definition AFE_NXP.h:566
NAFE13388_Base::Register24::GAIN_COEFF4
@ GAIN_COEFF4
Definition AFE_NXP.h:534
NAFE13388_Base::Register24::CH_CONFIG6_10
@ CH_CONFIG6_10
Definition AFE_NXP.h:524
NAFE13388_Base::Register24::OFFSET_COEFF15
@ OFFSET_COEFF15
Definition AFE_NXP.h:561
NAFE13388_Base::Register24::OFFSET_COEFF8
@ OFFSET_COEFF8
Definition AFE_NXP.h:554
NAFE13388_Base::Register24::OPT_COEF6
@ OPT_COEF6
Definition AFE_NXP.h:568
NAFE13388_Base::Register24::OFFSET_COEFF11
@ OFFSET_COEFF11
Definition AFE_NXP.h:557
NAFE13388_Base::Register24::CH_CONFIG5_10
@ CH_CONFIG5_10
Definition AFE_NXP.h:508
NAFE13388_Base::Register24::CH_CONFIG6_5
@ CH_CONFIG6_5
Definition AFE_NXP.h:519
NAFE13388_Base::Register24::CH_DATA5
@ CH_DATA5
Definition AFE_NXP.h:488
NAFE13388_Base::Register24::CH_CONFIG5_1
@ CH_CONFIG5_1
Definition AFE_NXP.h:499
NAFE13388_Base::Register24::GAIN_COEFF12
@ GAIN_COEFF12
Definition AFE_NXP.h:542
NAFE13388_Base::Register24::GAIN_COEFF0
@ GAIN_COEFF0
Definition AFE_NXP.h:530
NAFE13388_Base::Register24::CH_CONFIG6_3
@ CH_CONFIG6_3
Definition AFE_NXP.h:517
NAFE13388_Base::Register24::GAIN_COEFF15
@ GAIN_COEFF15
Definition AFE_NXP.h:545
NAFE13388_Base::Register24::CH_CONFIG6_8
@ CH_CONFIG6_8
Definition AFE_NXP.h:522
NAFE13388_Base::Register24::CH_CONFIG5_15
@ CH_CONFIG5_15
Definition AFE_NXP.h:513
NAFE13388_Base::Register24::CH_DATA13
@ CH_DATA13
Definition AFE_NXP.h:495
NAFE13388_Base::Register24::GAIN_COEFF14
@ GAIN_COEFF14
Definition AFE_NXP.h:544
NAFE13388_Base::Register24::CH_DATA4
@ CH_DATA4
Definition AFE_NXP.h:487
NAFE13388_Base::Register24::OPT_COEF12
@ OPT_COEF12
Definition AFE_NXP.h:574
NAFE13388_Base::Register24::OFFSET_COEFF5
@ OFFSET_COEFF5
Definition AFE_NXP.h:551
NAFE13388_Base::Register24::OFFSET_COEFF4
@ OFFSET_COEFF4
Definition AFE_NXP.h:550
NAFE13388_Base::Register24::CH_CONFIG6_13
@ CH_CONFIG6_13
Definition AFE_NXP.h:527
NAFE13388_Base::Register24::OPT_COEF5
@ OPT_COEF5
Definition AFE_NXP.h:567
NAFE13388_Base::Register24::OPT_COEF2
@ OPT_COEF2
Definition AFE_NXP.h:564
NAFE13388_Base::Register24::CH_CONFIG5_6
@ CH_CONFIG5_6
Definition AFE_NXP.h:504
NAFE13388_Base::Register24::CH_CONFIG6_7
@ CH_CONFIG6_7
Definition AFE_NXP.h:521
NAFE13388_Base::Register24::GAIN_COEFF11
@ GAIN_COEFF11
Definition AFE_NXP.h:541
NAFE13388_Base::Register24::CH_DATA8
@ CH_DATA8
Definition AFE_NXP.h:491
NAFE13388_Base::Register24::CH_CONFIG5_9
@ CH_CONFIG5_9
Definition AFE_NXP.h:507
NAFE13388_Base::Register24::GAIN_COEFF1
@ GAIN_COEFF1
Definition AFE_NXP.h:531
NAFE13388_Base::Register24::OFFSET_COEFF7
@ OFFSET_COEFF7
Definition AFE_NXP.h:553
NAFE13388_Base::Register24::CH_DATA6
@ CH_DATA6
Definition AFE_NXP.h:489
NAFE13388_Base::Register24::GAIN_COEFF2
@ GAIN_COEFF2
Definition AFE_NXP.h:532
NAFE13388_Base::Register24::GAIN_COEFF10
@ GAIN_COEFF10
Definition AFE_NXP.h:540
NAFE13388_Base::Register24::GAIN_COEFF3
@ GAIN_COEFF3
Definition AFE_NXP.h:533
NAFE13388_Base::Register24::GAIN_COEFF8
@ GAIN_COEFF8
Definition AFE_NXP.h:538
NAFE13388_Base::Register24::OPT_COEF7
@ OPT_COEF7
Definition AFE_NXP.h:569
NAFE13388_Base::Register24::CH_DATA10
@ CH_DATA10
Definition AFE_NXP.h:493
NAFE13388_Base::Register24::CH_DATA7
@ CH_DATA7
Definition AFE_NXP.h:490
NAFE13388_Base::Register24::OFFSET_COEFF9
@ OFFSET_COEFF9
Definition AFE_NXP.h:555
NAFE13388_Base::Register24::CH_CONFIG6_2
@ CH_CONFIG6_2
Definition AFE_NXP.h:516
NAFE13388_Base::Register24::OPT_COEF9
@ OPT_COEF9
Definition AFE_NXP.h:571
NAFE13388_Base::Register24::CH_DATA11
@ CH_DATA11
Definition AFE_NXP.h:494
NAFE13388_Base::Register24::CH_CONFIG5_11
@ CH_CONFIG5_11
Definition AFE_NXP.h:509
NAFE13388_Base::Register24::GAIN_COEFF6
@ GAIN_COEFF6
Definition AFE_NXP.h:536
NAFE13388_Base::Register24::CH_CONFIG6_12
@ CH_CONFIG6_12
Definition AFE_NXP.h:526
NAFE13388_Base::Register24::OFFSET_COEFF6
@ OFFSET_COEFF6
Definition AFE_NXP.h:552
NAFE13388_Base::Register24::GAIN_COEFF9
@ GAIN_COEFF9
Definition AFE_NXP.h:539
NAFE13388_Base::Register24::CH_CONFIG5_3
@ CH_CONFIG5_3
Definition AFE_NXP.h:501
NAFE13388_Base::Register24::CH_CONFIG5_8
@ CH_CONFIG5_8
Definition AFE_NXP.h:506
NAFE13388_Base::Register24::CH_DATA14
@ CH_DATA14
Definition AFE_NXP.h:496
NAFE13388_Base::Register24::SERIAL0
@ SERIAL0
Definition AFE_NXP.h:577
NAFE13388_Base::Register24::CH_DATA1
@ CH_DATA1
Definition AFE_NXP.h:484
NAFE13388_Base::Register24::OPT_COEF13
@ OPT_COEF13
Definition AFE_NXP.h:575
NAFE13388_Base::Register24::CH_CONFIG6_9
@ CH_CONFIG6_9
Definition AFE_NXP.h:523
NAFE13388_Base::Register24::OFFSET_COEFF1
@ OFFSET_COEFF1
Definition AFE_NXP.h:547
NAFE13388_Base::Register24::CH_CONFIG6_4
@ CH_CONFIG6_4
Definition AFE_NXP.h:518
NAFE13388_Base::Register24::OFFSET_COEFF13
@ OFFSET_COEFF13
Definition AFE_NXP.h:559
NAFE13388_Base::Register24::OPT_COEF0
@ OPT_COEF0
Definition AFE_NXP.h:562
NAFE13388_Base::Register24::CH_CONFIG5_0
@ CH_CONFIG5_0
Definition AFE_NXP.h:498
NAFE13388_Base::Register24::OPT_COEF11
@ OPT_COEF11
Definition AFE_NXP.h:573
NAFE13388_Base::Register24::GAIN_COEFF7
@ GAIN_COEFF7
Definition AFE_NXP.h:537
NAFE13388_Base::Register24::CH_CONFIG6_15
@ CH_CONFIG6_15
Definition AFE_NXP.h:529
NAFE13388_Base::Register24::OFFSET_COEFF12
@ OFFSET_COEFF12
Definition AFE_NXP.h:558
NAFE13388_Base::Register24::OFFSET_COEFF14
@ OFFSET_COEFF14
Definition AFE_NXP.h:560
NAFE13388_Base::Register24::CH_CONFIG6_0
@ CH_CONFIG6_0
Definition AFE_NXP.h:514
NAFE13388_Base::Register24::OPT_COEF1
@ OPT_COEF1
Definition AFE_NXP.h:563
NAFE13388_Base::Register24::OPT_COEF10
@ OPT_COEF10
Definition AFE_NXP.h:572
NAFE13388_Base::Register24::CH_CONFIG5_14
@ CH_CONFIG5_14
Definition AFE_NXP.h:512
NAFE13388_Base::Register24::OPT_COEF3
@ OPT_COEF3
Definition AFE_NXP.h:565
NAFE13388_Base::Register24::SERIAL1
@ SERIAL1
Definition AFE_NXP.h:576
NAFE13388_Base::Register24::CH_DATA0
@ CH_DATA0
Definition AFE_NXP.h:483
NAFE13388_Base::Register24::CH_CONFIG6_1
@ CH_CONFIG6_1
Definition AFE_NXP.h:515
NAFE13388_Base::Register24::CH_CONFIG5_12
@ CH_CONFIG5_12
Definition AFE_NXP.h:510
NAFE13388_Base::Register24::OFFSET_COEFF2
@ OFFSET_COEFF2
Definition AFE_NXP.h:548
NAFE13388_Base::Register24::GAIN_COEFF13
@ GAIN_COEFF13
Definition AFE_NXP.h:543
NAFE13388_Base::Register24::OPT_COEF8
@ OPT_COEF8
Definition AFE_NXP.h:570
NAFE13388_Base::Register24::CH_CONFIG5_13
@ CH_CONFIG5_13
Definition AFE_NXP.h:511
NAFE13388_Base::Register24::CH_CONFIG6_6
@ CH_CONFIG6_6
Definition AFE_NXP.h:520
NAFE13388_Base::Command
Command
Definition AFE_NXP.h:580
NAFE13388_Base::CMD_MM
@ CMD_MM
Definition AFE_NXP.h:607
NAFE13388_Base::CMD_CLEAR_DATA
@ CMD_CLEAR_DATA
Definition AFE_NXP.h:600
NAFE13388_Base::CMD_BURST_DATA
@ CMD_BURST_DATA
Definition AFE_NXP.h:610
NAFE13388_Base::CMD_RELOAD
@ CMD_RELOAD
Definition AFE_NXP.h:603
NAFE13388_Base::CMD_CH3
@ CMD_CH3
Definition AFE_NXP.h:584
NAFE13388_Base::CMD_MC
@ CMD_MC
Definition AFE_NXP.h:608
NAFE13388_Base::CMD_CH11
@ CMD_CH11
Definition AFE_NXP.h:592
NAFE13388_Base::CMD_CALC_CRC_COEF
@ CMD_CALC_CRC_COEF
Definition AFE_NXP.h:612
NAFE13388_Base::CMD_CH2
@ CMD_CH2
Definition AFE_NXP.h:583
NAFE13388_Base::CMD_MS
@ CMD_MS
Definition AFE_NXP.h:609
NAFE13388_Base::CMD_SS
@ CMD_SS
Definition AFE_NXP.h:605
NAFE13388_Base::CMD_CH8
@ CMD_CH8
Definition AFE_NXP.h:589
NAFE13388_Base::CMD_CALC_CRC_CONFG
@ CMD_CALC_CRC_CONFG
Definition AFE_NXP.h:611
NAFE13388_Base::CMD_CALC_CRC_FAC
@ CMD_CALC_CRC_FAC
Definition AFE_NXP.h:613
NAFE13388_Base::CMD_CLEAR_ALARM
@ CMD_CLEAR_ALARM
Definition AFE_NXP.h:599
NAFE13388_Base::CMD_RESET
@ CMD_RESET
Definition AFE_NXP.h:601
NAFE13388_Base::CMD_SC
@ CMD_SC
Definition AFE_NXP.h:606
NAFE13388_Base::CMD_CH5
@ CMD_CH5
Definition AFE_NXP.h:586
NAFE13388_Base::CMD_CH9
@ CMD_CH9
Definition AFE_NXP.h:590
NAFE13388_Base::CMD_CH14
@ CMD_CH14
Definition AFE_NXP.h:595
NAFE13388_Base::CMD_CH10
@ CMD_CH10
Definition AFE_NXP.h:591
NAFE13388_Base::CMD_CLEAR_REG
@ CMD_CLEAR_REG
Definition AFE_NXP.h:602
NAFE13388_Base::CMD_CH0
@ CMD_CH0
Definition AFE_NXP.h:581
NAFE13388_Base::CMD_CH13
@ CMD_CH13
Definition AFE_NXP.h:594
NAFE13388_Base::TBD
@ TBD
Definition AFE_NXP.h:604
NAFE13388_Base::CMD_CH1
@ CMD_CH1
Definition AFE_NXP.h:582
NAFE13388_Base::CMD_CH15
@ CMD_CH15
Definition AFE_NXP.h:596
NAFE13388_Base::CMD_CH7
@ CMD_CH7
Definition AFE_NXP.h:588
NAFE13388_Base::CMD_CH6
@ CMD_CH6
Definition AFE_NXP.h:587
NAFE13388_Base::CMD_ABORT
@ CMD_ABORT
Definition AFE_NXP.h:597
NAFE13388_Base::CMD_CH4
@ CMD_CH4
Definition AFE_NXP.h:585
NAFE13388_Base::CMD_CH12
@ CMD_CH12
Definition AFE_NXP.h:593
NAFE13388_Base::CMD_END
@ CMD_END
Definition AFE_NXP.h:598
NAFE13388_Base::DRDY_by_sequencer_done
virtual void DRDY_by_sequencer_done(bool flag=true)
Definition AFE_NXP.cpp:398
NAFE13388_Base::serial_number
uint64_t serial_number(void)
Definition AFE_NXP.cpp:458
NAFE13388_Base::channel_info_update
void channel_info_update(uint16_t value)
Definition AFE_NXP.cpp:279
NAFE13388_Base::~NAFE13388_Base
virtual ~NAFE13388_Base()
Definition AFE_NXP.cpp:215
NAFE13388_Base::enable_logical_channel
void enable_logical_channel(int ch)
Definition AFE_NXP.cpp:360
NAFE13388_Base::reset
virtual void reset(bool hardware_reset=false)
Definition AFE_NXP.cpp:227
NAFE13388_Base::part_number
uint32_t part_number(void)
Definition AFE_NXP.cpp:448
NAFE13388_Base::open_logical_channel
virtual void open_logical_channel(int ch, uint16_t cc0, uint16_t cc1, uint16_t cc2, uint16_t cc3)
Definition AFE_NXP.cpp:354
NAFE13388_Base::NAFE13388_Base
NAFE13388_Base(bool spi_addr, bool highspeed_variant, int nINT, int DRDY, int SYN, int nRESET, int DRDY_input, int SYNCDAC)
Definition AFE_NXP.cpp:205
NAFE13388_Base::ch_setting_t
uint16_t[4] ch_setting_t
Definition AFE_NXP.h:291
NAFE13388_Base::Register16
Register16
Definition AFE_NXP.h:452
NAFE13388_Base::Register16::CH_CONFIG1
@ CH_CONFIG1
Definition AFE_NXP.h:454
NAFE13388_Base::Register16::CRC_TRIM_INT
@ CRC_TRIM_INT
Definition AFE_NXP.h:479
NAFE13388_Base::Register16::GLOBAL_ALARM_INTERRUPT
@ GLOBAL_ALARM_INTERRUPT
Definition AFE_NXP.h:471
NAFE13388_Base::Register16::CH_CONFIG3
@ CH_CONFIG3
Definition AFE_NXP.h:456
NAFE13388_Base::Register16::CH_CONFIG2
@ CH_CONFIG2
Definition AFE_NXP.h:455
NAFE13388_Base::Register16::CRC_TRIM_REGS
@ CRC_TRIM_REGS
Definition AFE_NXP.h:460
NAFE13388_Base::Register16::GPIO_CONFIG0
@ GPIO_CONFIG0
Definition AFE_NXP.h:462
NAFE13388_Base::Register16::PN1
@ PN1
Definition AFE_NXP.h:477
NAFE13388_Base::Register16::CRC_COEF_REGS
@ CRC_COEF_REGS
Definition AFE_NXP.h:459
NAFE13388_Base::Register16::GPI_EDGE_POS
@ GPI_EDGE_POS
Definition AFE_NXP.h:465
NAFE13388_Base::Register16::CH_STATUS0
@ CH_STATUS0
Definition AFE_NXP.h:473
NAFE13388_Base::Register16::CH_CONFIG4
@ CH_CONFIG4
Definition AFE_NXP.h:457
NAFE13388_Base::Register16::SYS_STATUS0
@ SYS_STATUS0
Definition AFE_NXP.h:469
NAFE13388_Base::Register16::THRS_TEMP
@ THRS_TEMP
Definition AFE_NXP.h:475
NAFE13388_Base::Register16::PN0
@ PN0
Definition AFE_NXP.h:478
NAFE13388_Base::Register16::GPIO_CONFIG2
@ GPIO_CONFIG2
Definition AFE_NXP.h:464
NAFE13388_Base::Register16::GPI_DATA
@ GPI_DATA
Definition AFE_NXP.h:461
NAFE13388_Base::Register16::GLOBAL_ALARM_ENABLE
@ GLOBAL_ALARM_ENABLE
Definition AFE_NXP.h:470
NAFE13388_Base::Register16::DIE_TEMP
@ DIE_TEMP
Definition AFE_NXP.h:472
NAFE13388_Base::Register16::CH_CONFIG0
@ CH_CONFIG0
Definition AFE_NXP.h:453
NAFE13388_Base::Register16::GPIO_CONFIG1
@ GPIO_CONFIG1
Definition AFE_NXP.h:463
NAFE13388_Base::Register16::CRC_CONF_REGS
@ CRC_CONF_REGS
Definition AFE_NXP.h:458
NAFE13388_Base::Register16::GPO_DATA
@ GPO_DATA
Definition AFE_NXP.h:467
NAFE13388_Base::Register16::GPI_EDGE_NEG
@ GPI_EDGE_NEG
Definition AFE_NXP.h:466
NAFE13388_Base::Register16::PN2
@ PN2
Definition AFE_NXP.h:476
NAFE13388_Base::Register16::CH_STATUS1
@ CH_STATUS1
Definition AFE_NXP.h:474
NAFE13388_Base::Register16::SYS_CONFIG0
@ SYS_CONFIG0
Definition AFE_NXP.h:468
NAFE13388_Base::temperature
float temperature(void)
Definition AFE_NXP.cpp:467
NAFE13388_Base::CalibrationError
CalibrationError
Definition AFE_NXP.h:703
NAFE13388_Base::NoError
@ NoError
Definition AFE_NXP.h:704
NAFE13388_Base::OffsetError
@ OffsetError
Definition AFE_NXP.h:706
NAFE13388_Base::GainError
@ GainError
Definition AFE_NXP.h:705
NAFE13388_UIM::NAFE13388_UIM
NAFE13388_UIM(bool spi_addr=0, bool highspeed_variant=false, int nINT=3, int DRDY=4, int SYN=6, int nRESET=7, int DRDY_input=2, int SYNCDAC=14)
Definition AFE_NXP.cpp:626
NAFE13388_UIM::blink_leds
void blink_leds(void)
Definition AFE_NXP.cpp:635
NAFE13388_UIM::~NAFE13388_UIM
virtual ~NAFE13388_UIM()
Definition AFE_NXP.cpp:631
NAFE13388::~NAFE13388
virtual ~NAFE13388()
Definition AFE_NXP.cpp:620
NAFE13388::NAFE13388
NAFE13388(bool spi_addr=0, bool highspeed_variant=false, int nINT=2, int DRDY=4, int SYN=5, int nRESET=6, int DRDY_input=15, int SYNCDAC=14)
Definition AFE_NXP.cpp:615
SPI_for_AFE
Definition SPI_for_AFE.h:23
NAFE13388_Base::_ref_points
Definition AFE_NXP.h:298
NAFE13388_Base::_ref_points::coeff_index
int coeff_index
Definition AFE_NXP.h:299
NAFE13388_Base::_ref_points::high
reference_point high
Definition AFE_NXP.h:300
NAFE13388_Base::_ref_points::low
reference_point low
Definition AFE_NXP.h:301
NAFE13388_Base::_ref_points::cal_index
int cal_index
Definition AFE_NXP.h:302
NAFE13388_Base::_reference_point
Definition AFE_NXP.h:293
NAFE13388_Base::_reference_point::voltage
double voltage
Definition AFE_NXP.h:294
NAFE13388_Base::_reference_point::data
int32_t data
Definition AFE_NXP.h:295