Added 2 new BK4819 features.

This commit is contained in:
Dual Tachyon 2023-08-26 12:41:55 +01:00
parent 55512be8f3
commit 53432231e7
2 changed files with 14 additions and 0 deletions

View File

@ -804,3 +804,13 @@ void BK4819_StopScan(void)
BK4819_Disable();
}
uint8_t BK4819_GetDTMF_5TONE_Code(void)
{
return (BK4819_GetRegister(BK4819_REG_0B) >> 8) & 0x0F;
}
uint8_t BK4819_CheckCDCSSCodeReceived(void)
{
return (BK4819_GetRegister(BK4819_REG_0C) >> 14) & 3;
}

View File

@ -120,5 +120,9 @@ void BK4819_Disable(void);
void BK4819_StopScan(void);
uint8_t BK4819_GetDTMF_5TONE_Code(void);
uint8_t BK4819_CheckCDCSSCodeReceived(void);
#endif