openaliro
Aliro reader: UWB/CCC core and ESP32-S3/C5/C6 port
Loading...
Searching...
No Matches
ccc_sts.c File Reference

— DW3000 STS register load for the CCC ranging path. More...

#include "ccc_sts.h"
#include <errno.h>
#include "woz_bytes.h"
#include <deca_device_api.h>
Include dependency graph for ccc_sts.c:

Functions

int ccc_sts_apply (const uint8_t dursk[CCC_DURSK_LEN], const uint8_t sts_v[CCC_STS_V_LEN])
 Load one PPDU's STS key and IV into the DW3000 STS registers (chip must be idle).
 

Detailed Description

— DW3000 STS register load for the CCC ranging path.

Function Documentation

◆ ccc_sts_apply()

int ccc_sts_apply ( const uint8_t  dursk[CCC_DURSK_LEN],
const uint8_t  sts_v[CCC_STS_V_LEN] 
)

Load one PPDU's STS key and IV into the DW3000 STS registers (chip must be idle).

Load one PPDU's STS key + IV into the DW3000 STS registers (chip must be idle).

Parameters
dursk16-byte derived URSK (key material).
sts_v16-byte STS-V (initialization vector).
Returns
0 on success, -EINVAL if inputs are null.