請先看『使用說明』
IO Device:F81966 LPC DIO under Linux console
From LEXWiKi
(Difference between revisions)
(→F81966_DLL Function) |
|||
Line 1: | Line 1: | ||
- | + | ||
== The Sample code source you can download from == | == The Sample code source you can download from == | ||
<!-- | <!-- |
Revision as of 12:36, 9 May 2025
Contents |
The Sample code source you can download from
<FTP>
Source file: F81966_DIO_v1.1L_Src
Binary file: F81966_DIO_v1.1L_Bin_x86 F81966_DIO_v1.1L_Bin_x64
F81966 Libary : F81966_LIB_v1.1L_x86 F81966_LIB_v1.1L_x64
MB Support List
Elkhart Lake | Raptor Lake |
---|---|
2I640CW |
3I130TW |
Introduction F81966 DIO
- Start test Button,Send bits one by one and one by one receive
- CIO116 mode for CIO116 module use
- Set time countdown,If the end of the countdown, the trigger signal to reboot
- Enable loop ,Continuously reset the WDT to ensure that when the system is normal, the restart signal will not be triggered
libF81966.so Function
bool F81966_OPEN(); void F81966_Init(); BYTE GET_CIO_INPUT(int CIO_Number); BYTE GET_CIO_OUTPUT_DATA(int CIO_Number); BYTE SET_CIO_OUTPUT_DATA(int CIO_Number, BYTE byteValue); BYTE GetCIOXBit(int CIO_Number, BYTE bitPosition); BYTE SetCIOXBit0(int CIO_Number,BYTE byteValue, BYTE bitPosition); BYTE SetCIOXBit1(int CIO_Number,BYTE byteValue, BYTE bitPosition); void F81966_LPC_Set_WDT_Enable(BYTE byteValue); void F81966_LPC_Set_WDT_Disable();
test_F81966 CIO Input/Ooutput
sample code
Set CIO1 Digital Output all bit low test_F81966 write 0xf; Set CIO2 Digital Output all bit low test_F81966 write 2 0x0; Set CIO3 Digital Output all bit high test_F81966 write 3 0xf; Get CIO4 Digital Input test_F81966 read 4;
read bit position test_F81966 getbit 1 1 write bit position test_F81966 setbit 1 0 1
Watch Dog test
sample code
test_F81966 getbit 1 1
Set WDT 10 sec test_F81966 wdt enable 10;
Disable WDT test_F81966 wdt disable;