responds to RATS correctly

This commit is contained in:
Conor Patrick
2019-01-12 20:20:47 -05:00
parent 62cd7cc728
commit 302ce75ce6
5 changed files with 140 additions and 26 deletions

View File

@ -30,7 +30,13 @@ typedef union
uint8_t version_maj; // 0x1e
uint8_t version_min; // 0x1f
} regs;
} AMS_DEVICE;
} __attribute__((packed)) AMS_DEVICE;
typedef struct
{
uint8_t start;
uint8_t parameter;
} __attribute__((packed)) RATS_REQUEST;
#define AMS_REG_IO_CONF 0x00
#define AMS_REG_IC_CONF0 0x01