コード例 #1
0
ファイル: mac.c プロジェクト: 0110/stm32f103playground
/**
 * @brief   Updates and returns the link status.
 *
 * @param[in] macp      pointer to the @p MACDriver object
 * @return              The link status.
 * @retval true         if the link is active.
 * @retval false        if the link is down.
 *
 * @api
 */
bool macPollLinkStatus(MACDriver *macp) {

  osalDbgCheck(macp != NULL);
  osalDbgAssert(macp->state == MAC_ACTIVE, "not active");

  return mac_lld_poll_link_status(macp);
}
コード例 #2
0
ファイル: mac.c プロジェクト: ksskarthik/Falcon
/**
 * @brief   Updates and returns the link status.
 *
 * @param[in] macp      pointer to the @p MACDriver object
 * @return              The link status.
 * @retval TRUE         if the link is active.
 * @retval FALSE        if the link is down.
 *
 * @api
 */
bool_t macPollLinkStatus(MACDriver *macp) {

  chDbgCheck((macp != NULL), "macPollLinkStatus");
  chDbgAssert(macp->state == MAC_ACTIVE, "macPollLinkStatus(), #1",
              "not active");

  return mac_lld_poll_link_status(macp);
}
コード例 #3
0
ファイル: mac.c プロジェクト: dienbk7x/STM32-mini-demo
/**
 * @brief   Updates and returns the link status.
 *
 * @param[in] macp      pointer to the @p MACDriver object
 * @return              The link status.
 * @retval TRUE         if the link is active.
 * @retval FALSE        if the link is down.
 */
bool_t macPollLinkStatus(MACDriver *macp) {

  return mac_lld_poll_link_status(macp);
}