profile features for data-base creation

1 post / 0 new
Anonymous (not verified)
profile features for data-base creation

Hi,
I want to write the app file for sample128. There are some parts of code I don't know how to initialize:
1. when creating data-base, what is the features parameter property ( req->features = APP_SAMPLE128_FEATURES;) of the request sending from the application?

空白app_dis_create_db_send(空白)
{
// Add DIS in the database
struct sample128_create_db_req *req = KE_MSG_ALLOC(SAMPLE128_CREATE_DB_REQ,
TASK_SAMPLE128, TASK_APP,
sample128_create_db_req);

req->features = APP_SAMPLE128_FEATURES;

// Send the message
ke_msg_send(req);
}
2.for enabling profile, how should I initialize different parameters of the request such as sample128_1_val, sample128_2_val, and feature?

void app_sample128_enable_prf(uint16_t conhdl)
{
// Allocate the message
struct sample128_enable_req *req = KE_MSG_ALLOC(SAMPLE128_ENABLE_REQ,
TASK_SAMPLE128, TASK_APP,
sample128_enable_req);

// Fill in the parameter structure
req->conhdl = conhdl;
req->sec_lvl = PERM(SVC, ENABLE);
req->sample128_1_val = ?;
req->sample128_2_val = ?;
req->feature = ?;

// Send the message
ke_msg_send(req);

}

can anybody help me?
Thanks