Hi,
I need to use two or more different event lengths for different modes. The event length should be set based on the mode before establishing a connection. I found that sdc_hci_cmd_vs_event_length_set()
can be used for this purpose.
To implement this, I added the header:
#include <sdc_hci_vs.h>
Then, I tried to use the function with the following code:
uint8_t err;
static sdc_hci_cmd_vs_event_length_set_t event_length_param;
event_length_param.event_length_us = 5000;
err = sdc_hci_cmd_vs_event_length_set(&event_length_param);
if (err)
printk("Failed to set event length (err %d)\n", err);
else
printk("Event length set to %u units\n", event_length_param.event_length_us);
However, I am unable to compile the project due to the following error:
"Undefined reference to sdc_hci_cmd_vs_event_length_set
."
Could you help me understand why this error occurs? Are there additional header files or configurations required?
Can you please provide an example implementation to make integration easier?