@@ -372,9 +372,8 @@ int nrf_rpc_init(nrf_rpc_err_handler_t err_handler);
372
372
* @return 0 on success or negative error code if a transport layer
373
373
* reported a sending error.
374
374
*/
375
- static inline int nrf_rpc_cmd (const struct nrf_rpc_group * group , uint8_t cmd ,
376
- uint8_t * packet , size_t len ,
377
- nrf_rpc_handler_t handler , void * handler_data );
375
+ int nrf_rpc_cmd (const struct nrf_rpc_group * group , uint8_t cmd , uint8_t * packet ,
376
+ size_t len , nrf_rpc_handler_t handler , void * handler_data );
378
377
379
378
/** @brief Send a command and get response as an output parameter.
380
379
*
@@ -394,9 +393,8 @@ static inline int nrf_rpc_cmd(const struct nrf_rpc_group *group, uint8_t cmd,
394
393
* @return 0 on success or negative error code if a transport
395
394
* layer reported a sending error.
396
395
*/
397
- static inline int nrf_rpc_cmd_rsp (const struct nrf_rpc_group * group ,
398
- uint8_t cmd , uint8_t * packet , size_t len ,
399
- const uint8_t * * rsp_packet , size_t * rsp_len );
396
+ int nrf_rpc_cmd_rsp (const struct nrf_rpc_group * group , uint8_t cmd , uint8_t * packet ,
397
+ size_t len , const uint8_t * * rsp_packet , size_t * rsp_len );
400
398
401
399
/** @brief Send a command, provide callback to handle response and pass any
402
400
* error to an error handler.
@@ -415,10 +413,8 @@ static inline int nrf_rpc_cmd_rsp(const struct nrf_rpc_group *group,
415
413
* undefined if the handler will be called.
416
414
* @param handler_data Opaque pointer that will be passed to `handler`.
417
415
*/
418
- static inline void nrf_rpc_cmd_no_err (const struct nrf_rpc_group * group ,
419
- uint8_t cmd , uint8_t * packet , size_t len ,
420
- nrf_rpc_handler_t handler ,
421
- void * handler_data );
416
+ void nrf_rpc_cmd_no_err (const struct nrf_rpc_group * group , uint8_t cmd , uint8_t * packet ,
417
+ size_t len , nrf_rpc_handler_t handler , void * handler_data );
422
418
423
419
/** @brief Send a command, get response as an output parameter and pass any
424
420
* error to an error handler.
@@ -434,11 +430,9 @@ static inline void nrf_rpc_cmd_no_err(const struct nrf_rpc_group *group,
434
430
* @param[out] rsp_packet Packet containing the response or NULL on error.
435
431
* @param[out] rsp_len Length of `rsp_packet`.
436
432
*/
437
- static inline void nrf_rpc_cmd_rsp_no_err (const struct nrf_rpc_group * group ,
438
- uint8_t cmd , uint8_t * packet ,
439
- size_t len ,
440
- const uint8_t * * rsp_packet ,
441
- size_t * rsp_len );
433
+ void nrf_rpc_cmd_rsp_no_err (const struct nrf_rpc_group * group , uint8_t cmd ,
434
+ uint8_t * packet , size_t len , const uint8_t * * rsp_packet ,
435
+ size_t * rsp_len );
442
436
443
437
/** @brief Send an event.
444
438
*
@@ -523,59 +517,6 @@ void nrf_rpc_err(int code, enum nrf_rpc_err_src src,
523
517
const struct nrf_rpc_group * group , uint8_t id ,
524
518
uint8_t packet_type );
525
519
526
- /* Inline definitions. */
527
-
528
- static inline int nrf_rpc_cmd (const struct nrf_rpc_group * group , uint8_t cmd ,
529
- uint8_t * packet , size_t len ,
530
- nrf_rpc_handler_t handler , void * handler_data )
531
- {
532
- int nrf_rpc_cmd_common (const struct nrf_rpc_group * group , uint32_t cmd ,
533
- uint8_t * packet , size_t len , void * ptr1 ,
534
- void * ptr2 );
535
-
536
- return nrf_rpc_cmd_common (group , cmd , packet , len , handler ,
537
- handler_data );
538
- }
539
-
540
- static inline int nrf_rpc_cmd_rsp (const struct nrf_rpc_group * group ,
541
- uint8_t cmd , uint8_t * packet , size_t len ,
542
- const uint8_t * * rsp_packet , size_t * rsp_len )
543
- {
544
- int nrf_rpc_cmd_common (const struct nrf_rpc_group * group , uint32_t cmd ,
545
- uint8_t * packet , size_t len , void * ptr1 ,
546
- void * ptr2 );
547
-
548
- return nrf_rpc_cmd_common (group , cmd | 0x10000 , packet , len , rsp_packet ,
549
- rsp_len );
550
- }
551
-
552
- static inline void nrf_rpc_cmd_no_err (const struct nrf_rpc_group * group ,
553
- uint8_t cmd , uint8_t * packet , size_t len ,
554
- nrf_rpc_handler_t handler ,
555
- void * handler_data )
556
- {
557
- void nrf_rpc_cmd_common_no_err (const struct nrf_rpc_group * group ,
558
- uint32_t cmd , uint8_t * packet ,
559
- size_t len , void * ptr1 , void * ptr2 );
560
-
561
- nrf_rpc_cmd_common_no_err (group , cmd , packet , len , handler ,
562
- handler_data );
563
- }
564
-
565
- static inline void nrf_rpc_cmd_rsp_no_err (const struct nrf_rpc_group * group ,
566
- uint8_t cmd , uint8_t * packet ,
567
- size_t len ,
568
- const uint8_t * * rsp_packet ,
569
- size_t * rsp_len )
570
- {
571
- void nrf_rpc_cmd_common_no_err (const struct nrf_rpc_group * group ,
572
- uint32_t cmd , uint8_t * packet ,
573
- size_t len , void * ptr1 , void * ptr2 );
574
-
575
- nrf_rpc_cmd_common_no_err (group , cmd | 0x10000 , packet , len , rsp_packet ,
576
- rsp_len );
577
- }
578
-
579
520
/** @brief Allocates buffer for a packet.
580
521
*
581
522
* Memory is automatically deallocated after packet sending. If not, @ref nrf_rpc_free_tx_buf
0 commit comments