36.5.1.3 Reading the I/O Line Configuration
As for programming operation, reading configuration requires the user to first define which I/O line in the group x will be targeted by writing a 1 to the corresponding bit in the PIO_MSKRx. The value of the targeted I/O line is read in PIO_CFGRx.
If several bits are set in PIO_MSKRx, then the read configuration in PIO_CFGRx is the configuration of the I/O line with the lowest index.
Note that S_PIO_MSKRx and S_PIO_CFGRx must be used to read the configuration of a secure I/O line.