/** * \file * * * \brief Function library for Accessing FT245RL USB interface. * * * \author Francesco Sacchi * * $WIZ$ module_name = "ft245rl" * $WIZ$ module_depends = "kfile", "timer" * $WIZ$ module_hw = "bertos/hw/hw_ft245rl.h" */ #ifndef DRV_FT245RL_H #define DRV_FT245RL_H #include #include /** * ID for FT245RL KFiles. */ #define KFT_FT245RL MAKE_ID('F', '2', '4', '5') /** * Ft245rl KFile context structure. */ typedef struct Ft245rl { KFile fd; ///< File descriptor. } Ft245rl; /** * Convert + ASSERT from generic KFile to KFileFt245rl. */ INLINE Ft245rl * FT245RL_CAST(KFile *fd) { ASSERT(fd->_type == KFT_FT245RL); return (Ft245rl *)fd; } void ft245rl_init(Ft245rl *fd); #endif /* DRV_FT245RL_H */