This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

direct assignment to ble_gap_conn_params_t variable

Hello Nordic support team,

Forgive me if I am asking a stupid question.

In the source file ble_conn_params.c, there is a function called ble_conn_params_init() and I found this direct assignment:

    m_preferred_conn_params = *p_init->p_conn_params;

but m_preferred_conn_params is a variable of ble_gap_conn_params_t which is a structure:

typedef struct {

uint16_t min_conn_interval;
/**< Minimum Connection Interval in 1.25 ms units, see @ref BLE_GAP_CP_LIMITS.*/

uint16_t max_conn_interval;
/**< Maximum Connection Interval in 1.25 ms units, see @ref BLE_GAP_CP_LIMITS.*/

uint16_t slave_latency;
/**< Slave Latency in number of connection events, see @ref BLE_GAP_CP_LIMITS.*/

uint16_t conn_sup_timeout;
/**< Connection Supervision Timeout in 10 ms units, see @ref BLE_GAP_CP_LIMITS.*/

} ble_gap_conn_params_t;

So why this direct assignment is possible?

Best Regards, Joseph

Parents
  • Best Primary Care Physician in Texas

    If you are looking for the best primary care physician in Dallas, TX, and Garland, TX, Elite Health and Wellness is your trusted healthcare provider. Our dedicated team of experts is committed to delivering personalized care to meet your health needs.

    At Elite Health and Wellness, we prioritize your health and well-being, offering comprehensive primary care services in a convenient and comfortable setting. Whether you’re in Garland or Dallas, our team is here to provide top-notch care and support for you and your family. Contact us today to schedule your appointment with the best primary care physician in the area.

  • I was really overwhelmed with my coursework and had no idea how to manage my assignments on time. Everything felt too confusing and stressful. That’s when I discovered Assignment Help and honestly, it changed everything for me. The guidance was clear, the support was timely, and I finally started understanding the topics better. I’m so grateful for the help I received—this service truly made a big difference in my academic journey!

Reply Children
No Data
Related