| поискавой системы для электроныых деталей |
|
FXLS8471Q датащи(PDF) 11 Page - Freescale Semiconductor, Inc |
|
|
|||||||||||||||||||||||||||||
FXLS8471Q датащи(HTML) 11 Page - Freescale Semiconductor, Inc |
|
11 / 75 page ![]() FXLS8471Q Sensors Freescale Semiconductor, Inc. 11 { return (I2C_ERROR); } // normal return return (I2C_OK); } 3.5 FXLS8471Q Data Read function This function performs a block read of the status and acceleration data and places the bytes read into the structures of type SRAWDATA as signed short integers. Example 6. // read status and the three channels of accelerometer data from // FXLS8471Q (7 bytes) int16_t ReadAccel(SRAWDATA *pAccelData) { MQX_FILE_PTR fp; // I2C file pointer uint8_t Buffer[FXLS8471Q_READ_LEN]; // read buffer // read FXLS8471Q_READ_LEN=7 bytes (status byte and the three channels of data) if (s_i2c_read_regs(fp, FXLS8471Q_SLAVE_ADDR, FXLS8471Q_STATUS, Buffer, FXLS8471Q_READ_LEN) == FXLS8471Q_READ_LEN) { // copy the 14 bit accelerometer byte data into 16 bit words pAccelData->x = ((Buffer[1] << 8) | Buffer[2])>> 2; pAccelData->y = ((Buffer[3] << 8) | Buffer[4])>> 2; pAccelData->z = ((Buffer[5] << 8) | Buffer[6])>> 2; } else { // return with error return (I2C_ERROR); } // normal return return (I2C_OK); } |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |