参考初始化寄存器值:
const static u8 FM2010_INIT_CMDS[] =
{
0xfc, 0xf3, 0x3b, 0x1e, 0x3a, 0x00, 0x00,
};
// init all regs after reset
const static u8 FM2010_REG_CMDS[] =
{
0xfc, 0xf3, 0x3b, 0x0f, 0x84, 0x00, 0x80,
0xfc, 0xf3, 0x3b, 0x1e, 0x34, 0x00, 0x89,
0xfc, 0xf3, 0x3b, 0x1e, 0x3b, 0x00, 0x07,
0xfc, 0xf3, 0x3b, 0x1e, 0x3d, 0x01, 0x20,
0xfc, 0xf3, 0x3b, 0x1e, 0x41, 0x00, 0x02,
0xfc, 0xf3, 0x3b, 0x1e, 0x45, 0x43, 0xde,
0xfc, 0xf3, 0x3b, 0x1e, 0x46, 0x00, 0x35,
0xfc, 0xf3, 0x3b, 0x1e, 0x47, 0x18, 0x00,
0xfc, 0xf3, 0x3b, 0x1e, 0x4d, 0x03, 0x80,
0xfc, 0xf3, 0x3b, 0x1e, 0x51, 0xc0, 0x00,
0xfc, 0xf3, 0x3b, 0x1e, 0x52, 0x00, 0x13,
0xfc, 0xf3, 0x3b, 0x1e, 0x57, 0x7f, 0xff,
0xfc, 0xf3, 0x3b, 0x1e, 0x60, 0x00, 0x00,
0xfc, 0xf3, 0x3b, 0x1e, 0x63, 0x00, 0x01,
0xfc, 0xf3, 0x3b, 0x1e, 0x70, 0x05, 0xc0,
0xfc, 0xf3, 0x3b, 0x1e, 0x86, 0x00, 0x0a,
0xfc, 0xf3, 0x3b, 0x1e, 0x87, 0x00, 0x06,
0xfc, 0xf3, 0x3b, 0x1e, 0xc5, 0x10, 0x00,
0xfc, 0xf3, 0x3b, 0x1e, 0xc6, 0x2c, 0x00,
0xfc, 0xf3, 0x3b, 0x1e, 0xc7, 0x2c, 0x00,
0xfc, 0xf3, 0x3b, 0x1e, 0xd4, 0x28, 0x00,
0xfc, 0xf3, 0x3b, 0x1e, 0xd6, 0x0a, 0x00,
0xfc, 0xf3, 0x3b, 0x1e, 0xd7, 0x07, 0x00,
0xfc, 0xf3, 0x3b, 0x1e, 0xda, 0x2c, 0x00,
0xfc, 0xf3, 0x3b, 0x1e, 0xdb, 0x18, 0x00,
0xfc, 0xf3, 0x3b, 0x1e, 0xde, 0x48, 0x00,
0xfc, 0xf3, 0x3b, 0x1e, 0xdf, 0x30, 0x00,
0xfc, 0xf3, 0x3b, 0x1e, 0x3a, 0x00, 0x00,
};
// init all regs while wakeup from sleep
const static u8 FM2010_WAKEUP_CMDS[] =
{
// 0xfc, 0xf3, 0x3b, 0x1e, 0x51, 0xc0, 0x00,
0xfc, 0xf3, 0x3b, 0x1e, 0x3a, 0x00, 0x00,
};
// use 3 read cmds to get 2-byte value according to reg addr
const static u8 FM2010_READ_CMDS1[] =
{
0xfc, 0xf3, 0x37, 0x1e, 0x34,
};
const static u8 FM2010_READ_CMDS2[] =
{
0xfc, 0xf3, 0x60, 0x25,
};
const static u8 FM2010_READ_CMDS3[] =
{
0xfc, 0xf3, 0x60, 0x26,
}; |