#pragma once

namespace STM32I2C {
	enum device : uint8_t
	{
		i2c1 = 0,
		i2c2,
		i2c3,
		i2c4,
		NUM_DEVICES
	};

	/// Pull-up configuration options for an I2C master device.
	enum class pullups : uint8_t
	{
		/// External pullups exist for SDA and SCL.
		external = 0,
		/// Use internal pull-ups on SDA and SCL
		internal
	};

	/// Valid I2C bus baudrate options.
	/// Numeric values are in Hz.
	enum class baud : uint8_t
	{
		// 100 kHz
		standard = 0,
		// 400 kHz,
		fast,
		SupportedTimings
	};
}
