51 * @brief This function is the basic function of handling RFCommunication (<b>RobotFramework</b> <b>C</b>ommunication) for all the <b>Commands</b> related to the <b>Function</b> <b>DI</b> (Digital Input)\n
52 * This function is called from <b>FH_RFCommunication()</b>
53 *
54 * @param fh_RFCommunication_Message
55 * The message frame set by <b>RobotFramework</b>
111 * @brief This function handles <b>FH_DI_Commands_Init</b> command\n
112 * There are 3 main items handled in this function as following:\n
113 * 1 - Verifying the health of the received message\n
114 * 2 - Setting the addresses of the functions in <b>FH_Functions</b>, Section <b>FH_DI</b> (Digital Input) to an array of function pointer\n
115 * 3 - Calling the related function in <b>FH_Functions</b>, Section <b>FH_DI</b> (Digital Input) according to the first parameter of the Data in the message frame
116 *
117 * @param fh_RFCommunication_Message
118 * The message frame set by <b>RobotFramework</b>
154FH_DI_Init_S (FH_DI_Init_FuncPtr); // Setting the address of the functions
155
156// 3 - Calling the related function in <b>FH_Functions</b>, Section <b>FH_DI</b> (Digital Input) according to the first parameter of the Data in the message frame
157FH_ResetErrorInfo(&fh_ErrorInfo); // Reset Error Information to default
158 fh_ErrorInfo = FH_DI_Init_C (fh_RFCommunication_Message, FH_DI_Init_FuncPtr); // Calling the related function according to the first parameter of the Data in the message frame
159return fh_ErrorInfo;
160}
161
162/**
163 * @brief This function handles <b>FH_DI_Commands_GetStatus</b> command\n
164 * There are 3 main items handled in this function as following:\n
165 * 1 - Verifying the health of the received message\n
166 * 2 - Setting the addresses of the functions in <b>FH_Functions</b>, Section <b>FH_DI</b> (Digital Input) to an array of function pointer\n
167 * 3 - Calling the related function in <b>FH_Functions</b>, Section <b>FH_DI</b> (Digital Input) according to the first parameter of the Data in the message frame
168 *
169 * @param fh_RFCommunication_Message
170 * The message frame set by <b>RobotFramework</b>
207 FH_DI_GetStatus_S (FH_DI_GetStatus_FuncPtr); // Setting the address of the functions
208
209// 3 - Calling the related function in <b>FH_Functions</b>, Section <b>FH_DI</b> (Digital Input) according to the first parameter of the Data in the message frame
210FH_ResetErrorInfo(&fh_ErrorInfo); // Reset Error Information to default
211 fh_ErrorInfo = FH_DI_GetStatus_C (fh_RFCommunication_Message, FH_DI_Data, FH_DI_GetStatus_FuncPtr); // Calling the related function according to the first parameter of the Data in the message frame
212return fh_ErrorInfo;
213}
214
215/**
216 * @brief This function handles <b>FH_DI_ProcessCommand_InitMULTI</b> command\n
217 * With this function, mass initialization of up to 64 <b>DI</b> (Digital Input) is possible instead of just 1 <b>DI</b> (Digital Input)\n
218 * There are 3 main items handled in this function as following:\n
219 * 1 - Verifying the health of the received message\n
220 * 2 - Setting the addresses of the functions in <b>FH_Functions</b>, Section <b>FH_DI</b> (Digital Input) to an array of function pointer\n
221 * 3 - Calling the related function(s) in <b>FH_Functions</b>, Section <b>FH_DI</b> (Digital Input) according to the 8 first parameters of the Data in the message frame\n
222 * (The first 8 parameters resemble 64 bits and each bit resembles 1 <b>DI</b> (Digital Input) and if the bit is 1, the related <b>DI</b> (Digital Input) function will be called)
223 *
224 * @param fh_RFCommunication_Message
225 * The message frame set by <b>RobotFramework</b>
261FH_DI_Init_S (FH_DI_Init_FuncPtr); // Setting the address of the functions
262
263// 3 - Calling the related function(s) in <b>FH_Functions</b>, Section <b>FH_DI</b> (Digital Input) according to the 8 first parameters of the Data in the message frame
264// (The first 8 parameters resemble 64 bits and each bit resembles 1 <b>DI</b> (Digital Input) and if the bit is 1, the related <b>DI</b> (Digital Input) function will be called)
265FH_ResetErrorInfo(&fh_ErrorInfo); // Reset Error Information to default
266 fh_ErrorInfo = FH_DI_InitMULTI_C (fh_RFCommunication_Message, FH_DI_Init_FuncPtr); // Calling the related function according to the first 8 parameters of the Data in the message frame
267return fh_ErrorInfo;
268}
269
270/**
271 * @brief This function handles <b>FH_DI_ProcessCommand_GetStatusMULTI</b> command\n
272 * With this function, mass status get of up to 64 <b>DI</b> (Digital Input) is possible instead of just 1 <b>DI</b> (Digital Input)\n
273 * There are 3 main items handled in this function as following:\n
274 * 1 - Verifying the health of the received message\n
275 * 2 - Setting the addresses of the functions in <b>FH_Functions</b>, Section <b>FH_DI</b> (Digital Input) to an array of function pointer\n
276 * 3 - Calling the related function in <b>FH_Functions</b>, Section <b>FH_DI</b> (Digital Input) according to the 8 first parameters of the Data in the message frame\n
277 * (The first 8 parameters as mask resemble 64 bits and each bit resembles 1 <b>DI</b> (Digital Input) and if the bit is 1, the related <b>DI</b> (Digital Input) function will be called)
278 *
279 * @param fh_RFCommunication_Message
280 * The message frame set by <b>RobotFramework</b>
281 * @param FH_DI_MULTIData
282 * 64 bits (8 bytes) resemble 64 bits result and each bit resembles the status of 1 <b>DI</b> (Digital Input) as 1 or 0 of the corresponding bit in the first 8 bytes of the Data
318 FH_DI_GetStatus_S (FH_DI_GetStatus_FuncPtr); // Setting the address of the functions
319
320// 3 - Calling the related function in <b>FH_Functions</b>, Section <b>FH_DI</b> (Digital Input) according to the 8 first parameters of the Data in the message frame
321// (The first 8 parameters as mask resemble 64 bits and each bit resembles 1 <b>DI</b> (Digital Input) and if the bit is 1, the related <b>DI</b> (Digital Input) function will be called)
322FH_ResetErrorInfo(&fh_ErrorInfo); // Reset Error Information to default
323 fh_ErrorInfo = FH_DI_GetStatusMULTI_C (fh_RFCommunication_Message, FH_DI_MULTIData, FH_DI_GetStatus_FuncPtr); // Calling the related function according to the first 8 parameters of the Data in the message frame