Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 16 of 16) sorted by relevance

/vendor/hisilicon/hispark_pegasus/demo/samart_environmental_monitoring_system_demo/environment/
Daht20.c96 static uint32_t AHT20_Read(uint8_t* buffer, uint32_t buffLen)
98 uint32_t retval = IoTI2cRead(AHT20_I2C_IDX, AHT20_READ_ADDR, buffer, buffLen);
106 static uint32_t AHT20_Write(uint8_t* buffer, uint32_t buffLen)
108 uint32_t retval = IoTI2cWrite(AHT20_I2C_IDX, AHT20_WRITE_ADDR, buffer, buffLen);
142 uint8_t buffer[AHT20_STATUS_RESPONSE_MAX] = { AHT20_CMD_STATUS };
143 memset_s(&buffer, sizeof(buffer), 0x0, sizeof(buffer));
150 retval = AHT20_Read(buffer, sizeof(buffer));
155 if (AHT20_STATUS_BUSY(buffer[0]) || !AHT20_STATUS_CALI(buffer[0])) {
184 uint8_t buffer[AHT20_STATUS_RESPONSE_MAX] = { 0 };
185 memset_s(&buffer, sizeof(buffer), 0x0, sizeof(buffer));
[all …]
/vendor/hisilicon/hispark_pegasus/demo/i2caht20_demo/src/
Daht20.c100 static uint32_t AHT20_Read(uint8_t* buffer, uint32_t buffLen)
103 data.receiveBuf = buffer;
113 static uint32_t AHT20_Write(uint8_t* buffer, uint32_t buffLen)
116 data.sendBuf = buffer;
120 printf("I2cWrite(%02X) failed, %0X!\n", buffer[0], retval);
152 uint8_t buffer[AHT20_STATUS_RESPONSE_MAX];
153 reval = memset_s(&buffer, sizeof(buffer), 0x0, sizeof(buffer));
163 retval = AHT20_Read(buffer, sizeof(buffer));
168 if (AHT20_STATUS_BUSY(buffer[0]) || !AHT20_STATUS_CALI(buffer[0])) {
197 uint8_t buffer[AHT20_STATUS_RESPONSE_MAX];
[all …]
/vendor/hisilicon/hispark_pegasus/demo/environment_test_demo/
Daht20.c100 static uint32_t AHT20_Read(uint8_t* buffer, uint32_t buffLen)
103 data.receiveBuf = buffer;
113 static uint32_t AHT20_Write(uint8_t* buffer, uint32_t buffLen)
116 data.sendBuf = buffer;
120 printf("I2cWrite(%02X) failed, %0X!\n", buffer[0], retval);
152 uint8_t buffer[AHT20_STATUS_RESPONSE_MAX] = { AHT20_CMD_STATUS };
153 memset_s(&buffer, sizeof(buffer), 0x0, sizeof(buffer));
160 retval = AHT20_Read(buffer, sizeof(buffer));
165 if (AHT20_STATUS_BUSY(buffer[0]) || !AHT20_STATUS_CALI(buffer[0])) {
194 uint8_t buffer[AHT20_STATUS_RESPONSE_MAX] = { 0 };
[all …]
Doled_ssd1306.c46 uint8_t buffer[] = {regAddr, byte}; in I2cWiteByte() local
49 i2cData.sendBuf = buffer; in I2cWiteByte()
50 i2cData.sendLen = sizeof(buffer)/sizeof(buffer[0]); in I2cWiteByte()
/vendor/hihope/rk3568/bluetooth/src/
Dupio.c281 char buffer = '0'; in upio_set_bluetooth_power() local
285 buffer = '0'; in upio_set_bluetooth_power()
289 buffer = '1'; in upio_set_bluetooth_power()
324 sz = write(fd, &buffer, 1); in upio_set_bluetooth_power()
353 char buffer; in upio_set() local
375 buffer = '1'; in upio_set()
377 buffer = '0'; in upio_set()
386 if (write(fd, &buffer, 1) < 0) { in upio_set()
463 buffer = '0'; in upio_set()
466 buffer = '1'; in upio_set()
[all …]
/vendor/hisilicon/hispark_pegasus/demo/hello_world_demo/
Doled_ssd1306.c50 uint8_t buffer[] = {regAddr, byte}; in I2cWiteByte() local
53 i2cData.sendBuf = buffer; in I2cWiteByte()
54 i2cData.sendLen = sizeof(buffer) / sizeof(buffer[0]); in I2cWiteByte()
/vendor/hihope/rk3568_mini_system/hdf_config/uhdf/media_codec/
Dmedia_codec_capabilities.hcs7 // allocateMask: 0x01, Input buffer allocated within the Codec module;
8 // allocateMask: 0x02, Input buffer allocated by an external user;
9 // allocateMask: 0x04, Output buffer allocated within the Codec module;
10 // allocateMask: 0x08, Output buffer allocated by an external user.
Dcodec_component_capabilities.hcs7 // allocateMask: 0x01, Input buffer allocated within the Codec module;
8 // allocateMask: 0x02, Input buffer allocated by an external user;
9 // allocateMask: 0x04, Output buffer allocated within the Codec module;
10 // allocateMask: 0x08, Output buffer allocated by an external user.
/vendor/hihope/rk3568/hdf_config/uhdf/media_codec/
Dmedia_codec_capabilities.hcs7 // allocateMask: 0x01, Input buffer allocated within the Codec module;
8 // allocateMask: 0x02, Input buffer allocated by an external user;
9 // allocateMask: 0x04, Output buffer allocated within the Codec module;
10 // allocateMask: 0x08, Output buffer allocated by an external user.
Dcodec_component_capabilities.hcs7 // allocateMask: 0x01, Input buffer allocated within the Codec module;
8 // allocateMask: 0x02, Input buffer allocated by an external user;
9 // allocateMask: 0x04, Output buffer allocated within the Codec module;
10 // allocateMask: 0x08, Output buffer allocated by an external user.
Dcodec_adapter_capabilities.hcs7 // allocateMask: 0x01, Input buffer allocated within the Codec module;
8 // allocateMask: 0x02, Input buffer allocated by an external user;
9 // allocateMask: 0x04, Output buffer allocated within the Codec module;
10 // allocateMask: 0x08, Output buffer allocated by an external user.
/vendor/hisilicon/hispark_taurus/hals/utils/token/
Dhal_token.c110 static int32_t ReadTokenFile(const char* path, const char* fileName, char* buffer, uint32_t bufferL… in ReadTokenFile() argument
112 if (path == NULL || fileName == NULL || buffer == NULL || bufferLen == 0) { in ReadTokenFile()
137 if (fread(buffer, fileSize, 1, fp) != 1) { in ReadTokenFile()
179 static int32_t ReadTokenRawData(const char* path, const char* fileName, char* buffer, uint32_t buff… in ReadTokenRawData() argument
183 int ret = ReadTokenFile(path, fileName, buffer, bufferLen); in ReadTokenRawData()
/vendor/hisilicon/hispark_taurus_linux/hals/utils/token/
Dhal_token.c110 static int32_t ReadTokenFile(const char* path, const char* fileName, char* buffer, uint32_t bufferL… in ReadTokenFile() argument
112 if (path == NULL || fileName == NULL || buffer == NULL || bufferLen == 0) { in ReadTokenFile()
137 if (fread(buffer, fileSize, 1, fp) != 1) { in ReadTokenFile()
179 static int32_t ReadTokenRawData(const char* path, const char* fileName, char* buffer, uint32_t buff… in ReadTokenRawData() argument
183 int ret = ReadTokenFile(path, fileName, buffer, bufferLen); in ReadTokenRawData()
/vendor/hisilicon/hispark_pegasus/hals/utils/token/
Dhal_token.c66 static int32_t flashRead(uint32_t addr, uint32_t size, uint8_t *buffer) in flashRead() argument
74 return hi_flash_read(addr, len, buffer); in flashRead()
77 static int32_t flashWrite(uint32_t addr, uint32_t size, uint8_t *buffer) in flashWrite() argument
85 return hi_flash_write(addr, len, buffer, 0); in flashWrite()
/vendor/hisilicon/hispark_pegasus/demo/robot_demo/robot_car/ssd1306/
Dssd1306.h194 void ssd1306_WriteData(uint8_t* buffer, size_t buff_size);
/vendor/hisilicon/watchos/patches/
Dhi3516dv300.patch3178 +# Frame buffer Devices
3189 +# Frame buffer hardware drivers
6352 +# Frame buffer Devices
6363 +# Frame buffer hardware drivers
9493 +# Frame buffer Devices
9504 +# Frame buffer hardware drivers
11759 + /* allocate buffer for kmsg */
12099 + /* allocate buffer for kmsg */
12168 * Allocate a DMA buffer for 'dev' of size 'size' using the
16893 + /* buffer address */
[all …]