mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-08-02 17:16:32 +03:00
.
This commit is contained in:
@@ -229,14 +229,19 @@ void BK4819_write_16(uint16_t Data)
|
||||
}
|
||||
}
|
||||
|
||||
void BK4819_EnableAFC(void)
|
||||
void BK4819_set_AFC(unsigned int level)
|
||||
{
|
||||
BK4819_write_reg(0x73, (0u << 11) | (0u << 4));
|
||||
if (level > 8)
|
||||
level = 8;
|
||||
|
||||
if (level == 0)
|
||||
BK4819_write_reg(0x73, BK4819_read_reg(0x73) | (1u << 4)); // disable
|
||||
else
|
||||
BK4819_write_reg(0x73, ((8u - level) << 11) | (0u << 4));
|
||||
}
|
||||
|
||||
void BK4819_DisableAFC(void)
|
||||
{
|
||||
BK4819_write_reg(0x73, (0u << 11) | (1u << 4));
|
||||
}
|
||||
|
||||
void BK4819_DisableAGC(void)
|
||||
|
@@ -67,8 +67,7 @@ void BK4819_write_reg(const uint8_t Register, uint16_t Data);
|
||||
void BK4819_write_8(uint8_t Data);
|
||||
void BK4819_write_16(uint16_t Data);
|
||||
|
||||
void BK4819_EnableAFC(void);
|
||||
void BK4819_DisableAFC(void);
|
||||
void BK4819_set_AFC(unsigned int level);
|
||||
|
||||
void BK4819_DisableAGC(void);
|
||||
void BK4819_EnableAGC(void);
|
||||
|
Reference in New Issue
Block a user