speakjet_definition_list
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
speakjet_definition_list [2006/05/21 17:03] – created audiocommander | speakjet_definition_list [2006/10/15 09:35] – (old revision restored) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== SCP and MSA #defines for the SpeakJet ====== | ====== SCP and MSA #defines for the SpeakJet ====== | ||
- | This file can be used for your MBHP_IIC_SpeakJet Project: | + | :!: **ImportantNote: |
+ | This file is currently under development and can change radically!\\ | ||
+ | Maybe you want to wait some days until this note disappears to add your SJ-Definitions** | ||
+ | |||
+ | It can be used for your C-based | ||
+ | |||
+ | Feel free to edit and add defines! | ||
<code c> | <code c> | ||
+ | |||
/* | /* | ||
| | ||
| | ||
* | * | ||
- | | + | |
- | | + | |
+ | | ||
* | * | ||
| | ||
Line 19: | Line 28: | ||
#ifndef _IIC_SPEAKJETDEFINES_H | #ifndef _IIC_SPEAKJETDEFINES_H | ||
#define _IIC_SPEAKJETDEFINES_H | #define _IIC_SPEAKJETDEFINES_H | ||
- | |||
Line 27: | Line 35: | ||
#ifdef _DEBUG_C | #ifdef _DEBUG_C | ||
#pragma mark - | #pragma mark - | ||
+ | #pragma mark SCP | ||
#endif | #endif | ||
- | #pragma mark SCP | ||
- | // ... to come | + | // escape character (' |
+ | #define SCP_ESCAPE ' | ||
+ | #define SCP_SEL0 ' | ||
+ | #define SCP_SEL1 ' | ||
+ | #define SCP_SEL2 ' | ||
+ | #define SCP_SEL3 ' | ||
+ | #define SCP_SEL4 ' | ||
+ | #define SCP_SEL5 ' | ||
+ | #define SCP_SEL6 ' | ||
+ | #define SCP_SEL7 ' | ||
+ | #define SCP_EXIT ' | ||
+ | |||
+ | #define SCP_READY ' | ||
+ | #define SCP_CLEAR_BUFFER ' | ||
+ | #define SCP_START ' | ||
+ | #define SCP_STOP ' | ||
+ | |||
+ | #define SCP_MEMTYPE ' | ||
+ | #define SCP_MEMADDR ' | ||
+ | #define SCP_MEMWRT ' | ||
+ | |||
+ | #define SCP_RESET ' | ||
+ | |||
+ | |||
+ | // ********* SPEAKJET SCP REGISTERS **** // | ||
+ | // SCP Registers & MAX Values | ||
+ | #ifdef _DEBUG_C | ||
+ | #pragma mark - | ||
+ | #pragma mark SCP REGISTERS & MAX VALUES | ||
+ | #endif | ||
+ | |||
+ | // == SCP_MEMTYPE (H) == | ||
+ | #define SCP_MEMTYPE_REGISTER ' | ||
+ | #define SCP_MEMTYPE_EEPROM_H ' | ||
+ | #define SCP_MEMTYPE_EEPROM_L ' | ||
+ | |||
+ | // == SCP_MEMADDR (J) == | ||
+ | // Envelope | ||
+ | #define SCP_ENV_FREQ ' | ||
+ | #define SCP_ENV_CTRL ' | ||
+ | /* Oscillator Frequency Register | ||
+ | #define SCP_OSC1_FREQ ' | ||
+ | #define SCP_OSC2_FREQ ' | ||
+ | #define SCP_OSC3_FREQ ' | ||
+ | #define SCP_OSC4_FREQ ' | ||
+ | #define SCP_OSC5_FREQ ' | ||
+ | /* Oscillator Level Register | ||
+ | #define SCP_OSC1_LEVEL 11 | ||
+ | #define SCP_OSC2_LEVEL 12 | ||
+ | #define SCP_OSC3_LEVEL 13 | ||
+ | #define SCP_OSC4_LEVEL 14 | ||
+ | #define SCP_OSC5_LEVEL 15*/ | ||
+ | // Distortion | ||
+ | #define SCP_DISTORTION ' | ||
+ | // Master | ||
+ | #define SCP_MASTER_VOLUME ' | ||
+ | |||
+ | // == SCP_MEMWRT (N) == | ||
+ | // ENVType (send ENVType + ENVState!) | ||
+ | #define SCP_ENV_SAW 0x0 | ||
+ | #define SCP_ENV_SINE 0x1 | ||
+ | #define SCP_ENV_TRIANGLE 0x2 | ||
+ | #define SCP_ENV_SQUARE 0x3 | ||
+ | // ENVState (send ENVType + ENVState!) | ||
+ | #define SCP_ENV_OSC123 0x40 | ||
+ | #define SCP_ENV_OSC45 0x80 | ||
+ | // Default values | ||
+ | #define SCP_FREQ_DEFAULT 440 | ||
+ | #define SCP_LEVEL_DEFAULT 20 // | ||
+ | // Maximum accepted values | ||
+ | #define SCP_FREQ_MAX 3999 | ||
+ | #define SCP_LEVEL_MAX 31 | ||
+ | #define SCP_DISTORTION_MAX 255 | ||
+ | #define SCP_MASTER_VOLUME_MAX 255 | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
Line 38: | Line 125: | ||
#ifdef _DEBUG_C | #ifdef _DEBUG_C | ||
#pragma mark - | #pragma mark - | ||
+ | #pragma mark MSA Control Codes | ||
#endif | #endif | ||
+ | |||
// 0 - 31 CONTROL CODES | // 0 - 31 CONTROL CODES | ||
- | #pragma mark MSA Control Codes | + | #define MSA_PAUSE0 0 |
+ | #define MSA_PAUSE1 1 | ||
+ | #define MSA_PAUSE2 2 | ||
+ | #define MSA_PAUSE3 3 | ||
+ | #define MSA_PAUSE4 4 | ||
+ | #define MSA_PAUSE5 5 | ||
+ | #define MSA_PAUSE6 6 | ||
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | #define SJ_PAUSE4 4 | + | |
- | #define SJ_PAUSE5 5 | + | |
- | #define SJ_PAUSE6 6 | + | |
- | # | + | # |
- | #define SJ_NEXTSLOW 8 | + | |
- | #define SJ_NEXTHIGH 14 | + | |
- | #define SJ_NEXTLOW 15 | + | |
- | # | + | # |
+ | #define MSA_SPEED 21 | ||
+ | #define MSA_PITCH 22 | ||
+ | #define MSA_BEND 23 | ||
- | # | + | # |
- | #define SJ_SPEED 21 | + | # |
- | #define SJ_PITCH 22 | + | |
- | # | + | |
- | # | + | # |
- | #define SJ_PORT 25 | + | |
- | # | + | # |
+ | #define MSA_GOTOPHRASE 29 | ||
- | # | + | # |
- | #define SJ_GOTOPHRASE 29 | + | # |
- | + | ||
- | #define SJ_DELAY 30 | + | |
- | # | + | |
// 32 - 127 (Reserved) | // 32 - 127 (Reserved) | ||
- | #pragma mark MSA (Reserved) | + | #ifdef _DEBUG_C |
+ | #pragma mark MSA (Reserved) | ||
+ | #endif | ||
// 128 - 254 SOUNDCODES | // 128 - 254 SOUNDCODES | ||
- | #pragma mark MSA Sound Codes: Phonemes | + | #ifdef _DEBUG_C |
+ | #pragma mark MSA Sound Codes | ||
+ | #endif | ||
- | # | + | // MSA Sound Codes: Phonemes |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
+ | # | ||
- | #pragma mark MSA Sound Codes: Robot | + | // MSA Sound Codes: Robot |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | #pragma mark MSA Sound Codes: Alarms | + | // MSA Sound Codes: Alarms |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | #pragma mark MSA Sound Codes: Beeps | + | // MSA Sound Codes: Beeps |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | #pragma mark MSA Sound Codes: Biological | + | // MSA Sound Codes: Biological |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | #pragma mark MSA Sound Codes: DTMF | + | // MSA Sound Codes: DTMF |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | # | + | # |
- | #pragma mark MSA Sound Codes: Misc | + | // MSA Sound Codes: Misc |
- | # | + | # |
- | # | + | # |
- | # | + | # |
// 255: End of Phrase | // 255: End of Phrase | ||
- | #pragma mark MSA EOP | + | #ifdef _DEBUG_C |
+ | #pragma mark MSA EOP | ||
+ | #endif | ||
- | # | + | # |
#endif /* _IIC_SPEAKJETDEFINES_H */ | #endif /* _IIC_SPEAKJETDEFINES_H */ | ||
+ | |||
+ | |||
+ | |||
</ | </ |
speakjet_definition_list.txt · Last modified: 2006/12/05 14:28 by audiocommander