electronics, repairs, service manuals and datasheets discussion community for the repairs professionals and technicians
FAQSearchMembersGroupsRegisterProfilePM'sLogin/Out
The reading and writing problems about 32926

 
Post new topic   Reply to topic    Electronic equipment repair and service manual search discussion Forum Index -> Electronics General
View previous topic :: View next topic  
Author Message
ailex1995



Joined: 13 Apr 2017
Posts: 1

PostPosted: Thu Apr 13, 2017 7:54 am    Post subject: The reading and writing problems about 32926 Reply with quote

Hello~all
Please look at the following program:
  
Code:
i2cInit();        
        i = i2cOpen();
        if(i < 0)
        {
                DBG_PRINTF("Open I2C error!\n");
                
        }        
        i2cIoctl(I2C_IOC_SET_DEV_ADDRESS, 0x28, 0);
        i2cIoctl(I2C_IOC_SET_SPEED, 100, 0);
        i2cIoctl(I2C_IOC_SET_SINGLE_MASTER, 1, 0); 
        i2cIoctl(I2C_IOC_SET_SUB_ADDRESS, 0x8047, 2);

        i = 1000;
        while(i-- > 0) 
        {
                ret = i2cRead(value, 2);
                DBG_PRINTF("ret = %d\n",ret);
                if(i2cRead(value, 2) == 2)
                        break;
        }


When I am using 32926, my program always shows that the error: " ret=FFFF1103 " ,in another word: the data transfer error,I have change it to " i2cIoctl(I2C_IOC_SET_SPEED, 400, 0) ; ret =ret = FFFF1101 ". Does anyone can help me out?
Thank you very much!
_________________
shine, kind
Back to top
View user's profile Send private message
martin123



Joined: 02 Apr 2017
Posts: 2

PostPosted: Sun Apr 16, 2017 11:22 am    Post subject: Reply with quote

I think it looks like attributes are asymmetric!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Electronic equipment repair and service manual search discussion Forum Index -> Electronics General All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Електроника София - Service Manuals Free Download - Prikachi - Service Diagrams

Free TV Schematics Download - HARDW.net - Pinout Master - Jabse Search - Jabse.InK  - Pulsator

Connector Pinout Forum - Новини - SnimkiOt.com - безплатен DNS - Whois разузнаване - Poblizo.com : пътешествия