@@ -95,7 +95,7 @@ typedef struct mac_description_storage_size_s {
9595typedef enum mac_extended_address_type {
9696 MAC_EXTENDED_READ_ONLY , /** EUID64 which is unique */
9797 MAC_EXTENDED_DYNAMIC /** Configured MAC 64-bit address to RAM and Radio */
98- }mac_extended_address_type ;
98+ } mac_extended_address_type ;
9999//External MAC functions
100100
101101/**
@@ -113,14 +113,14 @@ typedef enum mac_extended_address_type {
113113 * @param id The identifier of the MLME primitive
114114 * @param data Primitive specific data (\see mlme.h)
115115 */
116- typedef void mlme_request (const mac_api_t * api , mlme_primitive id , const void * data );
116+ typedef void mlme_request (const mac_api_t * api , mlme_primitive id , const void * data );
117117
118118/**
119119 * @brief mcps_request MCPS_DATA request call
120120 * @param api API to handle the request
121121 * @param data MCPS-DATA.request specific values
122122 */
123- typedef void mcps_data_request (const mac_api_t * api , const mcps_data_req_t * data );
123+ typedef void mcps_data_request (const mac_api_t * api , const mcps_data_req_t * data );
124124
125125/**
126126 * @brief mcps_request MCPS_DATA with IE extions request call
@@ -131,15 +131,15 @@ typedef void mcps_data_request(const mac_api_t* api, const mcps_data_req_t *data
131131 *
132132 * Asynch data request is mac standard extension. asynch_channel_list include channel mask which channel message is requested to send.
133133 */
134- typedef void mcps_data_request_ext (const mac_api_t * api , const mcps_data_req_t * data , const mcps_data_req_ie_list_t * ie_ext , const struct channel_list_s * asynch_channel_list );
134+ typedef void mcps_data_request_ext (const mac_api_t * api , const mcps_data_req_t * data , const mcps_data_req_ie_list_t * ie_ext , const struct channel_list_s * asynch_channel_list );
135135
136136/**
137137 * @brief mcps_purge_request MCPS_PURGE request call
138138 * @param api API to handle the request
139139 * @param data MCPS-PURGE.request specific values
140140 * @return 0 in case of success, non-zero otherwise
141141 */
142- typedef uint8_t mcps_purge_request (const mac_api_t * api , const mcps_purge_t * data );
142+ typedef uint8_t mcps_purge_request (const mac_api_t * api , const mcps_purge_t * data );
143143
144144//Upper layer specific callback functions (will also be set by Upper layer after mac_api_t has been created and given to it)
145145
@@ -148,30 +148,30 @@ typedef uint8_t mcps_purge_request(const mac_api_t* api, const mcps_purge_t *dat
148148 * @param api The API which handled the response
149149 * @param data MCPS-DATA.confirm specific values
150150 */
151- typedef void mcps_data_confirm (const mac_api_t * api , const mcps_data_conf_t * data );
151+ typedef void mcps_data_confirm (const mac_api_t * api , const mcps_data_conf_t * data );
152152
153153/**
154154 * @brief mcps_data_confirm_ext MCPS-DATA confirm with Enhanced ACK payload is called as a response to MCPS-DATA request
155155 * @param api The API which handled the response
156156 * @param data MCPS-DATA.confirm specific values
157157 * @param conf_data Possible Confirmation Data
158158 */
159- typedef void mcps_data_confirm_ext (const mac_api_t * api , const mcps_data_conf_t * data , const mcps_data_conf_payload_t * conf_data );
159+ typedef void mcps_data_confirm_ext (const mac_api_t * api , const mcps_data_conf_t * data , const mcps_data_conf_payload_t * conf_data );
160160
161161/**
162162 * @brief mcps_data_indication MCPS-DATA indication is called when MAC layer has received data
163163 * @param api The API which handled the response
164164 * @param data MCPS-DATA.indication specific values
165165 */
166- typedef void mcps_data_indication (const mac_api_t * api , const mcps_data_ind_t * data );
166+ typedef void mcps_data_indication (const mac_api_t * api , const mcps_data_ind_t * data );
167167
168168/**
169169 * @brief mcps_data_indication MCPS-DATA indication is called when MAC layer has received data
170170 * @param api The API which handled the response
171171 * @param data MCPS-DATA.indication specific values
172172 * @param ie_ext Information element list
173173 */
174- typedef void mcps_data_indication_ext (const mac_api_t * api , const mcps_data_ind_t * data , const mcps_data_ie_list_t * ie_ext );
174+ typedef void mcps_data_indication_ext (const mac_api_t * api , const mcps_data_ind_t * data , const mcps_data_ie_list_t * ie_ext );
175175
176176/**
177177 * @brief mcps_ack_data_req_ext Callback for request IE elements and payload to enhanced ACK
@@ -180,52 +180,52 @@ typedef void mcps_data_indication_ext(const mac_api_t* api, const mcps_data_ind_
180180 * @param rssi Signal strength for received packet
181181 * @param lqi Link quality to neighbor
182182 */
183- typedef void mcps_ack_data_req_ext (const mac_api_t * api , mcps_ack_data_payload_t * data , int8_t rssi , uint8_t lqi );
183+ typedef void mcps_ack_data_req_ext (const mac_api_t * api , mcps_ack_data_payload_t * data , int8_t rssi , uint8_t lqi );
184184
185185
186186/**
187187 * @brief mcps_purge_confirm MCPS-PURGE confirm is called as a response to MCPS-PURGE request
188188 * @param api The API which handled the request
189189 * @param data MCPS-PURGE.confirm specific values
190190 */
191- typedef void mcps_purge_confirm ( const mac_api_t * api , mcps_purge_conf_t * data );
191+ typedef void mcps_purge_confirm (const mac_api_t * api , mcps_purge_conf_t * data );
192192
193193/**
194194 * @brief mlme_confirm One of the MLME primitive confirm callbacks
195195 * @param api API which handled the response
196196 * @param id The identifier of the MLME primitive
197197 * @param data Primitive specific data (\see mlme.h)
198198 */
199- typedef void mlme_confirm (const mac_api_t * api , mlme_primitive id , const void * data );
199+ typedef void mlme_confirm (const mac_api_t * api , mlme_primitive id , const void * data );
200200
201201/**
202202 * @brief mlme_indication One of the
203203 * @param api API which handled the response
204204 * @param id The identifier of the MLME primitive
205205 * @param data Primitive specific data (\see mlme.h)
206206 */
207- typedef void mlme_indication (const mac_api_t * api , mlme_primitive id , const void * data );
207+ typedef void mlme_indication (const mac_api_t * api , mlme_primitive id , const void * data );
208208
209209/**
210210 * @brief Set extended address from MAC
211211 * @param api API to handle the request
212212 * @param mac64 pointer
213213 */
214- typedef int8_t mac_ext_mac64_address_set (const mac_api_t * api , const uint8_t * mac64 );
214+ typedef int8_t mac_ext_mac64_address_set (const mac_api_t * api , const uint8_t * mac64 );
215215
216216/**
217217 * @brief Read extended address from MAC
218218 * @param api API to handle the request
219219 * @param mac64_buf Pointer where mac extended address can be written
220220 */
221- typedef int8_t mac_ext_mac64_address_get (const mac_api_t * api , mac_extended_address_type type , uint8_t * mac64_buf );
221+ typedef int8_t mac_ext_mac64_address_get (const mac_api_t * api , mac_extended_address_type type , uint8_t * mac64_buf );
222222
223223/**
224224 * @brief Read MAC security description storage sizes from MAC
225225 * @param api API to handle the request
226226 * @param buffer Pointer where supported sizes can be written
227227 */
228- typedef int8_t mac_storage_decription_sizes_get (const mac_api_t * api , mac_description_storage_size_t * buffer );
228+ typedef int8_t mac_storage_decription_sizes_get (const mac_api_t * api , mac_description_storage_size_t * buffer );
229229
230230/**
231231 * @brief mac_api_initialize Initialises MAC layer into use, callbacks must be non-NULL.
0 commit comments