Lines Matching full:data
62 Writes data to a register of the AK8975. When more than one byte of data is
63 specified, the data is written in contiguous locations starting at an address
67 @param[in] address Specify the address of a register in which data is to be
69 @param[in] data Specify data to write or a pointer to a data array containing
70 the data. When specifying more than one byte of data, specify the starting
73 data to write. When a pointer to an array is specified in data, this argument
78 const BYTE * data,
97 buf[i + 2] = data[i];
105 AKMDATA(AKMDATA_DRV, "addr(HEX)=%02x data(HEX)=", address);
107 AKMDATA(AKMDATA_DRV, " %02x", data[i]);
116 Acquires data from a register or the EEPROM of the AK8975.
119 @param[in] address Specify the address of a register from which data is to be
121 @param[out] data Specify a pointer to a data array which the read data are
124 data to read. When a pointer to an array is specified in data, this argument
129 BYTE * data,
135 memset(data, 0, numberOfBytesToRead);
154 data[i] = buf[i + 1];
157 AKMDATA(AKMDATA_DRV, "addr(HEX)=%02x len=%d data(HEX)=",
160 AKMDATA(AKMDATA_DRV, " %02x", data[i]);
169 Acquire magnetic data from AK8975. If measurement is not done, this function
173 @param[out] data A magnetic data array. The size should be larger than #SENSOR_DATA_SIZE.
175 int16_t AKD_GetMagneticData(BYTE data[SENSOR_DATA_SIZE])
177 memset(data, 0, SENSOR_DATA_SIZE);
184 if (ioctl(s_fdDev, ECS_IOCTL_GETDATA, data) < 0) {
191 data[0], data[1], data[2], data[3], data[4], data[5], data[6], data[7]);
197 Set calculated data to device driver.
198 @param[in] buf The order of input data depends on driver's specification.
283 Get layout information from device driver, i.e. platform data.
303 /* Get acceleration data. */
304 int16_t AKD_GetAccelerationData(int16_t data[3])
310 if (ioctl(s_fdDev, ECS_IOCTL_GET_ACCEL, data) < 0) {
316 __FUNCTION__, data[0], data[1], data[2]);