blast.h
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:2k
源码类别:

DVD

开发平台:

C/C++

  1. /***************************************************************************
  2. File name   : blast.h
  3. Description : BLAST header file.
  4. COPYRIGHT (C) 2002 STMicroelectronics
  5. Date         Modification                Initials
  6. ----         ------------                     --------
  7. 04 Sep 03 Created TM
  8. *****************************************************************************/
  9. #ifndef __BLAST_H
  10. #define __BLAST_H
  11. /* ************************************************************************
  12.    I N C L U D E S
  13.    ************************************************************************ */
  14. #include "stblast.h"
  15. #include "stevt.h"
  16. #include "stcommon.h"
  17. #include "pio.h"
  18. /* ************************************************************************
  19.    D E F I N E S
  20.    ************************************************************************ */
  21. #define NUMBER_BLAST 2
  22. #define SYMBOL_BUFFER_SIZE 200
  23. #define BLASTER_TRANSMITTER 0
  24. #define BLASTER_RECEIVER    1
  25. extern ST_DeviceName_t PIO_DeviceName[];
  26. /* ************************************************************************
  27.    C O N S T A N T S
  28.    ************************************************************************ */
  29. #if defined(ST_5105) || defined(ST_5107)
  30. #define BLAST_RXD_PIO PIO_DeviceName[2]
  31. #define BLAST_TXD_PIO PIO_DeviceName[2]
  32. #define BLAST_RXD_BIT PIO_BIT_4
  33. #define BLAST_TXD_BIT PIO_BIT_5
  34. #elif defined (ST_5100)
  35. #define BLAST_RXD_PIO PIO_DeviceName[3]
  36. #define BLAST_TXD_PIO PIO_DeviceName[3]
  37. #define BLAST_RXD_BIT PIO_BIT_6
  38. #define BLAST_TXD_BIT PIO_BIT_7
  39. #define BLAST_TXDINV_BIT PIO_BIT_3
  40. #else
  41. #error Device not specified!!
  42. #endif
  43. /* ************************************************************************
  44.    D A T A   T Y P E S
  45.    ************************************************************************ */
  46. /* ************************************************************************
  47.    G L O B A L S
  48.    ************************************************************************ */
  49. /* semaphore used by event handler */
  50. extern semaphore_t BlasterSemaphore;
  51. /* handle for open API */
  52. extern STBLAST_Handle_t     BlasterHandle[NUMBER_BLAST];
  53. /* Used by event handler */
  54. extern ST_ErrorCode_t LastEvent;
  55. extern ST_ErrorCode_t LastError;
  56. #endif /* __BLAST_H */
  57. /* EOF */