-
I see some functions defined with 7 arguments without default values, and called with 5 args. I'm converting this code to STM32 HAL library... Having difficulties with those function calls, any idea? Example Situation: MFRC522::StatusCode MFRC522::PCD_TransceiveData(byte *sendData, ///< Pointer to the data to transfer to the FIFO.
byte sendLen, ///< Number of bytes to transfer to the FIFO.
byte *backData, ///< nullptr or pointer to buffer if data should be read back after executing the command.
byte *backLen, ///< In: Max number of bytes to write to *backData. Out: The number of bytes returned.
byte *validBits, ///< In/Out: The number of valid bits in the last byte. 0 for 8 valid bits. Default nullptr.
byte rxAlign, ///< In: Defines the bit position in backData[0] for the first bit received. Default 0.
bool checkCRC ///< In: True => The last two bytes of the response is assumed to be a CRC_A that must be validated.
) Defined with 7 argument, and called with 5 args... status = PCD_TransceiveData(&command, 1, bufferATQA, bufferSize, &validBits); |
Beta Was this translation helpful? Give feedback.
Answered by
atahabaki
Mar 24, 2022
Replies: 2 comments
-
OK, my bad, their default value defined in header file, so sorry to interrupt... |
Beta Was this translation helpful? Give feedback.
0 replies
-
OK, my bad, their default value defined in header file, so sorry to interrupt... |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
atahabaki
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OK, my bad, their default value defined in header file, so sorry to interrupt...