Skip to content

Commit 5a5ca2e

Browse files
committed
Update SparkFun_KX13X_regs.h
1 parent 2a07ec1 commit 5a5ca2e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/SparkFun_KX13X_regs.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ typedef struct
402402
{
403403
uint8_t tfum : 1; // Z+
404404
uint8_t tfdm : 1; // Z-
405-
uint8_t tpum : 1; // Y+
405+
uint8_t tupm : 1; // Y+
406406
uint8_t tdom : 1; // Y-
407407
uint8_t trim : 1; // X+
408408
uint8_t tlem : 1; // X-
@@ -580,7 +580,7 @@ typedef struct
580580
// To change these settings make sure IC is in "stand-by" mode: PC1 bit in CNTL1.
581581
typedef struct
582582
{
583-
uint8_t offl : 3;
583+
uint8_t offi : 3;
584584
uint8_t dcrm : 1;
585585
uint8_t ffdc : 2;
586586
uint8_t ulmode : 1;
@@ -757,7 +757,7 @@ typedef struct
757757
// used to calculate RMS output.
758758
typedef struct
759759
{
760-
uint8_t oadp : 3;
760+
uint8_t oadp : 4;
761761
uint8_t rms_avc : 3;
762762
uint8_t reserved : 1;
763763
} sfe_kx13x_adp_cntl1_t;
@@ -855,15 +855,15 @@ typedef struct
855855
// Bits [7:0]
856856
typedef struct
857857
{
858-
uint8_t adp_f2_ba : 1;
858+
uint8_t adp_f2_ba : 8;
859859
} sfe_kx13x_adp_cntl12_t;
860860

861861
#define SFE_KX13X_ADP_CNTL13 0x70
862862
// Sets the ADP filter-2 coefficient (B/A)
863863
// Bits [14:8]
864864
typedef struct
865865
{
866-
uint8_t adp_f2_ba : 1;
866+
uint8_t adp_f2_ba : 7;
867867
uint8_t undefined : 1;
868868
} sfe_kx13x_adp_cntl13_t;
869869

0 commit comments

Comments
 (0)