github.com/brain-duino/AD7173-Arduino v0.5.0
Source embeds a long hexadecimal byte arrayGitHub source path has uppercase repo
SHA-256bbf07db41fbfdbdbad168e564a6ca5fc6824f8c3e3b161efaa1be47bb9692b8e
MaleculeH(Db₂)Md₂(BkPa)
Evidence
2:6… ============================
3library to control the AD7173 ADC
4=================================
5*/
6#include "AD7173.h"
7
8AD7173Class AD7173;
⋯4 lines
20:20… t 64 high bits returns ADC to default state */
21 for (int i = 0; i < 8; i++) {
22 SPI.transfer(0xFF);
23 }
⋯5 lines
33:30… p */
34 delay(10);
35}
36
37void AD7173Class::print_byte(byte value) {
38 char format[10];
39 sprintf(format, "0x%.2X ", value);
40 Serial.print(format);
41}
42
43int AD7173Class::set_register(adc7173_register_t reg, byte *v …
54:36… ");
55 for (int i = 0; i < value_len; i++) {
56 this->print_byte(value[i]);
57 }
58 Serial.print("] to reg [ ");
59 this->print_byte(reg);
60 Serial.pri …
43:9… _AD7173_H_INCLUDED
44
45#if ARDUINO >= 100
46#include "Arduino.h"
47#else
48#include "WProgram.h"
49#endif
50
51#include "SPI.h"
52
53/* enable or disable debug */
54#define DEBUG_ENABLED 0
55
56/* delay for reading and writing registers */
57#define READ_WRITE_DELAY 1
58
59/* registers */
60typedef enum {
61 /* other ADC registers */
62 COMMS_REG = 0x00,
63 STATUS_REG = 0x00,
64 ADCMODE_REG = 0x01,
65 IFMODE_REG = 0x02,
66 REGCHECK_REG = 0x03,
67 DATA_REG = 0x04,
68 GPIOCON_REG = 0x06,
69 ID_REG = 0x07,
70 /* ADC channel registers */
71 CH0 = 0x10,
72 CH1 = 0x11,
73 CH2 = 0x12,
⋯8 lines
No evidence locations were recorded for this file. Raw result