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

Go to the source code of this file.

Classes

union  bk_reg00
 Device ID. More...
 
union  bk_reg01
 Chip ID. More...
 
union  bk_reg02
 Power Configuratio. More...
 
union  bk_reg03
 Channe. More...
 
union  bk_reg04
 Register 04h. System Configuration1 (0x1180) More...
 
union  bk_reg05
 Register 05h. System Configuration2 (0x3ddf) More...
 
union  bk_reg06
 Register 06h. System Configuration3 (0x01ef) More...
 
union  bk_reg07
 Register 07h. Test1 (0x0900) More...
 
union  bk_reg08
 Test 2. More...
 
union  bk_reg09
 Register 09h. Status1 (0x0000) More...
 
union  bk_reg0a
 Register 0Ah. Status2 (0x0000) More...
 
union  bk_reg0b
 Register 0Bh. Read Channel (0x0000) More...
 
union  bk_reg0c
 Register 0Ch. RDS1 (0x0000) More...
 
union  bk_reg0d
 Register 0Dh. RDS2 (0x0000) More...
 
union  bk_reg0e
 Register 0Eh. RDS2 (0x0000) More...
 
union  bk_reg0f
 Register 0Fh. RDS4 (0x0000) More...
 
union  bk_reg10
 Register 10h. Boot Configuration1 (0x7b11) More...
 
union  bk_reg11
 Register 11h. Boot Configuration2 (0x0080) More...
 
union  bk_reg12
 Register 12h. Boot Configuration3 (0x4000) More...
 
union  bk_reg13
 Register 13h. Boot Configuration4 (0x3e00) More...
 
union  bk_reg14
 Register 14h. Boot Configuration5 (0x0000) More...
 
union  bk_reg15
 15h. Boot Configuration6 (0x0000) More...
 
union  bk_reg16
 Register 16h. Boot Configuration7 (0x0400) More...
 
union  bk_reg17
 Register 17h. Boot Configuration8 (0x0001) More...
 
union  bk_reg18
 Register 18h. Boot Configuration9 (0x143c) More...
 
union  bk_reg19
 Register 19h. Boot Configuration10 (0x4351) More...
 
union  bk_reg1A
 Register 1Ah. Boot Configuration11 (0x0000) More...
 
union  bk_reg1B
 Register 1Bh. Analog Configuration1 (0x0000) More...
 
union  bk_reg1C
 Register 1Ch. Analog Configuration2 (0x0000) More...
 
union  bk_reg1D
 Register 1Dh. Analog Configuration2 (0x0000) More...
 
union  bk_rds_blockb
 RDS Block B data type. More...
 
union  bk_rds_date_time
 
union  word16_to_bytes
 Converts 16 bits word to two bytes. More...
 
class  BK108X
 KT0915 Class. More...
 
struct  bk_reg00.refined
 
struct  bk_reg01.refined
 
struct  bk_reg02.refined
 
struct  bk_reg03.refined
 
struct  bk_reg04.refined
 
struct  bk_reg05.refined
 
struct  bk_reg06.refined
 
struct  bk_reg07.refined
 
struct  bk_reg08.refined
 
struct  bk_reg09.refined
 
struct  bk_reg0a.refined
 
struct  bk_reg0b.refined
 
struct  bk_reg0c.refined
 
struct  bk_reg0d.refined
 
struct  bk_reg0e.refined
 
struct  bk_reg0f.refined
 
struct  bk_reg10.refined
 
struct  bk_reg11.refined
 
struct  bk_reg12.refined
 
struct  bk_reg13.refined
 
struct  bk_reg14.refined
 
struct  bk_reg15.refined
 
struct  bk_reg16.refined
 
struct  bk_reg17.refined
 
struct  bk_reg18.refined
 
struct  bk_reg19.refined
 
struct  bk_reg1A.refined
 
struct  bk_reg1B.refined
 
struct  bk_reg1C.refined
 
struct  bk_reg1D.refined
 
struct  bk_rds_blockb.group0
 
struct  bk_rds_blockb.group2
 
struct  bk_rds_blockb.refined
 
struct  bk_rds_date_time.refined
 
struct  word16_to_bytes.refined
 

Macros

#define MAX_DELAY_AFTER_OSCILLATOR   500
 
#define I2C_DEVICE_ADDR   0x80
 
#define OSCILLATOR_TYPE_CRYSTAL   1
 
#define OSCILLATOR_TYPE_REFCLK   0
 
#define RDS_STANDARD   0
 RDS Mode. More...
 
#define RDS_VERBOSE   1
 RDS Mode. More...
 
#define BK_SEEK_DOWN   0
 Seek Down Direction. More...
 
#define BK_SEEK_UP   1
 Seek Up Direction. More...
 
#define BK_SEEK_WRAP   0
 
#define BK_SEEK_STOP   1
 
#define FM_FULL   0
 64~108MHz More...
 
#define FM_BAND_JAPAN_WIDE   1
 76–108 MHz (Japan wide band) More...
 
#define FM_BAND_JAPAN   2
 76–90 MHz (Japan) More...
 
#define FM_BAND_USA_EU   3
 87–108 MHz (US / Europe, Default) More...
 
#define AM_LW   0
 153~279KHz More...
 
#define AM_MW1   1
 520~1710Khz More...
 
#define AM_SW   2
 2.3~21.85KHz More...
 
#define AM_M22   3
 522~1710 More...
 
#define MODE_FM   0
 
#define MODE_AM   1
 
#define REG00   0x00
 
#define REG01   0x01
 
#define REG02   0x02
 
#define REG03   0x03
 
#define REG04   0x04
 
#define REG05   0x05
 
#define REG06   0x06
 
#define REG07   0x07
 
#define REG08   0x08
 
#define REG09   0x09
 
#define REG0A   0x0A
 
#define REG0B   0x0B
 
#define REG0C   0x0C
 
#define REG0D   0x0D
 
#define REG0E   0x0E
 
#define REG0F   0x0F
 
#define REG10   0x10
 
#define REG11   0x11
 
#define REG12   0x12
 
#define REG13   0x13
 
#define REG14   0x14
 
#define REG15   0x15
 
#define REG16   0x16
 
#define REG17   0x17
 
#define REG18   0x18
 
#define REG19   0x19
 
#define REG1A   0x1A
 
#define REG1B   0x1B
 
#define REG1C   0x1C
 
#define REG1D   0x1D
 
#define REG1E   0x1E
 
#define REG1F   0x1F
 

Typedefs

typedef uint16_t bk_reg1E
 
typedef uint16_t bk_reg1F
 

Macro Definition Documentation

◆ MAX_DELAY_AFTER_OSCILLATOR

#define MAX_DELAY_AFTER_OSCILLATOR   500

Definition at line 21 of file BK108X.h.

◆ I2C_DEVICE_ADDR

#define I2C_DEVICE_ADDR   0x80

Definition at line 23 of file BK108X.h.

◆ OSCILLATOR_TYPE_CRYSTAL

#define OSCILLATOR_TYPE_CRYSTAL   1

Definition at line 27 of file BK108X.h.

◆ OSCILLATOR_TYPE_REFCLK

#define OSCILLATOR_TYPE_REFCLK   0

Definition at line 28 of file BK108X.h.

◆ RDS_STANDARD

#define RDS_STANDARD   0

RDS Mode.

Definition at line 30 of file BK108X.h.

◆ RDS_VERBOSE

#define RDS_VERBOSE   1

RDS Mode.

Definition at line 31 of file BK108X.h.

◆ BK_SEEK_DOWN

#define BK_SEEK_DOWN   0

Seek Down Direction.

Definition at line 32 of file BK108X.h.

◆ BK_SEEK_UP

#define BK_SEEK_UP   1

Seek Up Direction.

Definition at line 33 of file BK108X.h.

◆ BK_SEEK_WRAP

#define BK_SEEK_WRAP   0

Definition at line 34 of file BK108X.h.

◆ BK_SEEK_STOP

#define BK_SEEK_STOP   1

Definition at line 35 of file BK108X.h.

◆ FM_FULL

#define FM_FULL   0

64~108MHz

Definition at line 37 of file BK108X.h.

◆ FM_BAND_JAPAN_WIDE

#define FM_BAND_JAPAN_WIDE   1

76–108 MHz (Japan wide band)

Definition at line 38 of file BK108X.h.

◆ FM_BAND_JAPAN

#define FM_BAND_JAPAN   2

76–90 MHz (Japan)

Definition at line 39 of file BK108X.h.

◆ FM_BAND_USA_EU

#define FM_BAND_USA_EU   3

87–108 MHz (US / Europe, Default)

Definition at line 40 of file BK108X.h.

◆ AM_LW

#define AM_LW   0

153~279KHz

Definition at line 42 of file BK108X.h.

◆ AM_MW1

#define AM_MW1   1

520~1710Khz

Definition at line 43 of file BK108X.h.

◆ AM_SW

#define AM_SW   2

2.3~21.85KHz

Definition at line 44 of file BK108X.h.

◆ AM_M22

#define AM_M22   3

522~1710

Definition at line 45 of file BK108X.h.

◆ MODE_FM

#define MODE_FM   0

Definition at line 47 of file BK108X.h.

◆ MODE_AM

#define MODE_AM   1

Definition at line 48 of file BK108X.h.

◆ REG00

#define REG00   0x00

Definition at line 50 of file BK108X.h.

◆ REG01

#define REG01   0x01

Definition at line 51 of file BK108X.h.

◆ REG02

#define REG02   0x02

Definition at line 52 of file BK108X.h.

◆ REG03

#define REG03   0x03

Definition at line 53 of file BK108X.h.

◆ REG04

#define REG04   0x04

Definition at line 54 of file BK108X.h.

◆ REG05

#define REG05   0x05

Definition at line 55 of file BK108X.h.

◆ REG06

#define REG06   0x06

Definition at line 56 of file BK108X.h.

◆ REG07

#define REG07   0x07

Definition at line 57 of file BK108X.h.

◆ REG08

#define REG08   0x08

Definition at line 58 of file BK108X.h.

◆ REG09

#define REG09   0x09

Definition at line 59 of file BK108X.h.

◆ REG0A

#define REG0A   0x0A

Definition at line 60 of file BK108X.h.

◆ REG0B

#define REG0B   0x0B

Definition at line 61 of file BK108X.h.

◆ REG0C

#define REG0C   0x0C

Definition at line 62 of file BK108X.h.

◆ REG0D

#define REG0D   0x0D

Definition at line 63 of file BK108X.h.

◆ REG0E

#define REG0E   0x0E

Definition at line 64 of file BK108X.h.

◆ REG0F

#define REG0F   0x0F

Definition at line 65 of file BK108X.h.

◆ REG10

#define REG10   0x10

Definition at line 66 of file BK108X.h.

◆ REG11

#define REG11   0x11

Definition at line 67 of file BK108X.h.

◆ REG12

#define REG12   0x12

Definition at line 68 of file BK108X.h.

◆ REG13

#define REG13   0x13

Definition at line 69 of file BK108X.h.

◆ REG14

#define REG14   0x14

Definition at line 70 of file BK108X.h.

◆ REG15

#define REG15   0x15

Definition at line 71 of file BK108X.h.

◆ REG16

#define REG16   0x16

Definition at line 72 of file BK108X.h.

◆ REG17

#define REG17   0x17

Definition at line 73 of file BK108X.h.

◆ REG18

#define REG18   0x18

Definition at line 74 of file BK108X.h.

◆ REG19

#define REG19   0x19

Definition at line 75 of file BK108X.h.

◆ REG1A

#define REG1A   0x1A

Definition at line 76 of file BK108X.h.

◆ REG1B

#define REG1B   0x1B

Definition at line 77 of file BK108X.h.

◆ REG1C

#define REG1C   0x1C

Definition at line 78 of file BK108X.h.

◆ REG1D

#define REG1D   0x1D

Definition at line 79 of file BK108X.h.

◆ REG1E

#define REG1E   0x1E

Definition at line 80 of file BK108X.h.

◆ REG1F

#define REG1F   0x1F

Definition at line 81 of file BK108X.h.

Typedef Documentation

◆ bk_reg1E

typedef uint16_t bk_reg1E

Definition at line 623 of file BK108X.h.

◆ bk_reg1F

typedef uint16_t bk_reg1F

Definition at line 624 of file BK108X.h.