Lexicon, Inc.
MC-12 Serial Communications Protocol
Printed on: 08/18/03
© 2003 Lexicon, Inc. All rights reserved.
52 of 94
7.3.55 MC-12 Set Input Name by Id (MC-12)
Sets an Input Name to the transmitted value for a given input.
7.3.55.1 Command Packet Description
Application Header:
Command
MC_CMD_SET_INPUT_NAME 0x48
Data Count
Number of characters in
Inp 2
nn
Application Data:
Data[0]
InputId
0 to 7
Data[1]-Data[DataCount-1]
InputName
ch ch ch ... 0x00
7.3.55.2 Data Description
InputId:
Data Type:
Unsigned 8 bit Integer
Description/Conversion:
Appendix F MC-12 Input Ids
InputName:
Data Type:
Null (0x00) terminated ASCII character string.
Max Length:
INPUT_NAME_LENGTH defined in
Appendix G Protocol Constants
.
7.3.55.3 MC-12 Response
MC-12 will copy the InputName to the given input.
7.3.55.4 Data Validation:
The InputId must be a valid Input Id. If it is not the MC-12 will respond with a NAK packet and error code
DC_INVALID_INPUT
. If the InputName string exceeds the INPUT_NAME_LENGTH, the MC-12 will
truncate the string to the INPUT_NAME_LENGTH.