Update project files and headers: ensure consistency and maintainability across the codebase.
This commit is contained in:
@@ -20,10 +20,37 @@ typedef struct
|
||||
} UartThreadArgs;
|
||||
|
||||
// UART handler thread
|
||||
/**
|
||||
* @brief Thread function to listen for UART data.
|
||||
*
|
||||
* This function is intended to be run as a separate thread. It continuously listens
|
||||
* for incoming data on a UART interface and processes the received data accordingly.
|
||||
*
|
||||
* @param arg Pointer to arguments required by the UART listener (typically a struct with UART configuration).
|
||||
* @return void* Returns NULL upon thread completion.
|
||||
*/
|
||||
void *uartListener(void *arg);
|
||||
|
||||
/**
|
||||
* @brief Parses an incoming RFID packet.
|
||||
*
|
||||
* This function processes the provided packet and extracts relevant information.
|
||||
*
|
||||
* @param _packet Pointer to the incoming packet data (array of BYTE).
|
||||
* @return uint16_t Parsed value.
|
||||
*/
|
||||
uint16_t parseIncommingPacket(BYTE *_packet);
|
||||
|
||||
/**
|
||||
* @brief Sends a data packet to a device over the specified UART interface.
|
||||
*
|
||||
* This function constructs and transmits a packet containing information about a person (node)
|
||||
* and a specified state to a device connected via UART.
|
||||
*
|
||||
* @param _uart The UART interface identifier to use for transmission.
|
||||
* @param _person Pointer to a node_t structure representing the person whose data is to be sent.
|
||||
* @param state The state value to include in the packet.
|
||||
*/
|
||||
void sendPacketToDevice(int _uart, node_t *_person, BYTE state);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user