Closes: https://github.com/espressif/esp-idf/issues/8538
Type structures of these modes are defined. Driver and HAL layer are modified to fit these concepts.