diff options
Diffstat (limited to 'Core/Inc/cs4272.h')
| -rwxr-xr-x | Core/Inc/cs4272.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Core/Inc/cs4272.h b/Core/Inc/cs4272.h index 30e493a..423b7c0 100755 --- a/Core/Inc/cs4272.h +++ b/Core/Inc/cs4272.h @@ -8,7 +8,9 @@ #ifndef INC_CS4272_H_
#define INC_CS4272_H_
-// cs4272k-czzr 7. REGISTER QUICK REFERENCE
+#include <stdint.h>
+
+/* cs4272k-czzr 7. REGISTER QUICK REFERENCE */
#define MODE_CONTROL_1 0x01
#define DAC_CONTROL 0x02
#define DAC_VOLUME_AND_MIXING_CONTROL 0x03
@@ -20,16 +22,20 @@ #define CS4272_CHIP_ID 0x0
-// set by ncs/ad0 pin
+/* set by ad0 ncs pin */
#define CS4272_I2C_ADDR (0b0010000 << 1)
+#define SAMPLE_RATE 48000
#define BUFFER_SIZE 512
extern volatile int32_t rx_buffer[BUFFER_SIZE];
extern volatile int32_t tx_buffer[BUFFER_SIZE];
+extern volatile float samples[BUFFER_SIZE];
extern const uint8_t CS4272_CONFIG[7];
-uint8_t CS4272_Init();
+uint8_t CS4272_Init(void);
+
+#define INT24_MAX 0x7FFFFF
#endif /* INC_CS4272_H_ */
|
