Home
last modified time | relevance | path

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

/AliOS-Things-master/components/ota/hal/
A Dota_hal_os.c164 void ota_crc16_init(ota_crc16_ctx *inCtx) in ota_crc16_init() argument
166 inCtx->crc = 0; in ota_crc16_init()
169 void ota_crc16_update(ota_crc16_ctx *inCtx, const void *inSrc, unsigned int inLen) in ota_crc16_update() argument
174 inCtx->crc = update_crc16(inCtx->crc, *src++); in ota_crc16_update()
178 void ota_crc16_final(ota_crc16_ctx *inCtx, unsigned short *outResult) in ota_crc16_final() argument
180 inCtx->crc = update_crc16(inCtx->crc, 0); in ota_crc16_final()
181 inCtx->crc = update_crc16(inCtx->crc, 0); in ota_crc16_final()
182 *outResult = inCtx->crc & 0xffffu; in ota_crc16_final()

Completed in 2 milliseconds