Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
si4713-i2c.h File Reference
#include <media/v4l2-subdev.h>
#include <media/si4713.h>

Go to the source code of this file.

Data Structures

struct  rds_info
 
struct  limiter_info
 
struct  pilot_info
 
struct  acomp_info
 
struct  si4713_device
 

Macros

#define SI4713_PRODUCT_NUMBER   0x0D
 
#define DEFAULT_TIMEOUT   500
 
#define TIMEOUT_SET_PROPERTY   20
 
#define TIMEOUT_TX_TUNE_POWER   30000
 
#define TIMEOUT_TX_TUNE   110000
 
#define TIMEOUT_POWER_UP   200000
 
#define SI4713_PWUP_CTSIEN   (1<<7)
 
#define SI4713_PWUP_GPO2OEN   (1<<6)
 
#define SI4713_PWUP_PATCH   (1<<5)
 
#define SI4713_PWUP_XOSCEN   (1<<4)
 
#define SI4713_PWUP_FUNC_TX   0x02
 
#define SI4713_PWUP_FUNC_PATCH   0x0F
 
#define SI4713_PWUP_OPMOD_ANALOG   0x50
 
#define SI4713_PWUP_OPMOD_DIGITAL   0x0F
 
#define SI4713_PWUP_NARGS   2
 
#define SI4713_PWUP_NRESP   1
 
#define SI4713_CMD_POWER_UP   0x01
 
#define SI4713_GETREV_NRESP   9
 
#define SI4713_CMD_GET_REV   0x10
 
#define SI4713_PWDN_NRESP   1
 
#define SI4713_CMD_POWER_DOWN   0x11
 
#define SI4713_SET_PROP_NARGS   5
 
#define SI4713_SET_PROP_NRESP   1
 
#define SI4713_CMD_SET_PROPERTY   0x12
 
#define SI4713_GET_PROP_NARGS   3
 
#define SI4713_GET_PROP_NRESP   4
 
#define SI4713_CMD_GET_PROPERTY   0x13
 
#define SI4713_GET_STATUS_NRESP   1
 
#define SI4713_CMD_GET_INT_STATUS   0x14
 
#define SI4713_CMD_PATCH_ARGS   0x15
 
#define SI4713_CMD_PATCH_DATA   0x16
 
#define SI4713_MAX_FREQ   10800
 
#define SI4713_MIN_FREQ   7600
 
#define SI4713_TXFREQ_NARGS   3
 
#define SI4713_TXFREQ_NRESP   1
 
#define SI4713_CMD_TX_TUNE_FREQ   0x30
 
#define SI4713_MAX_POWER   120
 
#define SI4713_MIN_POWER   88
 
#define SI4713_MAX_ANTCAP   191
 
#define SI4713_MIN_ANTCAP   0
 
#define SI4713_TXPWR_NARGS   4
 
#define SI4713_TXPWR_NRESP   1
 
#define SI4713_CMD_TX_TUNE_POWER   0x31
 
#define SI4713_TXMEA_NARGS   4
 
#define SI4713_TXMEA_NRESP   1
 
#define SI4713_CMD_TX_TUNE_MEASURE   0x32
 
#define SI4713_INTACK_MASK   0x01
 
#define SI4713_TXSTATUS_NARGS   1
 
#define SI4713_TXSTATUS_NRESP   8
 
#define SI4713_CMD_TX_TUNE_STATUS   0x33
 
#define SI4713_OVERMOD_BIT   (1 << 2)
 
#define SI4713_IALH_BIT   (1 << 1)
 
#define SI4713_IALL_BIT   (1 << 0)
 
#define SI4713_ASQSTATUS_NARGS   1
 
#define SI4713_ASQSTATUS_NRESP   5
 
#define SI4713_CMD_TX_ASQ_STATUS   0x34
 
#define SI4713_RDSBUFF_MODE_MASK   0x87
 
#define SI4713_RDSBUFF_NARGS   7
 
#define SI4713_RDSBUFF_NRESP   6
 
#define SI4713_CMD_TX_RDS_BUFF   0x35
 
#define SI4713_RDSPS_PSID_MASK   0x1F
 
#define SI4713_RDSPS_NARGS   5
 
#define SI4713_RDSPS_NRESP   1
 
#define SI4713_CMD_TX_RDS_PS   0x36
 
#define SI4713_CMD_GPO_CTL   0x80
 
#define SI4713_CMD_GPO_SET   0x81
 
#define SI4713_CTS   (1<<7)
 
#define SI4713_ERR   (1<<6)
 
#define SI4713_RDS_INT   (1<<2)
 
#define SI4713_ASQ_INT   (1<<1)
 
#define SI4713_STC_INT   (1<<0)
 
#define SI4713_GPO_IEN   0x0001
 
#define SI4713_DIG_INPUT_FORMAT   0x0101
 
#define SI4713_DIG_INPUT_SAMPLE_RATE   0x0103
 
#define SI4713_REFCLK_FREQ   0x0201
 
#define SI4713_REFCLK_PRESCALE   0x0202
 
#define SI4713_TX_COMPONENT_ENABLE   0x2100
 
#define SI4713_TX_AUDIO_DEVIATION   0x2101
 
#define SI4713_TX_PILOT_DEVIATION   0x2102
 
#define SI4713_TX_RDS_DEVIATION   0x2103
 
#define SI4713_TX_LINE_INPUT_LEVEL   0x2104
 
#define SI4713_TX_LINE_INPUT_MUTE   0x2105
 
#define SI4713_TX_PREEMPHASIS   0x2106
 
#define SI4713_TX_PILOT_FREQUENCY   0x2107
 
#define SI4713_TX_ACOMP_ENABLE   0x2200
 
#define SI4713_TX_ACOMP_THRESHOLD   0x2201
 
#define SI4713_TX_ACOMP_ATTACK_TIME   0x2202
 
#define SI4713_TX_ACOMP_RELEASE_TIME   0x2203
 
#define SI4713_TX_ACOMP_GAIN   0x2204
 
#define SI4713_TX_LIMITER_RELEASE_TIME   0x2205
 
#define SI4713_TX_ASQ_INTERRUPT_SOURCE   0x2300
 
#define SI4713_TX_ASQ_LEVEL_LOW   0x2301
 
#define SI4713_TX_ASQ_DURATION_LOW   0x2302
 
#define SI4713_TX_ASQ_LEVEL_HIGH   0x2303
 
#define SI4713_TX_ASQ_DURATION_HIGH   0x2304
 
#define SI4713_TX_RDS_INTERRUPT_SOURCE   0x2C00
 
#define SI4713_TX_RDS_PI   0x2C01
 
#define SI4713_TX_RDS_PS_MIX   0x2C02
 
#define SI4713_TX_RDS_PS_MISC   0x2C03
 
#define SI4713_TX_RDS_PS_REPEAT_COUNT   0x2C04
 
#define SI4713_TX_RDS_PS_MESSAGE_COUNT   0x2C05
 
#define SI4713_TX_RDS_PS_AF   0x2C06
 
#define SI4713_TX_RDS_FIFO_SIZE   0x2C07
 
#define PREEMPHASIS_USA   75
 
#define PREEMPHASIS_EU   50
 
#define PREEMPHASIS_DISABLED   0
 
#define FMPE_USA   0x00
 
#define FMPE_EU   0x01
 
#define FMPE_DISABLED   0x02
 
#define POWER_UP   0x01
 
#define POWER_DOWN   0x00
 
#define MAX_RDS_PTY   31
 
#define MAX_RDS_DEVIATION   90000
 
#define MAX_RDS_PS_NAME   96
 
#define MAX_RDS_RADIO_TEXT   384
 
#define MAX_LIMITER_RELEASE_TIME   102390
 
#define MAX_LIMITER_DEVIATION   90000
 
#define MAX_PILOT_DEVIATION   90000
 
#define MAX_PILOT_FREQUENCY   19000
 
#define MAX_ACOMP_RELEASE_TIME   1000000
 
#define MAX_ACOMP_ATTACK_TIME   5000
 
#define MAX_ACOMP_THRESHOLD   0
 
#define MIN_ACOMP_THRESHOLD   (-40)
 
#define MAX_ACOMP_GAIN   20
 
#define SI4713_NUM_SUPPLIES   2
 

Macro Definition Documentation

#define DEFAULT_TIMEOUT   500

Definition at line 24 of file si4713-i2c.h.

#define FMPE_DISABLED   0x02

Definition at line 158 of file si4713-i2c.h.

#define FMPE_EU   0x01

Definition at line 157 of file si4713-i2c.h.

#define FMPE_USA   0x00

Definition at line 156 of file si4713-i2c.h.

#define MAX_ACOMP_ATTACK_TIME   5000

Definition at line 204 of file si4713-i2c.h.

#define MAX_ACOMP_GAIN   20

Definition at line 209 of file si4713-i2c.h.

#define MAX_ACOMP_RELEASE_TIME   1000000

Definition at line 202 of file si4713-i2c.h.

#define MAX_ACOMP_THRESHOLD   0

Definition at line 206 of file si4713-i2c.h.

#define MAX_LIMITER_DEVIATION   90000

Definition at line 188 of file si4713-i2c.h.

#define MAX_LIMITER_RELEASE_TIME   102390

Definition at line 186 of file si4713-i2c.h.

#define MAX_PILOT_DEVIATION   90000

Definition at line 194 of file si4713-i2c.h.

#define MAX_PILOT_FREQUENCY   19000

Definition at line 196 of file si4713-i2c.h.

#define MAX_RDS_DEVIATION   90000

Definition at line 167 of file si4713-i2c.h.

#define MAX_RDS_PS_NAME   96

Definition at line 173 of file si4713-i2c.h.

#define MAX_RDS_PTY   31

Definition at line 165 of file si4713-i2c.h.

#define MAX_RDS_RADIO_TEXT   384

Definition at line 180 of file si4713-i2c.h.

#define MIN_ACOMP_THRESHOLD   (-40)

Definition at line 207 of file si4713-i2c.h.

#define POWER_DOWN   0x00

Definition at line 161 of file si4713-i2c.h.

#define POWER_UP   0x01

Definition at line 160 of file si4713-i2c.h.

#define PREEMPHASIS_DISABLED   0

Definition at line 155 of file si4713-i2c.h.

#define PREEMPHASIS_EU   50

Definition at line 154 of file si4713-i2c.h.

#define PREEMPHASIS_USA   75

Definition at line 153 of file si4713-i2c.h.

#define SI4713_ASQ_INT   (1<<1)

Definition at line 114 of file si4713-i2c.h.

#define SI4713_ASQSTATUS_NARGS   1

Definition at line 91 of file si4713-i2c.h.

#define SI4713_ASQSTATUS_NRESP   5

Definition at line 92 of file si4713-i2c.h.

#define SI4713_CMD_GET_INT_STATUS   0x14

Definition at line 60 of file si4713-i2c.h.

#define SI4713_CMD_GET_PROPERTY   0x13

Definition at line 57 of file si4713-i2c.h.

#define SI4713_CMD_GET_REV   0x10

Definition at line 46 of file si4713-i2c.h.

#define SI4713_CMD_GPO_CTL   0x80

Definition at line 105 of file si4713-i2c.h.

#define SI4713_CMD_GPO_SET   0x81

Definition at line 106 of file si4713-i2c.h.

#define SI4713_CMD_PATCH_ARGS   0x15

Definition at line 62 of file si4713-i2c.h.

#define SI4713_CMD_PATCH_DATA   0x16

Definition at line 63 of file si4713-i2c.h.

#define SI4713_CMD_POWER_DOWN   0x11

Definition at line 49 of file si4713-i2c.h.

#define SI4713_CMD_POWER_UP   0x01

Definition at line 43 of file si4713-i2c.h.

#define SI4713_CMD_SET_PROPERTY   0x12

Definition at line 53 of file si4713-i2c.h.

#define SI4713_CMD_TX_ASQ_STATUS   0x34

Definition at line 93 of file si4713-i2c.h.

#define SI4713_CMD_TX_RDS_BUFF   0x35

Definition at line 98 of file si4713-i2c.h.

#define SI4713_CMD_TX_RDS_PS   0x36

Definition at line 103 of file si4713-i2c.h.

#define SI4713_CMD_TX_TUNE_FREQ   0x30

Definition at line 69 of file si4713-i2c.h.

#define SI4713_CMD_TX_TUNE_MEASURE   0x32

Definition at line 81 of file si4713-i2c.h.

#define SI4713_CMD_TX_TUNE_POWER   0x31

Definition at line 77 of file si4713-i2c.h.

#define SI4713_CMD_TX_TUNE_STATUS   0x33

Definition at line 86 of file si4713-i2c.h.

#define SI4713_CTS   (1<<7)

Definition at line 111 of file si4713-i2c.h.

#define SI4713_DIG_INPUT_FORMAT   0x0101

Definition at line 121 of file si4713-i2c.h.

#define SI4713_DIG_INPUT_SAMPLE_RATE   0x0103

Definition at line 122 of file si4713-i2c.h.

#define SI4713_ERR   (1<<6)

Definition at line 112 of file si4713-i2c.h.

#define SI4713_GET_PROP_NARGS   3

Definition at line 55 of file si4713-i2c.h.

#define SI4713_GET_PROP_NRESP   4

Definition at line 56 of file si4713-i2c.h.

#define SI4713_GET_STATUS_NRESP   1

Definition at line 59 of file si4713-i2c.h.

#define SI4713_GETREV_NRESP   9

Definition at line 45 of file si4713-i2c.h.

#define SI4713_GPO_IEN   0x0001

Definition at line 120 of file si4713-i2c.h.

#define SI4713_IALH_BIT   (1 << 1)

Definition at line 89 of file si4713-i2c.h.

#define SI4713_IALL_BIT   (1 << 0)

Definition at line 90 of file si4713-i2c.h.

#define SI4713_INTACK_MASK   0x01

Definition at line 83 of file si4713-i2c.h.

#define SI4713_MAX_ANTCAP   191

Definition at line 73 of file si4713-i2c.h.

#define SI4713_MAX_FREQ   10800

Definition at line 65 of file si4713-i2c.h.

#define SI4713_MAX_POWER   120

Definition at line 71 of file si4713-i2c.h.

#define SI4713_MIN_ANTCAP   0

Definition at line 74 of file si4713-i2c.h.

#define SI4713_MIN_FREQ   7600

Definition at line 66 of file si4713-i2c.h.

#define SI4713_MIN_POWER   88

Definition at line 72 of file si4713-i2c.h.

#define SI4713_NUM_SUPPLIES   2

Definition at line 214 of file si4713-i2c.h.

#define SI4713_OVERMOD_BIT   (1 << 2)

Definition at line 88 of file si4713-i2c.h.

#define SI4713_PRODUCT_NUMBER   0x0D

Definition at line 21 of file si4713-i2c.h.

#define SI4713_PWDN_NRESP   1

Definition at line 48 of file si4713-i2c.h.

#define SI4713_PWUP_CTSIEN   (1<<7)

Definition at line 33 of file si4713-i2c.h.

#define SI4713_PWUP_FUNC_PATCH   0x0F

Definition at line 38 of file si4713-i2c.h.

#define SI4713_PWUP_FUNC_TX   0x02

Definition at line 37 of file si4713-i2c.h.

#define SI4713_PWUP_GPO2OEN   (1<<6)

Definition at line 34 of file si4713-i2c.h.

#define SI4713_PWUP_NARGS   2

Definition at line 41 of file si4713-i2c.h.

#define SI4713_PWUP_NRESP   1

Definition at line 42 of file si4713-i2c.h.

#define SI4713_PWUP_OPMOD_ANALOG   0x50

Definition at line 39 of file si4713-i2c.h.

#define SI4713_PWUP_OPMOD_DIGITAL   0x0F

Definition at line 40 of file si4713-i2c.h.

#define SI4713_PWUP_PATCH   (1<<5)

Definition at line 35 of file si4713-i2c.h.

#define SI4713_PWUP_XOSCEN   (1<<4)

Definition at line 36 of file si4713-i2c.h.

#define SI4713_RDS_INT   (1<<2)

Definition at line 113 of file si4713-i2c.h.

#define SI4713_RDSBUFF_MODE_MASK   0x87

Definition at line 95 of file si4713-i2c.h.

#define SI4713_RDSBUFF_NARGS   7

Definition at line 96 of file si4713-i2c.h.

#define SI4713_RDSBUFF_NRESP   6

Definition at line 97 of file si4713-i2c.h.

#define SI4713_RDSPS_NARGS   5

Definition at line 101 of file si4713-i2c.h.

#define SI4713_RDSPS_NRESP   1

Definition at line 102 of file si4713-i2c.h.

#define SI4713_RDSPS_PSID_MASK   0x1F

Definition at line 100 of file si4713-i2c.h.

#define SI4713_REFCLK_FREQ   0x0201

Definition at line 123 of file si4713-i2c.h.

#define SI4713_REFCLK_PRESCALE   0x0202

Definition at line 124 of file si4713-i2c.h.

#define SI4713_SET_PROP_NARGS   5

Definition at line 51 of file si4713-i2c.h.

#define SI4713_SET_PROP_NRESP   1

Definition at line 52 of file si4713-i2c.h.

#define SI4713_STC_INT   (1<<0)

Definition at line 115 of file si4713-i2c.h.

#define SI4713_TX_ACOMP_ATTACK_TIME   0x2202

Definition at line 135 of file si4713-i2c.h.

#define SI4713_TX_ACOMP_ENABLE   0x2200

Definition at line 133 of file si4713-i2c.h.

#define SI4713_TX_ACOMP_GAIN   0x2204

Definition at line 137 of file si4713-i2c.h.

#define SI4713_TX_ACOMP_RELEASE_TIME   0x2203

Definition at line 136 of file si4713-i2c.h.

#define SI4713_TX_ACOMP_THRESHOLD   0x2201

Definition at line 134 of file si4713-i2c.h.

#define SI4713_TX_ASQ_DURATION_HIGH   0x2304

Definition at line 143 of file si4713-i2c.h.

#define SI4713_TX_ASQ_DURATION_LOW   0x2302

Definition at line 141 of file si4713-i2c.h.

#define SI4713_TX_ASQ_INTERRUPT_SOURCE   0x2300

Definition at line 139 of file si4713-i2c.h.

#define SI4713_TX_ASQ_LEVEL_HIGH   0x2303

Definition at line 142 of file si4713-i2c.h.

#define SI4713_TX_ASQ_LEVEL_LOW   0x2301

Definition at line 140 of file si4713-i2c.h.

#define SI4713_TX_AUDIO_DEVIATION   0x2101

Definition at line 126 of file si4713-i2c.h.

#define SI4713_TX_COMPONENT_ENABLE   0x2100

Definition at line 125 of file si4713-i2c.h.

#define SI4713_TX_LIMITER_RELEASE_TIME   0x2205

Definition at line 138 of file si4713-i2c.h.

#define SI4713_TX_LINE_INPUT_LEVEL   0x2104

Definition at line 129 of file si4713-i2c.h.

#define SI4713_TX_LINE_INPUT_MUTE   0x2105

Definition at line 130 of file si4713-i2c.h.

#define SI4713_TX_PILOT_DEVIATION   0x2102

Definition at line 127 of file si4713-i2c.h.

#define SI4713_TX_PILOT_FREQUENCY   0x2107

Definition at line 132 of file si4713-i2c.h.

#define SI4713_TX_PREEMPHASIS   0x2106

Definition at line 131 of file si4713-i2c.h.

#define SI4713_TX_RDS_DEVIATION   0x2103

Definition at line 128 of file si4713-i2c.h.

#define SI4713_TX_RDS_FIFO_SIZE   0x2C07

Definition at line 151 of file si4713-i2c.h.

#define SI4713_TX_RDS_INTERRUPT_SOURCE   0x2C00

Definition at line 144 of file si4713-i2c.h.

#define SI4713_TX_RDS_PI   0x2C01

Definition at line 145 of file si4713-i2c.h.

#define SI4713_TX_RDS_PS_AF   0x2C06

Definition at line 150 of file si4713-i2c.h.

#define SI4713_TX_RDS_PS_MESSAGE_COUNT   0x2C05

Definition at line 149 of file si4713-i2c.h.

#define SI4713_TX_RDS_PS_MISC   0x2C03

Definition at line 147 of file si4713-i2c.h.

#define SI4713_TX_RDS_PS_MIX   0x2C02

Definition at line 146 of file si4713-i2c.h.

#define SI4713_TX_RDS_PS_REPEAT_COUNT   0x2C04

Definition at line 148 of file si4713-i2c.h.

#define SI4713_TXFREQ_NARGS   3

Definition at line 67 of file si4713-i2c.h.

#define SI4713_TXFREQ_NRESP   1

Definition at line 68 of file si4713-i2c.h.

#define SI4713_TXMEA_NARGS   4

Definition at line 79 of file si4713-i2c.h.

#define SI4713_TXMEA_NRESP   1

Definition at line 80 of file si4713-i2c.h.

#define SI4713_TXPWR_NARGS   4

Definition at line 75 of file si4713-i2c.h.

#define SI4713_TXPWR_NRESP   1

Definition at line 76 of file si4713-i2c.h.

#define SI4713_TXSTATUS_NARGS   1

Definition at line 84 of file si4713-i2c.h.

#define SI4713_TXSTATUS_NRESP   8

Definition at line 85 of file si4713-i2c.h.

#define TIMEOUT_POWER_UP   200000

Definition at line 28 of file si4713-i2c.h.

#define TIMEOUT_SET_PROPERTY   20

Definition at line 25 of file si4713-i2c.h.

#define TIMEOUT_TX_TUNE   110000

Definition at line 27 of file si4713-i2c.h.

#define TIMEOUT_TX_TUNE_POWER   30000

Definition at line 26 of file si4713-i2c.h.