![]() |
G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
|
Macros | |
| #define | __DDL_I2C_FREQ_HZ_TO_MHZ(__PCLK__) |
| Convert Peripheral Clock Frequency in Mhz. | |
| #define | __DDL_I2C_FREQ_MHZ_TO_HZ(__PCLK__) |
| Convert Peripheral Clock Frequency in Hz. | |
| #define | __DDL_I2C_RISE_TIME(__FREQRANGE__, __SPEED__) |
| Compute I2C Clock rising time. | |
| #define | __DDL_I2C_SPEED_TO_CCR(__PCLK__, __SPEED__, __DUTYCYCLE__) |
| Compute Speed clock range to a Clock Control Register (I2C_CLKCTRL_CLKS) value. | |
| #define | __DDL_I2C_SPEED_STANDARD_TO_CCR(__PCLK__, __SPEED__) |
| Compute Speed Standard clock range to a Clock Control Register (I2C_CLKCTRL_CLKS) value. | |
| #define | __DDL_I2C_SPEED_FAST_TO_CCR(__PCLK__, __SPEED__, __DUTYCYCLE__) |
| Compute Speed Fast clock range to a Clock Control Register (I2C_CLKCTRL_CLKS) value. | |
| #define | __DDL_I2C_10BIT_ADDRESS(__ADDRESS__) |
| Get the Least significant bits of a 10-Bits address. | |
| #define | __DDL_I2C_10BIT_HEADER_WRITE(__ADDRESS__) |
| Convert a 10-Bits address to a 10-Bits header with Write direction. | |
| #define | __DDL_I2C_10BIT_HEADER_READ(__ADDRESS__) |
| Convert a 10-Bits address to a 10-Bits header with Read direction. | |
| #define __DDL_I2C_10BIT_ADDRESS | ( | __ADDRESS__ | ) |
Get the Least significant bits of a 10-Bits address.
| __ADDRESS__ | This parameter must be a value of a 10-Bits slave address. |
| Value | between Min_Data=0x00 and Max_Data=0xFF |
Definition at line 395 of file g32r4xx_ddl_i2c.h.
| #define __DDL_I2C_10BIT_HEADER_READ | ( | __ADDRESS__ | ) |
Convert a 10-Bits address to a 10-Bits header with Read direction.
| __ADDRESS__ | This parameter must be a value of a 10-Bits slave address. |
| Value | between Min_Data=0xF1 and Max_Data=0xF7 |
Definition at line 409 of file g32r4xx_ddl_i2c.h.
| #define __DDL_I2C_10BIT_HEADER_WRITE | ( | __ADDRESS__ | ) |
Convert a 10-Bits address to a 10-Bits header with Write direction.
| __ADDRESS__ | This parameter must be a value of a 10-Bits slave address. |
| Value | between Min_Data=0xF0 and Max_Data=0xF6 |
Definition at line 402 of file g32r4xx_ddl_i2c.h.
| #define __DDL_I2C_FREQ_HZ_TO_MHZ | ( | __PCLK__ | ) |
Convert Peripheral Clock Frequency in Mhz.
| __PCLK__ | This parameter must be a value of peripheral clock (in Hz). |
| Value | of peripheral clock (in Mhz) |
Definition at line 339 of file g32r4xx_ddl_i2c.h.
| #define __DDL_I2C_FREQ_MHZ_TO_HZ | ( | __PCLK__ | ) |
Convert Peripheral Clock Frequency in Hz.
| __PCLK__ | This parameter must be a value of peripheral clock (in Mhz). |
| Value | of peripheral clock (in Hz) |
Definition at line 346 of file g32r4xx_ddl_i2c.h.
| #define __DDL_I2C_RISE_TIME | ( | __FREQRANGE__, | |
| __SPEED__ ) |
Compute I2C Clock rising time.
| __FREQRANGE__ | This parameter must be a value of peripheral clock (in Mhz). |
| __SPEED__ | This parameter must be a value lower than 400kHz (in Hz). |
| Value | between Min_Data=0x02 and Max_Data=0xFF |
Definition at line 354 of file g32r4xx_ddl_i2c.h.
| #define __DDL_I2C_SPEED_FAST_TO_CCR | ( | __PCLK__, | |
| __SPEED__, | |||
| __DUTYCYCLE__ ) |
Compute Speed Fast clock range to a Clock Control Register (I2C_CLKCTRL_CLKS) value.
| __PCLK__ | This parameter must be a value of peripheral clock (in Hz). |
| __SPEED__ | This parameter must be a value between Min_Data=100Khz and Max_Data=400Khz (in Hz). |
| __DUTYCYCLE__ | This parameter can be one of the following values: |
| Value | between Min_Data=0x001 and Max_Data=0xFFF |
Definition at line 386 of file g32r4xx_ddl_i2c.h.
| #define __DDL_I2C_SPEED_STANDARD_TO_CCR | ( | __PCLK__, | |
| __SPEED__ ) |
Compute Speed Standard clock range to a Clock Control Register (I2C_CLKCTRL_CLKS) value.
| __PCLK__ | This parameter must be a value of peripheral clock (in Hz). |
| __SPEED__ | This parameter must be a value lower than 100kHz (in Hz). |
| Value | between Min_Data=0x004 and Max_Data=0xFFF. |
Definition at line 375 of file g32r4xx_ddl_i2c.h.
| #define __DDL_I2C_SPEED_TO_CCR | ( | __PCLK__, | |
| __SPEED__, | |||
| __DUTYCYCLE__ ) |
Compute Speed clock range to a Clock Control Register (I2C_CLKCTRL_CLKS) value.
| __PCLK__ | This parameter must be a value of peripheral clock (in Hz). |
| __SPEED__ | This parameter must be a value lower than 400kHz (in Hz). |
| __DUTYCYCLE__ | This parameter can be one of the following values: |
| Value | between Min_Data=0x004 and Max_Data=0xFFF, except in FAST DUTY mode where Min_Data=0x001. |
Definition at line 365 of file g32r4xx_ddl_i2c.h.