Byggern
scp.h
1 #pragma once
2 
3 #include "../socket/socket.h"
4 
13 class SCP {
14 
15 private:
16 
21 
26 
27 
28 public:
29 
35  SCP(Socket* *sockets, uint8_t number_of_sockets);
36 
44  void Send(uint8_t priority, uint8_t command, uint8_t *data, uint8_t length_of_data);
45 
52  bool Receive(uint8_t &command, uint8_t *data, uint8_t &length_of_data);
53 };
bool Receive(uint8_t &command, uint8_t *data, uint8_t &length_of_data)
Definition: scp.cpp:7
void Send(uint8_t priority, uint8_t command, uint8_t *data, uint8_t length_of_data)
Definition: scp.cpp:24
Socket ** sockets
Definition: scp.h:20
A socket which defines the communication in a CAN channel.
Definition: socket.h:14
SCP (Simple Command Protocol) is an application layer protocol designed to send commands.
Definition: scp.h:13
uint8_t number_of_sockets
Definition: scp.h:25
SCP(Socket **sockets, uint8_t number_of_sockets)
Definition: scp.cpp:5