Skip to content

Multirole device #52

@eugene345

Description

@eugene345

Hi,

I'd like to use eRPC for my current project, since I have a good experience of using it in past.
I have an embedded system (Cortex M4 MCU) and use C API.
2 devices can be daisy chained and eRPC used to communicate between them. In this case one device configured as master and another one - as slave. So, depending on configuration I need to switch device between client and server roles.

This is good example of what I need (I can run it as server or as client):
https://github.com/EmbeddedRPC/erpc/blob/master/examples/matrix_multiply_tcp_python/matrix_multiply.py

But when using C API, there is an issue. Let's say we have erpcMatrixMultiply function to call on a client side. When I code server I have to define erpcMatrixMultiply in my code. But function with this name is already defined in erpc_matrix_multiply_client.cpp

Thanks,
Eugene

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions