ar1000.c File Reference

#include "ar1000.h"
#include "pic_serial.h"
Include dependency graph for ar1000.c:

Go to the source code of this file.

Functions

uns8 ar1000_get_register (uns8 reg)
void ar1000_init ()
uns16 ar1000_read_register (uns8 reg)
void ar1000_read_registers ()
void ar1000_seek (uns16 frequency, bit seek_up)
void ar1000_seek2 ()
void ar1000_seek_more ()
void ar1000_set_register (uns8 reg, uns8 data)
void ar1000_set_seek_threshold (uns8 new_seek_threshold)
void ar1000_set_volume (uns8 volume)
void ar1000_setup_io ()
 Setup AR1000 ports and pins.
void ar1000_test ()
void ar1000_tune (uns16 frequency)
void ar1000_write_register (uns8 reg, uns16 data)
void ar1000_write_registers ()

Variables

uns8 ar1000_seek_threshold
uns16 regs [18]
rom uns8 vol_lookup []

Function Documentation

uns8 ar1000_get_register ( uns8  reg  ) 

Definition at line 55 of file ar1000.c.

References regs.

void ar1000_init (  ) 

Definition at line 224 of file ar1000.c.

References AR1000_DEV_ADDR, ar1000_seek_threshold, i2c_write_eeprom_16bit(), regs, and uns8.

Referenced by ar1000_seek2(), ar1000_seek_more(), ar1000_set_volume(), and ar1000_tune().

Here is the call graph for this function:

Here is the caller graph for this function:

uns16 ar1000_read_register ( uns8  reg  ) 

Definition at line 70 of file ar1000.c.

References AR1000_DEV_ADDR, and i2c_read_eeprom_16bit().

Here is the call graph for this function:

void ar1000_read_registers (  ) 

Definition at line 66 of file ar1000.c.

void ar1000_seek ( uns16  frequency,
bit  seek_up 
)
void ar1000_seek2 (  ) 

Definition at line 234 of file ar1000.c.

References ar1000_init(), and regs.

Here is the call graph for this function:

void ar1000_seek_more (  ) 

Definition at line 273 of file ar1000.c.

References AR1000_DEV_ADDR, ar1000_init(), AR1000_STATUS, channel, i2c_read_eeprom_16bit(), R2_TUNE_ENABLE, regs, serial_print_int(), serial_print_nl(), serial_print_str(), and uns16.

Here is the call graph for this function:

void ar1000_set_register ( uns8  reg,
uns8  data 
)

Definition at line 50 of file ar1000.c.

References regs.

void ar1000_set_seek_threshold ( uns8  new_seek_threshold  ) 

Definition at line 219 of file ar1000.c.

References ar1000_seek_threshold.

void ar1000_set_volume ( uns8  volume  ) 

Definition at line 321 of file ar1000.c.

References ar1000_init(), regs, uns16, uns8, and vol_lookup.

Here is the call graph for this function:

void ar1000_setup_io (  ) 

Definition at line 46 of file ar1000.c.

References i2c_setup.

void ar1000_test (  ) 

Definition at line 255 of file ar1000.c.

References AR1000_DEV_ADDR, i2c_read_eeprom_16bit(), i2c_write_eeprom_16bit(), R1_HARD_MUTE_ENABLE, and uns16.

Here is the call graph for this function:

void ar1000_tune ( uns16  frequency  ) 
void ar1000_write_register ( uns8  reg,
uns16  data 
)

Definition at line 77 of file ar1000.c.

References AR1000_DEV_ADDR, and i2c_write_eeprom_16bit().

Here is the call graph for this function:

void ar1000_write_registers (  ) 

Definition at line 60 of file ar1000.c.

References uns8.


Variable Documentation

Definition at line 38 of file ar1000.c.

Referenced by ar1000_init(), ar1000_seek(), and ar1000_set_seek_threshold().

uns16 regs[18]
Initial value:
 {
    0xffff,0x5b15,0xF4B9,0x8012,0x0400,0x28aa,0x4400,0x1ee7,
    0x7141,0x007d,0x82ce,0x4f55,0x970c,0xb845,0xfc2d,0x8097,
    0x04a1,0xdf6a}

Definition at line 41 of file ar1000.c.

Referenced by ar1000_get_register(), ar1000_init(), ar1000_seek2(), ar1000_seek_more(), ar1000_set_register(), ar1000_set_volume(), and ar1000_tune().

rom uns8 vol_lookup[]
Initial value:
 {
0x0F,
0xCF,
0xDF,
0xEF,
0xFF,
0xEE,
0xFE,
0xED,
0xFD,
0xFB,
0xFA,
0xF9,
0xF7,
0xE6,
0xF6,
0xE5,
0xF5,
0xE3,
0xF3,
0xF2,
0xF1,
0xF0}

Definition at line 295 of file ar1000.c.

Referenced by ar1000_set_volume().


Generated on Wed Dec 8 13:46:57 2010 for Pic Pack by  doxygen 1.6.1