/* This function returns the address of the last valid sector  */
Ctrl_status virtual_read_capacity(uint32_t *uint32_t_nb_sector)
/* This function returns the address of the last valid sector  */
Ctrl_status virtual_read_capacity(uint32_t *uint32_t_nb_sector)
{
	if (b_vmem_unloaded) {
		return CTRL_NO_PRESENT;
	}
	if (VMEM_NB_SECTOR<8) {
		*uint32_t_nb_sector = 8-1;
	} else {
		*uint32_t_nb_sector = VMEM_NB_SECTOR- 1;
	}
	return CTRL_GOOD;
}