#ifndef hal_phy_inc_context_h #define hal_phy_inc_context_h /* Cesar project {{{ * * Copyright (C) 2007 Spidcom * * <<>> * * }}} */ /** * \file hal/phy/inc/context.h * \brief HAL Phy context. * \ingroup hal_phy */ #include "hal/phy/phy.h" #include /** Phy context. */ struct phy_t { /** User data passed to any callback. */ void *user_data; /** RX FC event callback. */ phy_rx_fc_cb_t rx_fc_cb; /** ACCESS event callback. */ phy_access_cb_t access_cb; /** ACCESS CONFIRM event callback. */ phy_access_conf_cb_t access_conf_cb; /** PB DMA callback. */ phy_pbdma_cb_t pbdma_cb; /** TX FALSE ALARM callback. */ phy_tx_false_alarm_cb_t tx_false_alarm_cb; /** DSR callback. */ phy_deferred_cb_t deferred_cb; /** User data passed to extra timer callback. */ void *extra_timer_user_data; /** Extra timer callback. */ phy_extra_timer_cb_t extra_timer_cb; /** Interrupt handle. */ cyg_handle_t interrupt_handle; /** Interrupt context. */ cyg_interrupt interrupt_context; }; /* Forward declaration in hal/phy/forward.h. */ #endif /* hal_phy_inc_context_h */