Wirepas SDK
multicast.h
Go to the documentation of this file.
1
/* Copyright 2018 Wirepas Ltd. All Rights Reserved.
2
*
3
* See file LICENSE.txt for full license details.
4
*
5
*/
6
#ifndef _MULTICAST_H_
7
#define _MULTICAST_H_
8
9
#include "
api.h
"
10
11
// Amount of multicast addresses supported. Must fit to storage.
12
#define MULTICAST_ADDRESS_AMOUNT 10
13
14
// Definition for multicast address
15
typedef
struct
__attribute__ ((__packed__))
16
{
17
uint8_t addr[3];
// LSB first
18
}
multicast_group_addr_t
;
19
26
bool
Multicast_isGroupCb
(
app_addr_t
group_addr);
27
34
app_res_e
Multicast_setGroups
(
const
uint8_t * groups);
35
43
app_res_e
Multicast_getGroups
(uint8_t * groups);
44
45
#endif
/* SOURCE_DUALMCU_APP_WAPS_SAP_MULTICAST_H_ */
Multicast_getGroups
app_res_e Multicast_getGroups(uint8_t *groups)
Get multicast groups.
app_res_e
app_res_e
Definition:
wms_app.h:201
Multicast_isGroupCb
bool Multicast_isGroupCb(app_addr_t group_addr)
Callback for querying group callback.
Multicast_setGroups
app_res_e Multicast_setGroups(const uint8_t *groups)
Set multicast groups.
app_addr_t
uint32_t app_addr_t
Definition:
wms_app.h:228
multicast_group_addr_t
Definition:
multicast.h:15
api.h