added header file with first functions
wrote functions to work with the owner data
This commit is contained in:
26
project/Core/Inc/UDP_broadcast.h
Normal file
26
project/Core/Inc/UDP_broadcast.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* UDP_broadcast.h
|
||||
*
|
||||
* Created on: Nov 6, 2023
|
||||
* Author: joran
|
||||
*/
|
||||
|
||||
#ifndef INC_UDP_BROADCAST_H_
|
||||
#define INC_UDP_BROADCAST_H_
|
||||
|
||||
typedef struct {
|
||||
char* name;
|
||||
char* surname;
|
||||
uint8_t mac_address[6];
|
||||
char* reply;
|
||||
}owner_details_t;
|
||||
|
||||
uint8_t set_owner_details_name(owner_details_t*, char* );
|
||||
uint8_t set_owner_details_sirname(owner_details_t*, char* );
|
||||
uint8_t set_owner_details(owner_details_t*, char* , char*);
|
||||
|
||||
char* get_owner_details_name(owner_details_t);
|
||||
char* get_owner_details_surname(owner_details_t);
|
||||
|
||||
|
||||
#endif /* INC_UDP_BROADCAST_H_ */
|
||||
Reference in New Issue
Block a user