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 Reply Children
  • Finding reliable assignment help Sydney is crucial for students striving for academic excellence. With the demanding coursework and tight deadlines, seeking assistance ensures quality submissions and reduced stress. Professional services in Sydney offer tailored support across various subjects, ensuring students receive expert guidance to meet their academic goals. From essay writing to complex research papers, these services provide personalized assistance, adhering to university standards and guidelines. With a team of experienced tutors and writers, assignment help in Sydney not only boosts grades but also enhances comprehension and mastery of subjects. Invest in your academic success today with trusted assignment help services in Sydney.

Related