DM002 protocol

protocol number 33
sub_protocol none=0
ch5=flip
ch6=led
ch7=headless
This commit is contained in:
pascallanger
2017-03-22 14:55:55 +01:00
parent 9c5e054dda
commit 995bb921c1
8 changed files with 318 additions and 31 deletions

View File

@@ -78,6 +78,7 @@ uint8_t CYRF_Reset()
*/
void CYRF_GetMfgData(uint8_t data[])
{
#ifndef FORCE_CYRF_ID
/* Fuses power on */
CYRF_WriteRegister(CYRF_25_MFG_ID, 0xFF);
@@ -85,6 +86,9 @@ void CYRF_GetMfgData(uint8_t data[])
/* Fuses power off */
CYRF_WriteRegister(CYRF_25_MFG_ID, 0x00);
#else
memcpy(data,FORCE_CYRF_ID,6);
#endif
}
/*