請先看『使用說明』
IO Device:F75113 SMbus under Linux(64bit)
From LEXWiKi
(Difference between revisions)
m |
(→The Sample code source you can download from) |
||
Line 1: | Line 1: | ||
- | |||
== The Sample code source you can download from == | == The Sample code source you can download from == | ||
<Google Drive> | <Google Drive> | ||
- | Source file: [https://drive.google.com/file/d/1ol4bL4QN_HUYJM7C6r0XDI6q62Gp6CP1/view?usp=sharing F75113_SMBUSv1.0.2L_Src] | + | <!--Source file: [https://drive.google.com/file/d/1ol4bL4QN_HUYJM7C6r0XDI6q62Gp6CP1/view?usp=sharing F75113_SMBUSv1.0.2L_Src]--> |
Binary file(64 bit): [https://drive.google.com/file/d/1_SZL7CfSacBS6j2GraG4-_CZT2cSJ1Fn/view?usp=sharing F75113_SMBUSv1.0.2L_Bin] | Binary file(64 bit): [https://drive.google.com/file/d/1_SZL7CfSacBS6j2GraG4-_CZT2cSJ1Fn/view?usp=sharing F75113_SMBUSv1.0.2L_Bin] | ||
Line 10: | Line 9: | ||
<FTP> | <FTP> | ||
- | Source file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/F75113/Linux/SMBUS/F75113_SMBUSv1.0.2L_src.tar.gz F75113_SMBUSv1.0.2L_Src ] | + | <!--Source file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/F75113/Linux/SMBUS/F75113_SMBUSv1.0.2L_src.tar.gz F75113_SMBUSv1.0.2L_Src ]--> |
Binary file(64 bit): [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/F75113/Linux/SMBUS/F75113_SMBUSv1.0.2L_bin.tar.gz F75113_SMBUSv1.0.2L_Bin ] | Binary file(64 bit): [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/F75113/Linux/SMBUS/F75113_SMBUSv1.0.2L_bin.tar.gz F75113_SMBUSv1.0.2L_Bin ] | ||
We do the demo test with a test tool which DIx connect to DOx with Relay. | We do the demo test with a test tool which DIx connect to DOx with Relay. | ||
+ | |||
+ | |||
+ | libF75113 DLL | ||
+ | <Google Drive> DLL file: [https://drive.google.com/file/d/1S2UVO6pTKmSpnrRsoXAhgnkM0iK7rzo1/view?usp=sharing libF75113] | ||
+ | |||
+ | libF75113 DLL Sample Code | ||
+ | <Google Drive> Source file: [https://drive.google.com/file/d/1PJdXe3yBiwNry3yJDu53KKzD_K8GlvGn/view?usp=sharing F75113_SAMPLE_CODE] | ||
+ | <Google Drive> Binay file: [https://drive.google.com/file/d/1drzalyNkG1EbeV0Pau5bSID2LWsaURUj/view?usp=sharing F75113_SAMPLE_BIN] | ||
== MB Support List == | == MB Support List == |
Revision as of 16:46, 3 April 2024
Contents |
The Sample code source you can download from
<Google Drive>
Binary file(64 bit): F75113_SMBUSv1.0.2L_Bin
<FTP>
Binary file(64 bit): F75113_SMBUSv1.0.2L_Bin
We do the demo test with a test tool which DIx connect to DOx with Relay.
libF75113 DLL
<Google Drive> DLL file: libF75113
libF75113 DLL Sample Code <Google Drive> Source file: F75113_SAMPLE_CODE <Google Drive> Binay file: F75113_SAMPLE_BIN
MB Support List
Cacrd |
M113A |
---|
How to use this Demo Application
Before you use this
please enter F75113set.sh and read the Readme.txt enter command
after all you can open the program
1. Press the "Test" button to test CIO1 function
2. Press the "C2test" button to test CIO2 function
3. Press the "C3test" button to test CIO3 function
4. Press the "C4test" button to test CIO4 function
F75113 GPIO Picture
Introduction
GPIO Status Register Write
init_fintek_sio(eSIO_TYPE_F75113, 0 ,&sio_data) ActiveSIO(sio_data.ic_port, sio_data.key); CHECK_RET(_EnableGPIO(0x06 , eGPIO_Mode_Enable)); CHECK_RET(_SetGpioOutputEnableIdx( 0x06 , eGPIO_Direction_Out)); CHECK_RET(_SetGpioDriveEnable( 0x06 , eGPIO_Drive_Mode_OpenDrain)); CHECK_RET(_SetGpioOutputDataIdx( 0x06 , 1)); DeactiveSIO(sio_data.ic_port);
GPIO Status Register Read
init_fintek_sio(eSIO_TYPE_F75113, 0 ,&sio_data) ActiveSIO(sio_data.ic_port, sio_data.key); CHECK_RET(_EnableGPIO(0x06 , eGPIO_Mode_Enable)); CHECK_RET(_SetGpioOutputEnableIdx( 0x06 , eGPIO_Direction_In)); CHECK_RET(_GetGpioInputDataIdx( 0x06 , &data)); DeactiveSIO(sio_data.ic_port);
GPIO Comparison
CHECK_RET(_GetGpioInputDataIdx (0x10,&BDIO_data)); if((BDIO_data == 1) & (BDIO_startvalue_data == 0) ) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(checkbutton2), TRUE); } CHECK_RET(_GetGpioInputDataIdx (0x11,&BDI1_data)); if((BDI1_data == 1) & (BDI1_startvalue_data == 0) ) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(checkbutton4), TRUE); } CHECK_RET(_GetGpioInputDataIdx (0x12,&BDI2_data)); if((BDI2_data == 1) & (BDI2_startvalue_data == 0) ) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(checkbutton6), TRUE); } CHECK_RET(_GetGpioInputDataIdx (0x13,&BDI3_data)); if((BDI3_data == 1) & (BDI3_startvalue_data == 0) ) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(checkbutton8), TRUE); }
F75113 driver delete
on_window1_destory (GtKObject *object, gpointer user_data) { int nRet = 0; sFintek_sio_data sio_data; set_debug(1); if( nRet = init_fintek_sio(eSIO_TYPE_F75113,0, &sio_data)) { fprintf(stderr,"init_fintek_sio error\n"); exit(3); } ActiveSIO(sio_data.ic_port, sio_data.key); DeactiveSIO(sio_data.ic_port); gtk_main_quit(); }