Library for KT0915, DSP radio IC

Files at this revision

API Documentation at this revision

Comitter:
ritarosakai
Date:
Wed Jan 10 09:58:00 2018 +0000
Parent:
2:108a1ae04859
Child:
4:d3d45a8ac7a5
Commit message:
Fixed some comments

Changed in this revision

KT0915.cpp Show annotated file Show diff for this revision Revisions of this file
KT0915.h Show annotated file Show diff for this revision Revisions of this file
--- a/KT0915.cpp	Wed Jan 10 08:49:24 2018 +0000
+++ b/KT0915.cpp	Wed Jan 10 09:58:00 2018 +0000
@@ -16,7 +16,7 @@
     write_reg(0x0C, 0b00000000, 0b00101100);//FM wide freq:enable
     write_reg(0x0F, 0b10001000, 0b00000000);//Stanby:disable, volume:0
     read_reg(0x16,&data1,&data2);
-    write_reg(0x16,data1&0b000111111, 0b11000010);
+    write_reg(0x16,data1&0b000111111, 0b11000010);//mode:FM, use internal defined band, audio gain:0dB, AM AFC:enable
     write_reg(0x22, 0b10100010, 0b11101100);//AM AGC fast win:fastest, AM AGC short win:slowest
     //AM bandwidth:6KHz, AM gain:12dB, Left Inverse Control:enable
     read_reg(0x23, &data1, &data2);
--- a/KT0915.h	Wed Jan 10 08:49:24 2018 +0000
+++ b/KT0915.h	Wed Jan 10 09:58:00 2018 +0000
@@ -16,7 +16,7 @@
         * @param scl I2C-bus SCL pin
         */
     KT0915(PinName sda,PinName scl);
-    /**Initize KT0915
+    /**InitializeKT0915
     *
     *Set paramaters below
     *
@@ -32,6 +32,8 @@
     *
     *0x0F:0b1000100000000000 Stanby:disable, volume:0
     *
+    *0x16:0b0000000011000010 Mode:FM, use internal defined band, Audio gain:0dB, AM AFC:enable
+    *
     *0x22:0b1010001011101100 AM AGC fast win:fastest, AM AGC short win:slowest
     *
     *AM bandwidth:6KHz, AM gain:12dB, Left Inverse Control:enable