dscSerialConfig
This function will change the serial protocol and store into EEPROM as per request.
Name
Description
DSCB
The handle of the board to operate on
serialconfig
Int Protocol[] – which is the array, can set the protocol mode in Protocol[0] variable as following below
0 - RS232,
1 - RS422,
2 - RS485
(Protocol[0] - Athena-IV and Saturn will support
Protocol[1] - Only Athena-IV is supporting)
Int Action –
0. Set Serial port mode.
1. Set Serial port mode and update EEPROM
2. Read EEPROM
(Athena-IV & Saturn will support)
BYTE* eeprom_data - Curent EEPROM setting for serial port registers.(Athena-IV & Saturn will support)
int Slewrate - To select Slew rate.(Athena-IV & Saturn will support)
Return Value
Error code or 0
Last updated
Was this helpful?