mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-26 09:41:01 +00:00
mesh: add mesh_pdu_ctl
This commit is contained in:
parent
cd16791d63
commit
5abfa38957
@ -383,6 +383,17 @@ uint8_t mesh_access_transactions_get_next_transaction_id(void){
|
||||
return mesh_transaction_id_counter;
|
||||
}
|
||||
|
||||
uint16_t mesh_pdu_ctl(mesh_pdu_t * pdu){
|
||||
switch (pdu->pdu_type){
|
||||
case MESH_PDU_TYPE_TRANSPORT:
|
||||
return mesh_transport_ctl((mesh_transport_pdu_t*) pdu);
|
||||
case MESH_PDU_TYPE_NETWORK:
|
||||
return mesh_network_control((mesh_network_pdu_t *) pdu);
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
uint16_t mesh_pdu_ttl(mesh_pdu_t * pdu){
|
||||
switch (pdu->pdu_type){
|
||||
case MESH_PDU_TYPE_TRANSPORT:
|
||||
|
@ -214,6 +214,7 @@ void mesh_model_publication_start(mesh_model_t * mesh_model);
|
||||
void mesh_model_publication_stop(mesh_model_t * mesh_model);
|
||||
|
||||
// Mesh PDU Getter
|
||||
uint16_t mesh_pdu_ctl(mesh_pdu_t * pdu);
|
||||
uint16_t mesh_pdu_ttl(mesh_pdu_t * pdu);
|
||||
uint16_t mesh_pdu_src(mesh_pdu_t * pdu);
|
||||
uint16_t mesh_pdu_dst(mesh_pdu_t * pdu);
|
||||
|
Loading…
x
Reference in New Issue
Block a user