English
Language : 

NSAM266SA Datasheet, PDF (35/52 Pages) National Semiconductor (TI) – NSAM266SA CompactSPEECHTM Digital Speech Processor with Serial Flash Interface
2 0 Software (Continued)
GL
Get Length
Returns the length of the current message in multiples of 32
bytes
The returned value includes the message directory informa-
tion (64 bytes for the first block and 32 bytes for every other
block) message data and the entire last block of the mes-
sage even if the message occupies only a portion of the
last block Since a flash block includes 4096 bytes the re-
turned length may be bigger than the actual message length
by up to 4095 bytes
The minimum length of a message is one block i e an
empty message occupies 4 kbytes (the message length is
4096 32 e 128)
Example
GL
Microcontroller 19 AA AA
Byte sequence
CompactSPEECH 19 02 00
Description
Get the length of the current message
The CompactSPEECH responds
512
i e the message occupies 16384 (512
32) bytes
GMS
Get Memory Status type
Returns the estimated total remaining recording time in sec-
onds as a 16-bit unsigned integer This estimate assumes
5 2 kbit s with no silence compression a real recording may
be longer according to the amount of silence detected and
compressed
The return value is dependent on the value of the type pa-
rameter as follows
0 The remaining recording time is returned
1 Returns 0 (For compatibility only )
2 Same as 0 (For compatibility only )
The return value is unpredictable for any other value of type
Example
GMS 0
Microcontroller 12 00 AA AA
Byte sequence
CompactSPEECH 12 00 01 40
Description
Return the remaining recording
time
The CompactSPEECH responds
320 seconds
GMT
Get Message Tag
Returns the 16-bit tag associated with the current message
If the current message is undefined ERR VALID is report-
ed
Example
GMT
Microcontroller 04 AA AA
Byte sequence
CompactSPEECH 04 00 0E
Description
Get the current message tag
In a system where the message tag is
encoded as described in the DMS
command the CompactSPEECH return
value indicates that the message is a new
ICM in mailbox Number 6
GNM
Get Number of Messages tag ref tag mask
Returns the number of messages whose message tags
match the tag ref parameter Only bits set in tag mask
are compared i e a match is considered successful if
message tag and tag mask e tag ref and tag mask
where and is a bitwise AND operation
The tag ref and tag mask parameters are each two
bytes the return value is also 2-bytes long
For example if tag ref e 4216 and tag mask e 3F16
the number of existing old messages whose user-defined
tag is 2 is returned See Section 2 6 1 for a description of
message-tag encoding If tag mask e 0 the total number
of all existing messages is returned regardless of the
tag ref value
Example
GNM
FFFE 0003
Microcontroller 11 FF FE 00 03 AA AA
Byte sequence
CompactSPEECH 11 FF FE 00 03 00 05
Description
Get the number of messages which have
bit 0 cleared and bit 1 set in their message
tags
CompactSPEECH responds that there are
five messages which satisfy the request
35
http www national com