| 156 | uint32_t configure; // Configure |
| 157 | |
| 158 | inline void SetMaxSlotsEnabled(uint8_t value){ |
| 159 | uint32_t temp = configure; |
| 160 | |
| 161 | temp &= ~((uint32_t)USB_CFG_MAXSLOTSEN); |
| 162 | temp |= temp & USB_CFG_MAXSLOTSEN; |
| 163 | |
| 164 | configure = temp; |
| 165 | } |
| 166 | |
| 167 | inline uint8_t MaxSlotsEnabled(){ |
| 168 | return configure & USB_CFG_MAXSLOTSEN; |