Set power level of NFC08A1
Hi!
I am currently using the X-NUCLEO-NFC08A1 and NUCLEO-F411RE boards to develop NFC-V related applications. I am encountering an issue when trying to set the power level of the NFC08A1.
I use the following function to adjust the power level:
void set_power_level(uint8_t level) {
if (level > 15) {
level = 15; // Cap the level to a maximum of 15
}
uint16_t powerID = RFAL_ANALOG_CONFIG_CHIP_POWER_LVL_00 + level;
ReturnCode ret = rfalSetAnalogConfig(powerID);
if (ret != RFAL_ERR_NONE) {
platformLog("Error setting power level: %d\n", ret);
} else {
platformLog("Power level set to %d\n", level);
}
}However, this function does not seem to work as expected. I tested the tag reading range after calling set_power_level(0) and set_power_level(15), but there was no noticeable difference.
I am wondering if this is the correct way to set the power level.
Thank you.
