コード例 #1
0
ファイル: unit_tests.c プロジェクト: thegeek82000/asf
static void run_tfa_pib_set_test(const struct test_case *test)
{
	retval_t status;

	int8_t temp;

	temp = TFA_PIB_RX_SENS_DEF;

	status = tfa_pib_set(TFA_PIB_RX_SENS, (void *)&temp);

	test_assert_true(test, status == MAC_SUCCESS,
			"AVR2025_MAC - TFA Setting RX Sensitivity failed");
}
コード例 #2
0
ファイル: tfa.c プロジェクト: AndreyMostovov/asf
/**
 * \brief Write all shadow PIB variables to the transceiver
 *
 * This function writes all shadow PIB variables to the transceiver.
 * It is assumed that the radio does not sleep.
 * \ingroup group_tfa
 */
static void write_all_tfa_pibs_to_trx(void)
{
	tfa_pib_set(TFA_PIB_RX_SENS, (void *)&tfa_pib_rx_sens);
}