PU2CLR KT0915 Arduino Library  1.0.1
This is an Arduino Library to control the KT0915 device
KT0915.h File Reference
#include <Arduino.h>
#include <Wire.h>

Go to the source code of this file.

Classes

union  kt09xx_chip_id
 3.10.1. CHIP ID (Address 0x01) More...
 
union  kt09xx_seek
 3.10.2. SEEK (Address 0x02) More...
 
union  kt09xx_tune
 3.10.3. TUNE (Address 0x03) More...
 
union  kt09xx_volume
 3.10.4. VOLUME (Address 0x04) More...
 
union  kt09xx_dspcfga
 3.10.5. DSPCFGA (Address 0x05) More...
 
union  kt09xx_locfga
 3.10.6. LOCFGA (Address 0x0A) More...
 
union  kt09xx_locfgc
 3.10.7. LOCFGC (Address 0x0C) More...
 
union  kt09xx_rxcfg
 3.10.8. RXCFG (Address 0x0F) More...
 
union  kt09xx_statusa
 3.10.19. STATUSA (Address 0x12) More...
 
union  kt09xx_statusb
 3.10.10. STATUSB (Address 0x13) More...
 
union  kt09xx_statusc
 3.10.11. STATUSC (Address 0x14) More...
 
union  kt09xx_amsyscfg
 3.10.12. AMSYSCFG (Address 0x16) More...
 
union  kt09xx_amchan
 3.10.13. AMCHAN (Address 0x17) More...
 
union  kt09xx_amcali
 3.10.14. AMCALI (Address 0x18) More...
 
union  kt09xx_gpiocfg
 3.10.15. GPIOCFG (Address 0x1D) More...
 
union  kt09xx_amdsp
 3.10.16. AMDSP (Address 0x22) More...
 
union  kt09xx_amdstatusa
 3.10.17. AMSTATUSA (Address 0x24) More...
 
union  kt09xx_amdstatusb
 3.10.18. AMSTATUSB (Address 0x25) More...
 
union  kt09xx_softmute
 3.10.19. SOFTMUTE (Address 0x2Eh) More...
 
union  kt09xx_userstartch
 3.10.20. USERSTARTCH (Address 0x2F) More...
 
union  kt09xx_userguard
 3.10.21. USERGUARD (Address 0x30) More...
 
union  kt09xx_userchannum
 3.10.22. USERCHANNUM (Address 0x31) More...
 
union  kt09xx_amcfg
 3.10.23. AMCFG (Address 0x33) More...
 
union  kt09xx_amcfg2
 3.10.24. AMCFG2 (Address 0x34h) More...
 
union  kt09xx_afc
 3.10.25. AFC (Address 0x3Ch) More...
 
union  word16_to_bytes
 Converts 16 bits word to two bytes. More...
 
class  KT0915
 KT0915 Class. More...
 
struct  kt09xx_seek.refinied
 
struct  kt09xx_tune.refined
 
struct  kt09xx_volume.refined
 
struct  kt09xx_dspcfga.refined
 
struct  kt09xx_locfga.refined
 
struct  kt09xx_locfgc.refined
 
struct  kt09xx_rxcfg.refined
 
struct  kt09xx_statusa.refined
 
struct  kt09xx_statusb.refined
 
struct  kt09xx_statusc.refined
 
struct  kt09xx_amsyscfg.refined
 
struct  kt09xx_amchan.refined
 
struct  kt09xx_amcali.refined
 
struct  kt09xx_gpiocfg.refined
 
struct  kt09xx_amdsp.refined
 
struct  kt09xx_amdstatusa.refined
 
struct  kt09xx_amdstatusb.refined
 
struct  kt09xx_softmute.refined
 
struct  kt09xx_userstartch.refined
 
struct  kt09xx_userguard.refined
 
struct  kt09xx_userchannum.refined
 
struct  kt09xx_amcfg.refined
 
struct  kt09xx_amcfg2.refined
 
struct  kt09xx_afc.refined
 
struct  word16_to_bytes.refined
 

Macros

#define KT0915_I2C_ADDRESS   0x35
 
#define MODE_FM   0
 
#define MODE_AM   1
 
#define OSCILLATOR_32KHZ   0
 
#define OSCILLATOR_6_5MHZ   1
 
#define OSCILLATOR_7_6MHZ   2
 
#define OSCILLATOR_12MHZ   3
 
#define OSCILLATOR_13MHZ   4
 
#define OSCILLATOR_15_2MHZ   5
 
#define OSCILLATOR_19_2MHZ   6
 
#define OSCILLATOR_24MHZ   7
 
#define OSCILLATOR_26MHZ   8
 
#define OSCILLATOR_38KHz   9
 
#define REF_CLOCK_ENABLE   1
 
#define REF_CLOCK_DISABLE   0
 
#define DIAL_MODE_ON   1
 
#define DIAL_MODE_OFF   0
 
#define REG_CHIP_ID   0x01
 
#define REG_SEEK   0x02
 
#define REG_TUNE   0x03
 
#define REG_VOLUME   0x04
 
#define REG_DSPCFGA   0x05
 
#define REG_LOCFGA   0x0A
 
#define REG_LOCFGC   0x0C
 
#define REG_RXCFG   0x0F
 
#define REG_STATUSA   0x12
 
#define REG_STATUSB   0x13
 
#define REG_STATUSC   0x14
 
#define REG_AMSYSCFG   0x16
 
#define REG_AMCHAN   0x17
 
#define REG_AMCALI   0x18
 
#define REG_GPIOCFG   0x1D
 
#define REG_AMDSP   0x22
 
#define REG_AMSTATUSA   0x24
 
#define REG_AMSTATUSB   0x25
 
#define REG_SOFTMUTE   0x2E
 
#define REG_USERSTARTCH   0x2F
 
#define REG_USERGUARD   0x30
 
#define REG_USERCHANNUM   0x31
 
#define REG_AMCFG   0x33
 
#define REG_AMCFG2   0x34
 
#define REG_AFC   0x3C
 

Macro Definition Documentation

◆ KT0915_I2C_ADDRESS

#define KT0915_I2C_ADDRESS   0x35

Definition at line 22 of file KT0915.h.

◆ MODE_FM

#define MODE_FM   0

Definition at line 24 of file KT0915.h.

◆ MODE_AM

#define MODE_AM   1

Definition at line 25 of file KT0915.h.

◆ OSCILLATOR_32KHZ

#define OSCILLATOR_32KHZ   0

Definition at line 28 of file KT0915.h.

◆ OSCILLATOR_6_5MHZ

#define OSCILLATOR_6_5MHZ   1

Definition at line 29 of file KT0915.h.

◆ OSCILLATOR_7_6MHZ

#define OSCILLATOR_7_6MHZ   2

Definition at line 30 of file KT0915.h.

◆ OSCILLATOR_12MHZ

#define OSCILLATOR_12MHZ   3

Definition at line 31 of file KT0915.h.

◆ OSCILLATOR_13MHZ

#define OSCILLATOR_13MHZ   4

Definition at line 32 of file KT0915.h.

◆ OSCILLATOR_15_2MHZ

#define OSCILLATOR_15_2MHZ   5

Definition at line 33 of file KT0915.h.

◆ OSCILLATOR_19_2MHZ

#define OSCILLATOR_19_2MHZ   6

Definition at line 34 of file KT0915.h.

◆ OSCILLATOR_24MHZ

#define OSCILLATOR_24MHZ   7

Definition at line 35 of file KT0915.h.

◆ OSCILLATOR_26MHZ

#define OSCILLATOR_26MHZ   8

Definition at line 36 of file KT0915.h.

◆ OSCILLATOR_38KHz

#define OSCILLATOR_38KHz   9

Definition at line 37 of file KT0915.h.

◆ REF_CLOCK_ENABLE

#define REF_CLOCK_ENABLE   1

Definition at line 39 of file KT0915.h.

◆ REF_CLOCK_DISABLE

#define REF_CLOCK_DISABLE   0

Definition at line 40 of file KT0915.h.

◆ DIAL_MODE_ON

#define DIAL_MODE_ON   1

Definition at line 42 of file KT0915.h.

◆ DIAL_MODE_OFF

#define DIAL_MODE_OFF   0

Definition at line 43 of file KT0915.h.

◆ REG_CHIP_ID

#define REG_CHIP_ID   0x01

Definition at line 45 of file KT0915.h.

◆ REG_SEEK

#define REG_SEEK   0x02

Definition at line 46 of file KT0915.h.

◆ REG_TUNE

#define REG_TUNE   0x03

Definition at line 47 of file KT0915.h.

◆ REG_VOLUME

#define REG_VOLUME   0x04

Definition at line 48 of file KT0915.h.

◆ REG_DSPCFGA

#define REG_DSPCFGA   0x05

Definition at line 49 of file KT0915.h.

◆ REG_LOCFGA

#define REG_LOCFGA   0x0A

Definition at line 50 of file KT0915.h.

◆ REG_LOCFGC

#define REG_LOCFGC   0x0C

Definition at line 51 of file KT0915.h.

◆ REG_RXCFG

#define REG_RXCFG   0x0F

Definition at line 52 of file KT0915.h.

◆ REG_STATUSA

#define REG_STATUSA   0x12

Definition at line 53 of file KT0915.h.

◆ REG_STATUSB

#define REG_STATUSB   0x13

Definition at line 54 of file KT0915.h.

◆ REG_STATUSC

#define REG_STATUSC   0x14

Definition at line 55 of file KT0915.h.

◆ REG_AMSYSCFG

#define REG_AMSYSCFG   0x16

Definition at line 56 of file KT0915.h.

◆ REG_AMCHAN

#define REG_AMCHAN   0x17

Definition at line 57 of file KT0915.h.

◆ REG_AMCALI

#define REG_AMCALI   0x18

Definition at line 58 of file KT0915.h.

◆ REG_GPIOCFG

#define REG_GPIOCFG   0x1D

Definition at line 59 of file KT0915.h.

◆ REG_AMDSP

#define REG_AMDSP   0x22

Definition at line 60 of file KT0915.h.

◆ REG_AMSTATUSA

#define REG_AMSTATUSA   0x24

Definition at line 61 of file KT0915.h.

◆ REG_AMSTATUSB

#define REG_AMSTATUSB   0x25

Definition at line 62 of file KT0915.h.

◆ REG_SOFTMUTE

#define REG_SOFTMUTE   0x2E

Definition at line 63 of file KT0915.h.

◆ REG_USERSTARTCH

#define REG_USERSTARTCH   0x2F

Definition at line 64 of file KT0915.h.

◆ REG_USERGUARD

#define REG_USERGUARD   0x30

Definition at line 65 of file KT0915.h.

◆ REG_USERCHANNUM

#define REG_USERCHANNUM   0x31

Definition at line 66 of file KT0915.h.

◆ REG_AMCFG

#define REG_AMCFG   0x33

Definition at line 67 of file KT0915.h.

◆ REG_AMCFG2

#define REG_AMCFG2   0x34

Definition at line 68 of file KT0915.h.

◆ REG_AFC

#define REG_AFC   0x3C

Definition at line 69 of file KT0915.h.