more const for iso14443a
This commit is contained in:
1 parent
8af8723528
commit
efce76db53
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -188,7 +188,7 @@ void printHf14aConfig(void) {
|
|||||||
* @brief setSamplingConfig
|
* @brief setSamplingConfig
|
||||||
* @param sc
|
* @param sc
|
||||||
*/
|
*/
|
||||||
void setHf14aConfig(hf14a_config *hc) {
|
void setHf14aConfig(const hf14a_config *hc) {
|
||||||
|
|
||||||
if ((hc->forceanticol >= 0) && (hc->forceanticol <= 2))
|
if ((hc->forceanticol >= 0) && (hc->forceanticol <= 2))
|
||||||
hf14aconfig.forceanticol = hc->forceanticol;
|
hf14aconfig.forceanticol = hc->forceanticol;
|
||||||
@@ -564,7 +564,7 @@ RAMFUNC int ManchesterDecoding(uint8_t bit, uint16_t offset, uint32_t non_real_t
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Thinfilm, Kovio mangels ISO14443A in the way that they don't use start bit nor parity bits.
|
// Thinfilm, Kovio mangles ISO14443A in the way that they don't use start bit nor parity bits.
|
||||||
static RAMFUNC int ManchesterDecoding_Thinfilm(uint8_t bit) {
|
static RAMFUNC int ManchesterDecoding_Thinfilm(uint8_t bit) {
|
||||||
Demod.twoBits = (Demod.twoBits << 8) | bit;
|
Demod.twoBits = (Demod.twoBits << 8) | bit;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -121,7 +121,7 @@ typedef enum {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void printHf14aConfig(void);
|
void printHf14aConfig(void);
|
||||||
void setHf14aConfig(hf14a_config *hc);
|
void setHf14aConfig(const hf14a_config *hc);
|
||||||
hf14a_config *getHf14aConfig(void);
|
hf14a_config *getHf14aConfig(void);
|
||||||
void iso14a_set_timeout(uint32_t timeout);
|
void iso14a_set_timeout(uint32_t timeout);
|
||||||
uint32_t iso14a_get_timeout(void);
|
uint32_t iso14a_get_timeout(void);
|
||||||
|
|||||||
Reference in new issue
Block a user