![Forenex FES91W Series Скачать руководство пользователя страница 43](http://html1.mh-extra.com/html/forenex/fes91w-series/fes91w-series_user-manual_2318966043.webp)
43
-
Example
spi_read(1, 2, &Spi_Rea_Data[ ], 1)
// Array[0] ~ array[1] will receive data from SPI 1.
// CS will be disable after the last data has been read-in
Function
rs485_status
Prototype
void
rs485_status(
int
com_num,
int
hi_low)
Parameters
1. com_num (integer)
2. hi_low (integer)
Return value
None
Description
This function will set Com port to be Rs485 in write or read mode .
●com_num :
Set Com2 or Com3 to be Rs485.
1 : COM1 dedicated for Debug, not available for general use.
2 : COM2
3 : COM3
4 : COM4
●hi_low :
Set Com port in read or write mode.
1 : Write mode
0 : Read mode
Rs485 can not be read or write at same time.
Example
rs485_status(2,1)
// Set Com Port 2 to be Rs485 and as Write mode.