コード例 #1
0
ファイル: nRF_CMD.c プロジェクト: code-constructor/openbeacon
void nRFCMD_Macro(const unsigned char *macro) {
	unsigned char size;

	while ((size = *macro++) != 0) {
		nRFCMD_RegWrite(*macro, macro + 1, size - 1);
		macro += size;
	}
}
コード例 #2
0
ファイル: nRF_CMD.c プロジェクト: StefanieKoch/openbeacon
void
nRFCMD_Tx (const uint8_t * buf, uint8_t count, uint8_t jiffies)
{
	/* upload data */
	nRFCMD_RegWrite (WR_TX_PLOAD, buf, count);

	/* transmit data */
	CONFIG_PIN_CE = 1;
	sleep_jiffies (jiffies);
	CONFIG_PIN_CE = 0;
}
コード例 #3
0
ファイル: nRF_CMD.c プロジェクト: StefanieKoch/openbeacon
void
nRFCMD_Macro (const uint8_t * macro)
{
	uint8_t size;

	while ((size = *macro++) != 0)
	{
		nRFCMD_RegWrite (*macro, macro + 1, size - 1);
		macro += size;
	}
}