home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / jËzyki_programowania / ace_basic / ace / include / hardware / adkbits.h next >
C/C++ Source or Header  |  1977-12-31  |  2KB  |  56 lines

  1. #ifndef HARDWARE_ADKBITS_H
  2. #define HARDWARE_ADKBITS_H 1
  3. /*
  4. ** adkbits.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/03/95
  11. **
  12. **
  13. */
  14.  
  15.  
  16. #define  ADKB_SETCLR    15 /* standard set/clear bit */
  17. #define  ADKB_PRECOMP1  14 /* two bits of precompensation */
  18. #define  ADKB_PRECOMP0  13
  19. #define  ADKB_MFMPREC   12 /* use mfm style precompensation */
  20. #define  ADKB_UARTBRK   11 /* force uart output to zero */
  21. #define  ADKB_WORDSYNC  10 /* enable DSKSYNC register matching */
  22. #define  ADKB_MSBSYNC   9  /* (Apple GCR Only) sync on MSB for reading */
  23. #define  ADKB_FAST  8  /* 1 -> 2 us/bit (mfm),  2 -> 4 us/bit (gcr) */
  24. #define  ADKB_USE3PN    7  /* use aud chan 3 to modulate period of ?? */
  25. #define  ADKB_USE2P3    6  /* use aud chan 2 to modulate period of 3 */
  26. #define  ADKB_USE1P2    5  /* use aud chan 1 to modulate period of 2 */
  27. #define  ADKB_USE0P1    4  /* use aud chan 0 to modulate period of 1 */
  28. #define  ADKB_USE3VN    3  /* use aud chan 3 to modulate volume of ?? */
  29. #define  ADKB_USE2V3    2  /* use aud chan 2 to modulate volume of 3 */
  30. #define  ADKB_USE1V2    1  /* use aud chan 1 to modulate volume of 2 */
  31. #define  ADKB_USE0V1    0  /* use aud chan 0 to modulate volume of 1 */
  32.  
  33. #define  ADKF_SETCLR    (32768&)
  34. #define  ADKF_PRECOMP1  (16384&)
  35. #define  ADKF_PRECOMP0  (8192&)
  36. #define  ADKF_MFMPREC   (4096&)
  37. #define  ADKF_UARTBRK   (2048&)
  38. #define  ADKF_WORDSYNC  (1024&)
  39. #define  ADKF_MSBSYNC   (512&)
  40. #define  ADKF_FAST  (256&)
  41. #define  ADKF_USE3PN    (128&)
  42. #define  ADKF_USE2P3    (64&)
  43. #define  ADKF_USE1P2    (32&)
  44. #define  ADKF_USE0P1    (16&)
  45. #define  ADKF_USE3VN    (8&)
  46. #define  ADKF_USE2V3    (4&)
  47. #define  ADKF_USE1V2    (2&)
  48. #define  ADKF_USE0V1    (1)
  49.  
  50. #define ADKF_PRE000NS   0           /* 000 ns of precomp */
  51. #define ADKF_PRE140NS   (ADKF_PRECOMP0) /* 140 ns of precomp */
  52. #define ADKF_PRE280NS   (ADKF_PRECOMP1) /* 280 ns of precomp */
  53. #define ADKF_PRE560NS   (ADKF_PRECOMP0 OR ADKF_PRECOMP1) /* 560 ns of precomp */
  54.  
  55. #endif  /* HARDWARE_ADKBITS_H */
  56.