Advanced Distributed Systems module at HSLU
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
518 B

/*
* splitflap_positions.h
*
* Created on: 27.10.2022
* Author: jonas
*/
#ifndef SPLITFLAP_POSITIONS_H_
#define SPLITFLAP_POSITIONS_H_
#include "splitflap.h"
/* descriptor to identify the type of position */
typedef uint16_t Position_t;
/* return the position of the splitflap
* \param [out] stepsPosition Pointer to the amount of steps
* \return Returns ERR_OK if valid, otherwise ERR_FAILED
*/
uint8_t SF_Position_Get(Flap_t letter, Position_t* stepsPosition);
#endif /* SPLITFLAP_POSITIONS_H_ */