u-RPC (Python API)  1.0.1
The u-RPC Remote Procedure Call framework
urpc_test.callee Namespace Reference

Functions

def _urpc_test_func_1 (x, y)
 u-RPC integer arguments test function. More...
 
def _urpc_test_func_2 (buf)
 u-RPC variable length data test function. More...
 
def _urpc_test_func_3 (test_case, string)
 u-RPC string type data test function. More...
 
def _urpc_test_func_4 ()
 u-RPC zero arguments and multiple return value test function. More...
 
def _urpc_test_func_5 (arg_types, args)
 u-RPC variable signature test function. More...
 
def set_up_test_functions (test_case, callee)
 Add test functions to callee endpoint. More...
 

Function Documentation

◆ _urpc_test_func_1()

def urpc_test.callee._urpc_test_func_1 (   x,
  y 
)
private

u-RPC integer arguments test function.

Parameters
xuint8_t integer
yuint8_t integer
Returns
Sum of the two integers

◆ _urpc_test_func_2()

def urpc_test.callee._urpc_test_func_2 (   buf)
private

u-RPC variable length data test function.

Parameters
bufA byte string buffer
Returns
The same byte string repeated three times

◆ _urpc_test_func_3()

def urpc_test.callee._urpc_test_func_3 (   test_case,
  string 
)
private

u-RPC string type data test function.

Parameters
test_caseTestCase instance
stringA string
Returns
Length of the string

◆ _urpc_test_func_4()

def urpc_test.callee._urpc_test_func_4 ( )
private

u-RPC zero arguments and multiple return value test function.

Returns
A number and a string in a tuple

◆ _urpc_test_func_5()

def urpc_test.callee._urpc_test_func_5 (   arg_types,
  args 
)
private

u-RPC variable signature test function.

Parameters
arg_typesTypes of u-RPC arguments
argsu-RPC arguments
Returns
Argument types and arguments without any change

◆ set_up_test_functions()

def urpc_test.callee.set_up_test_functions (   test_case,
  callee 
)

Add test functions to callee endpoint.

Parameters
test_caseTest case
calleeCallee u-RPC endpoint