diff options
Diffstat (limited to 'firmware/target/hosted/ypr0/ascodec-target.h')
-rw-r--r-- | firmware/target/hosted/ypr0/ascodec-target.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/firmware/target/hosted/ypr0/ascodec-target.h b/firmware/target/hosted/ypr0/ascodec-target.h index f4ecf20a1b..2274d5f073 100644 --- a/firmware/target/hosted/ypr0/ascodec-target.h +++ b/firmware/target/hosted/ypr0/ascodec-target.h | |||
@@ -29,24 +29,12 @@ | |||
29 | #include "adc.h" | 29 | #include "adc.h" |
30 | #include "ascodec.h" | 30 | #include "ascodec.h" |
31 | 31 | ||
32 | /* ioctl parameter struct */ | ||
33 | |||
34 | struct codec_req_struct { | ||
35 | /* This works for every kind of afe.ko module requests */ | ||
36 | unsigned char reg; /* Main register address */ | ||
37 | unsigned char subreg; /* Set this only if you are reading/writing a PMU register*/ | ||
38 | unsigned char value; /* To be read if reading a register; to be set if writing to a register */ | ||
39 | }; | ||
40 | |||
41 | int ascodec_init(void); | 32 | int ascodec_init(void); |
42 | void ascodec_close(void); | 33 | void ascodec_close(void); |
43 | int ascodec_write(unsigned int reg, unsigned int value); | 34 | int ascodec_write(unsigned int reg, unsigned int value); |
44 | int ascodec_read(unsigned int reg); | 35 | int ascodec_read(unsigned int reg); |
45 | void ascodec_write_pmu(unsigned int index, unsigned int subreg, unsigned int value); | 36 | void ascodec_write_pmu(unsigned int index, unsigned int subreg, unsigned int value); |
46 | int ascodec_read_pmu(unsigned int index, unsigned int subreg); | 37 | int ascodec_read_pmu(unsigned int index, unsigned int subreg); |
47 | void ascodec_set(unsigned int reg, unsigned int bits); | ||
48 | void ascodec_clear(unsigned int reg, unsigned int bits); | ||
49 | void ascodec_write_masked(unsigned int reg, unsigned int bits, unsigned int mask); | ||
50 | int ascodec_readbytes(unsigned int index, unsigned int len, unsigned char *data); | 38 | int ascodec_readbytes(unsigned int index, unsigned int len, unsigned char *data); |
51 | unsigned short adc_read(int channel); | 39 | unsigned short adc_read(int channel); |
52 | void ascodec_lock(void); | 40 | void ascodec_lock(void); |