STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Functions

Functions

void mfxstm32l152_Init (uint16_t DeviceAddr)
 Initialize the mfxstm32l152 and configure the needed hardware resources. More...
 
void mfxstm32l152_DeInit (uint16_t DeviceAddr)
 DeInitialize the mfxstm32l152 and unconfigure the needed hardware resources. More...
 
void mfxstm32l152_Reset (uint16_t DeviceAddr)
 Reset the mfxstm32l152 by Software. More...
 
void mfxstm32l152_LowPower (uint16_t DeviceAddr)
 Put mfxstm32l152 Device in Low Power standby mode. More...
 
void mfxstm32l152_WakeUp (uint16_t DeviceAddr)
 WakeUp mfxstm32l152 from standby mode. More...
 
uint16_t mfxstm32l152_ReadID (uint16_t DeviceAddr)
 Read the MFXSTM32L152 IO Expander device ID. More...
 
uint16_t mfxstm32l152_ReadFwVersion (uint16_t DeviceAddr)
 Read the MFXSTM32L152 device firmware version. More...
 
void mfxstm32l152_EnableITSource (uint16_t DeviceAddr, uint8_t Source)
 Enable the interrupt mode for the selected IT source. More...
 
void mfxstm32l152_DisableITSource (uint16_t DeviceAddr, uint8_t Source)
 Disable the interrupt mode for the selected IT source. More...
 
uint8_t mfxstm32l152_GlobalITStatus (uint16_t DeviceAddr, uint8_t Source)
 Returns the selected Global interrupt source pending bit value. More...
 
void mfxstm32l152_ClearGlobalIT (uint16_t DeviceAddr, uint8_t Source)
 Clear the selected Global interrupt pending bit(s) More...
 
void mfxstm32l152_SetIrqOutPinPolarity (uint16_t DeviceAddr, uint8_t Polarity)
 Set the global interrupt Polarity of IRQ_OUT_PIN. More...
 
void mfxstm32l152_SetIrqOutPinType (uint16_t DeviceAddr, uint8_t Type)
 Set the global interrupt Type of IRQ_OUT_PIN. More...
 
void mfxstm32l152_IO_Start (uint16_t DeviceAddr, uint32_t IO_Pin)
 Start the IO functionality used and enable the AF for selected IO pin(s). More...
 
uint8_t mfxstm32l152_IO_Config (uint16_t DeviceAddr, uint32_t IO_Pin, IO_ModeTypedef IO_Mode)
 Configures the IO pin(s) according to IO mode structure value. More...
 
void mfxstm32l152_IO_InitPin (uint16_t DeviceAddr, uint32_t IO_Pin, uint8_t Direction)
 Initialize the selected IO pin direction. More...
 
void mfxstm32l152_IO_SetIrqEvtMode (uint16_t DeviceAddr, uint32_t IO_Pin, uint8_t Evt)
 Set the global interrupt Type. More...
 
void mfxstm32l152_IO_SetIrqTypeMode (uint16_t DeviceAddr, uint32_t IO_Pin, uint8_t Type)
 Configure the Edge for which a transition is detectable for the selected pin. More...
 
void mfxstm32l152_IO_WritePin (uint16_t DeviceAddr, uint32_t IO_Pin, uint8_t PinState)
 When GPIO is in output mode, puts the corresponding GPO in High (1) or Low (0) level. More...
 
uint32_t mfxstm32l152_IO_ReadPin (uint16_t DeviceAddr, uint32_t IO_Pin)
 Return the state of the selected IO pin(s). More...
 
void mfxstm32l152_IO_EnableIT (uint16_t DeviceAddr)
 Enable the global IO interrupt source. More...
 
void mfxstm32l152_IO_DisableIT (uint16_t DeviceAddr)
 Disable the global IO interrupt source. More...
 
void mfxstm32l152_IO_EnablePinIT (uint16_t DeviceAddr, uint32_t IO_Pin)
 Enable interrupt mode for the selected IO pin(s). More...
 
void mfxstm32l152_IO_DisablePinIT (uint16_t DeviceAddr, uint32_t IO_Pin)
 Disable interrupt mode for the selected IO pin(s). More...
 
uint32_t mfxstm32l152_IO_ITStatus (uint16_t DeviceAddr, uint32_t IO_Pin)
 Check the status of the selected IO interrupt pending bit. More...
 
void mfxstm32l152_IO_ClearIT (uint16_t DeviceAddr, uint32_t IO_Pin)
 Clear the selected IO interrupt pending bit(s). It clear automatically also the general MFXSTM32L152_REG_ADR_IRQ_PENDING. More...
 
void mfxstm32l152_IO_EnableAF (uint16_t DeviceAddr)
 Enable the AF for aGPIO. More...
 
void mfxstm32l152_IO_DisableAF (uint16_t DeviceAddr)
 Disable the AF for aGPIO. More...
 
void mfxstm32l152_TS_Start (uint16_t DeviceAddr)
 Configures the touch Screen Controller (Single point detection) More...
 
uint8_t mfxstm32l152_TS_DetectTouch (uint16_t DeviceAddr)
 Return if there is touch detected or not. More...
 
void mfxstm32l152_TS_GetXY (uint16_t DeviceAddr, uint16_t *X, uint16_t *Y)
 Get the touch screen X and Y positions values. More...
 
void mfxstm32l152_TS_EnableIT (uint16_t DeviceAddr)
 Configure the selected source to generate a global interrupt or not. More...
 
void mfxstm32l152_TS_DisableIT (uint16_t DeviceAddr)
 Configure the selected source to generate a global interrupt or not. More...
 
uint8_t mfxstm32l152_TS_ITStatus (uint16_t DeviceAddr)
 Configure the selected source to generate a global interrupt or not. More...
 
void mfxstm32l152_TS_ClearIT (uint16_t DeviceAddr)
 Configure the selected source to generate a global interrupt or not. More...
 
void mfxstm32l152_IDD_Start (uint16_t DeviceAddr)
 Launch IDD current measurement. More...
 
void mfxstm32l152_IDD_Config (uint16_t DeviceAddr, IDD_ConfigTypeDef MfxIddConfig)
 Configures the IDD current measurement. More...
 
void mfxstm32l152_IDD_ConfigShuntNbLimit (uint16_t DeviceAddr, uint8_t ShuntNbLimit)
 This function allows to modify number of shunt used for a measurement. More...
 
void mfxstm32l152_IDD_GetValue (uint16_t DeviceAddr, uint32_t *ReadValue)
 Get Idd current value. More...
 
uint8_t mfxstm32l152_IDD_GetShuntUsed (uint16_t DeviceAddr)
 Get Last shunt used for measurement. More...
 
void mfxstm32l152_IDD_EnableIT (uint16_t DeviceAddr)
 Configure mfx to enable Idd interrupt. More...
 
void mfxstm32l152_IDD_ClearIT (uint16_t DeviceAddr)
 Clear Idd global interrupt. More...
 
uint8_t mfxstm32l152_IDD_GetITStatus (uint16_t DeviceAddr)
 get Idd interrupt status More...
 
void mfxstm32l152_IDD_DisableIT (uint16_t DeviceAddr)
 disable Idd interrupt More...
 
uint8_t mfxstm32l152_Error_ReadSrc (uint16_t DeviceAddr)
 Read Error Source. More...
 
uint8_t mfxstm32l152_Error_ReadMsg (uint16_t DeviceAddr)
 Read Error Message. More...
 
void mfxstm32l152_Error_EnableIT (uint16_t DeviceAddr)
 Enable Error global interrupt. More...
 
void mfxstm32l152_Error_ClearIT (uint16_t DeviceAddr)
 Clear Error global interrupt. More...
 
uint8_t mfxstm32l152_Error_GetITStatus (uint16_t DeviceAddr)
 get Error interrupt status More...
 
void mfxstm32l152_Error_DisableIT (uint16_t DeviceAddr)
 disable Error interrupt More...
 
uint8_t mfxstm32l152_ReadReg (uint16_t DeviceAddr, uint8_t RegAddr)
 FOR DEBUG ONLY. More...
 
void mfxstm32l152_WriteReg (uint16_t DeviceAddr, uint8_t RegAddr, uint8_t Value)
 

Detailed Description

Function Documentation

void mfxstm32l152_ClearGlobalIT ( uint16_t  DeviceAddr,
uint8_t  Source 
)

Clear the selected Global interrupt pending bit(s)

Parameters
DeviceAddrDevice address on communication Bus.
Sourcethe Global interrupt source to be cleared, could be any combination of the below values. The acknowledge signal for MFXSTM32L152_GPIOs configured in input with interrupt is not on this register but in IRQ_GPI_ACK1, IRQ_GPI_ACK2 registers.
  • MFXSTM32L152_IRQ_IDD : IDD interrupt
  • MFXSTM32L152_IRQ_ERROR : Error interrupt
  • MFXSTM32L152_IRQ_TS_DET : Touch Screen Controller Touch Detected interrupt
  • MFXSTM32L152_IRQ_TS_NE : Touch Screen FIFO Not Empty
  • MFXSTM32L152_IRQ_TS_TH : Touch Screen FIFO threshold triggered
  • MFXSTM32L152_IRQ_TS_FULL : Touch Screen FIFO Full
  • MFXSTM32L152_IRQ_TS_OVF : Touch Screen FIFO Overflow /\/\ IMPORTANT NOTE /\/\ must not use MFXSTM32L152_IRQ_GPIO as argument, see IRQ_GPI_ACK1 and IRQ_GPI_ACK2 registers
Return values
None

Definition at line 396 of file mfxstm32l152.c.

void mfxstm32l152_DeInit ( uint16_t  DeviceAddr)

DeInitialize the mfxstm32l152 and unconfigure the needed hardware resources.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
None

Definition at line 201 of file mfxstm32l152.c.

void mfxstm32l152_DisableITSource ( uint16_t  DeviceAddr,
uint8_t  Source 
)

Disable the interrupt mode for the selected IT source.

Parameters
DeviceAddrDevice address on communication Bus.
SourceThe interrupt source to be configured, could be:
  • MFXSTM32L152_IRQ_GPIO: IO interrupt
  • MFXSTM32L152_IRQ_IDD : IDD interrupt
  • MFXSTM32L152_IRQ_ERROR : Error interrupt
  • MFXSTM32L152_IRQ_TS_DET : Touch Screen Controller Touch Detected interrupt
  • MFXSTM32L152_IRQ_TS_NE : Touch Screen FIFO Not Empty
  • MFXSTM32L152_IRQ_TS_TH : Touch Screen FIFO threshold triggered
  • MFXSTM32L152_IRQ_TS_FULL : Touch Screen FIFO Full
  • MFXSTM32L152_IRQ_TS_OVF : Touch Screen FIFO Overflow
Return values
None

Definition at line 345 of file mfxstm32l152.c.

void mfxstm32l152_EnableITSource ( uint16_t  DeviceAddr,
uint8_t  Source 
)

Enable the interrupt mode for the selected IT source.

Parameters
DeviceAddrDevice address on communication Bus.
SourceThe interrupt source to be configured, could be:
  • MFXSTM32L152_IRQ_GPIO: IO interrupt
  • MFXSTM32L152_IRQ_IDD : IDD interrupt
  • MFXSTM32L152_IRQ_ERROR : Error interrupt
  • MFXSTM32L152_IRQ_TS_DET : Touch Screen Controller Touch Detected interrupt
  • MFXSTM32L152_IRQ_TS_NE : Touch Screen FIFO Not Empty
  • MFXSTM32L152_IRQ_TS_TH : Touch Screen FIFO threshold triggered
  • MFXSTM32L152_IRQ_TS_FULL : Touch Screen FIFO Full
  • MFXSTM32L152_IRQ_TS_OVF : Touch Screen FIFO Overflow
Return values
None

Definition at line 317 of file mfxstm32l152.c.

void mfxstm32l152_Error_ClearIT ( uint16_t  DeviceAddr)

Clear Error global interrupt.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
None

Definition at line 1403 of file mfxstm32l152.c.

void mfxstm32l152_Error_DisableIT ( uint16_t  DeviceAddr)

disable Error interrupt

Parameters
DeviceAddrDevice address on communication Bus.
Return values
None.

Definition at line 1425 of file mfxstm32l152.c.

void mfxstm32l152_Error_EnableIT ( uint16_t  DeviceAddr)

Enable Error global interrupt.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
None

Definition at line 1390 of file mfxstm32l152.c.

uint8_t mfxstm32l152_Error_GetITStatus ( uint16_t  DeviceAddr)

get Error interrupt status

Parameters
DeviceAddrDevice address on communication Bus.
Return values
Errorinterrupts status

Definition at line 1414 of file mfxstm32l152.c.

uint8_t mfxstm32l152_Error_ReadMsg ( uint16_t  DeviceAddr)

Read Error Message.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
Errormessage code with error source

Definition at line 1378 of file mfxstm32l152.c.

uint8_t mfxstm32l152_Error_ReadSrc ( uint16_t  DeviceAddr)

Read Error Source.

MFXSTM32L152 Error management functions.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
Errormessage code with error source

Definition at line 1367 of file mfxstm32l152.c.

uint8_t mfxstm32l152_GlobalITStatus ( uint16_t  DeviceAddr,
uint8_t  Source 
)

Returns the selected Global interrupt source pending bit value.

Parameters
DeviceAddrDevice address on communication Bus.
Sourcethe Global interrupt source to be checked, could be:
  • MFXSTM32L152_IRQ_GPIO: IO interrupt
  • MFXSTM32L152_IRQ_IDD : IDD interrupt
  • MFXSTM32L152_IRQ_ERROR : Error interrupt
  • MFXSTM32L152_IRQ_TS_DET : Touch Screen Controller Touch Detected interrupt
  • MFXSTM32L152_IRQ_TS_NE : Touch Screen FIFO Not Empty
  • MFXSTM32L152_IRQ_TS_TH : Touch Screen FIFO threshold triggered
  • MFXSTM32L152_IRQ_TS_FULL : Touch Screen FIFO Full
  • MFXSTM32L152_IRQ_TS_OVF : Touch Screen FIFO Overflow
Return values
Thevalue of the checked Global interrupt source status.

Definition at line 374 of file mfxstm32l152.c.

void mfxstm32l152_IDD_ClearIT ( uint16_t  DeviceAddr)

Clear Idd global interrupt.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
None

Definition at line 1329 of file mfxstm32l152.c.

void mfxstm32l152_IDD_Config ( uint16_t  DeviceAddr,
IDD_ConfigTypeDef  MfxIddConfig 
)

Configures the IDD current measurement.

Parameters
DeviceAddrDevice address on communication Bus.
MfxIddConfigParameters depending on hardware config.
Return values
None

Definition at line 1158 of file mfxstm32l152.c.

void mfxstm32l152_IDD_ConfigShuntNbLimit ( uint16_t  DeviceAddr,
uint8_t  ShuntNbLimit 
)

This function allows to modify number of shunt used for a measurement.

Parameters
DeviceAddrDevice address on communication Bus
Return values
None.

Definition at line 1267 of file mfxstm32l152.c.

void mfxstm32l152_IDD_DisableIT ( uint16_t  DeviceAddr)

disable Idd interrupt

Parameters
DeviceAddrDevice address on communication Bus.
Return values
None.

Definition at line 1351 of file mfxstm32l152.c.

void mfxstm32l152_IDD_EnableIT ( uint16_t  DeviceAddr)

Configure mfx to enable Idd interrupt.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
None

Definition at line 1316 of file mfxstm32l152.c.

uint8_t mfxstm32l152_IDD_GetITStatus ( uint16_t  DeviceAddr)

get Idd interrupt status

Parameters
DeviceAddrDevice address on communication Bus.
Return values
IDDinterrupts status

Definition at line 1340 of file mfxstm32l152.c.

uint8_t mfxstm32l152_IDD_GetShuntUsed ( uint16_t  DeviceAddr)

Get Last shunt used for measurement.

Parameters
DeviceAddrDevice address on communication Bus
Return values
Lastshunt used

Definition at line 1306 of file mfxstm32l152.c.

void mfxstm32l152_IDD_GetValue ( uint16_t  DeviceAddr,
uint32_t *  ReadValue 
)

Get Idd current value.

Parameters
DeviceAddrDevice address on communication Bus
ReadValuePointer on value to be read
Return values
Iddvalue in 10 nA.

Definition at line 1290 of file mfxstm32l152.c.

void mfxstm32l152_IDD_Start ( uint16_t  DeviceAddr)

Launch IDD current measurement.

MFXSTM32L152 IDD current measurement functionalities functions.

Parameters
DeviceAddrDevice address on communication Bus
Return values
None.

Definition at line 1138 of file mfxstm32l152.c.

void mfxstm32l152_Init ( uint16_t  DeviceAddr)

Initialize the mfxstm32l152 and configure the needed hardware resources.

MFXSTM32L152 Control functions.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
None

Definition at line 168 of file mfxstm32l152.c.

void mfxstm32l152_IO_ClearIT ( uint16_t  DeviceAddr,
uint32_t  IO_Pin 
)

Clear the selected IO interrupt pending bit(s). It clear automatically also the general MFXSTM32L152_REG_ADR_IRQ_PENDING.

Parameters
DeviceAddrDevice address on communication Bus.
IO_Pinthe IO interrupt to be cleared, could be:
  • MFXSTM32L152_GPIO_PIN_x: Where x can be from 0 to 23.
Return values
None

Definition at line 903 of file mfxstm32l152.c.

uint8_t mfxstm32l152_IO_Config ( uint16_t  DeviceAddr,
uint32_t  IO_Pin,
IO_ModeTypedef  IO_Mode 
)

Configures the IO pin(s) according to IO mode structure value.

Parameters
DeviceAddrDevice address on communication Bus.
IO_PinThe output pin to be set or reset. This parameter can be one of the following values:
  • MFXSTM32L152_GPIO_PIN_x: where x can be from 0 to 23.
IO_ModeThe IO pin mode to configure, could be one of the following values:
  • IO_MODE_INPUT
  • IO_MODE_OUTPUT
  • IO_MODE_IT_RISING_EDGE
  • IO_MODE_IT_FALLING_EDGE
  • IO_MODE_IT_LOW_LEVEL
  • IO_MODE_IT_HIGH_LEVEL
  • IO_MODE_INPUT_PU,
  • IO_MODE_INPUT_PD,
  • IO_MODE_OUTPUT_OD_PU,
  • IO_MODE_OUTPUT_OD_PD,
  • IO_MODE_OUTPUT_PP_PU,
  • IO_MODE_OUTPUT_PP_PD,
  • IO_MODE_IT_RISING_EDGE_PU
  • IO_MODE_IT_FALLING_EDGE_PU
  • IO_MODE_IT_LOW_LEVEL_PU
  • IO_MODE_IT_HIGH_LEVEL_PU
  • IO_MODE_IT_RISING_EDGE_PD
  • IO_MODE_IT_FALLING_EDGE_PD
  • IO_MODE_IT_LOW_LEVEL_PD
  • IO_MODE_IT_HIGH_LEVEL_PD
Return values
None

Definition at line 535 of file mfxstm32l152.c.

void mfxstm32l152_IO_DisableAF ( uint16_t  DeviceAddr)

Disable the AF for aGPIO.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
None

Definition at line 961 of file mfxstm32l152.c.

void mfxstm32l152_IO_DisableIT ( uint16_t  DeviceAddr)

Disable the global IO interrupt source.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
None

Definition at line 841 of file mfxstm32l152.c.

void mfxstm32l152_IO_DisablePinIT ( uint16_t  DeviceAddr,
uint32_t  IO_Pin 
)

Disable interrupt mode for the selected IO pin(s).

Parameters
DeviceAddrDevice address on communication Bus.
IO_PinThe IO interrupt to be disabled. This parameter could be any combination of the following values:
  • MFXSTM32L152_GPIO_PIN_x: where x can be from 0 to 23.
Return values
None

Definition at line 868 of file mfxstm32l152.c.

void mfxstm32l152_IO_EnableAF ( uint16_t  DeviceAddr)

Enable the AF for aGPIO.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
None

Definition at line 935 of file mfxstm32l152.c.

void mfxstm32l152_IO_EnableIT ( uint16_t  DeviceAddr)

Enable the global IO interrupt source.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
None

Definition at line 828 of file mfxstm32l152.c.

void mfxstm32l152_IO_EnablePinIT ( uint16_t  DeviceAddr,
uint32_t  IO_Pin 
)

Enable interrupt mode for the selected IO pin(s).

Parameters
DeviceAddrDevice address on communication Bus.
IO_PinThe IO interrupt to be enabled. This parameter could be any combination of the following values:
  • MFXSTM32L152_GPIO_PIN_x: where x can be from 0 to 23.
Return values
None

Definition at line 855 of file mfxstm32l152.c.

void mfxstm32l152_IO_InitPin ( uint16_t  DeviceAddr,
uint32_t  IO_Pin,
uint8_t  Direction 
)

Initialize the selected IO pin direction.

Parameters
DeviceAddrDevice address on communication Bus.
IO_PinThe IO pin to be configured. This parameter could be any combination of the following values:
  • MFXSTM32L152_GPIO_PIN_x: Where x can be from 0 to 23.
Directioncould be MFXSTM32L152_GPIO_DIR_IN or MFXSTM32L152_GPIO_DIR_OUT.
Return values
None

Definition at line 737 of file mfxstm32l152.c.

uint32_t mfxstm32l152_IO_ITStatus ( uint16_t  DeviceAddr,
uint32_t  IO_Pin 
)

Check the status of the selected IO interrupt pending bit.

Parameters
DeviceAddrDevice address on communication Bus.
IO_PinThe IO interrupt to be checked could be:
  • MFXSTM32L152_GPIO_PIN_x Where x can be from 0 to 23.
Return values
Statusof the checked IO pin(s).

Definition at line 881 of file mfxstm32l152.c.

uint32_t mfxstm32l152_IO_ReadPin ( uint16_t  DeviceAddr,
uint32_t  IO_Pin 
)

Return the state of the selected IO pin(s).

Parameters
DeviceAddrDevice address on communication Bus.
IO_PinThe output pin to be set or reset. This parameter can be one of the following values:
  • MFXSTM32L152_GPIO_PIN_x: where x can be from 0 to 23.
Return values
IOpin(s) state.

Definition at line 809 of file mfxstm32l152.c.

void mfxstm32l152_IO_SetIrqEvtMode ( uint16_t  DeviceAddr,
uint32_t  IO_Pin,
uint8_t  Evt 
)

Set the global interrupt Type.

Parameters
DeviceAddrDevice address on communication Bus.
IO_PinThe IO pin to be configured. This parameter could be any combination of the following values:
  • MFXSTM32L152_GPIO_PIN_x: Where x can be from 0 to 23.
EvtInterrupt line activity type, could be one of the following values:
  • MFXSTM32L152_IRQ_GPI_EVT_LEVEL: Interrupt line is active in level model
  • MFXSTM32L152_IRQ_GPI_EVT_EDGE: Interrupt line is active in edge model
Return values
None

Definition at line 753 of file mfxstm32l152.c.

void mfxstm32l152_IO_SetIrqTypeMode ( uint16_t  DeviceAddr,
uint32_t  IO_Pin,
uint8_t  Type 
)

Configure the Edge for which a transition is detectable for the selected pin.

Parameters
DeviceAddrDevice address on communication Bus.
IO_PinThe IO pin to be configured. This parameter could be any combination of the following values:
  • MFXSTM32L152_GPIO_PIN_x: Where x can be from 0 to 23.
EvtInterrupt line activity type, could be one of the following values:
  • MFXSTM32L152_IRQ_GPI_TYPE_LLFE: Interrupt line is active in Low Level or Falling Edge
  • MFXSTM32L152_IRQ_GPI_TYPE_HLRE: Interrupt line is active in High Level or Rising Edge
Return values
None

Definition at line 771 of file mfxstm32l152.c.

void mfxstm32l152_IO_Start ( uint16_t  DeviceAddr,
uint32_t  IO_Pin 
)

Start the IO functionality used and enable the AF for selected IO pin(s).

MFXSTM32L152 IO functionalities functions.

Parameters
DeviceAddrDevice address on communication Bus.
AF_en0 to disable, else enabled.
Return values
None

Definition at line 472 of file mfxstm32l152.c.

void mfxstm32l152_IO_WritePin ( uint16_t  DeviceAddr,
uint32_t  IO_Pin,
uint8_t  PinState 
)

When GPIO is in output mode, puts the corresponding GPO in High (1) or Low (0) level.

Parameters
DeviceAddrDevice address on communication Bus.
IO_PinThe output pin to be set or reset. This parameter can be one of the following values:
  • MFXSTM32L152_GPIO_PIN_x: where x can be from 0 to 23.
PinStateThe new IO pin state.
Return values
None

Definition at line 786 of file mfxstm32l152.c.

void mfxstm32l152_LowPower ( uint16_t  DeviceAddr)

Put mfxstm32l152 Device in Low Power standby mode.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
None

Definition at line 235 of file mfxstm32l152.c.

uint16_t mfxstm32l152_ReadFwVersion ( uint16_t  DeviceAddr)

Read the MFXSTM32L152 device firmware version.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
TheDevice FW version (two bytes).

Definition at line 293 of file mfxstm32l152.c.

uint16_t mfxstm32l152_ReadID ( uint16_t  DeviceAddr)

Read the MFXSTM32L152 IO Expander device ID.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
TheDevice ID (two bytes).

Definition at line 272 of file mfxstm32l152.c.

uint8_t mfxstm32l152_ReadReg ( uint16_t  DeviceAddr,
uint8_t  RegAddr 
)

FOR DEBUG ONLY.

Definition at line 1434 of file mfxstm32l152.c.

void mfxstm32l152_Reset ( uint16_t  DeviceAddr)

Reset the mfxstm32l152 by Software.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
None

Definition at line 221 of file mfxstm32l152.c.

void mfxstm32l152_SetIrqOutPinPolarity ( uint16_t  DeviceAddr,
uint8_t  Polarity 
)

Set the global interrupt Polarity of IRQ_OUT_PIN.

Parameters
DeviceAddrDevice address on communication Bus.
Polaritythe IT mode polarity, could be one of the following values:
  • MFXSTM32L152_OUT_PIN_POLARITY_LOW: Interrupt output line is active Low edge
  • MFXSTM32L152_OUT_PIN_POLARITY_HIGH: Interrupt line output is active High edge
Return values
None

Definition at line 410 of file mfxstm32l152.c.

void mfxstm32l152_SetIrqOutPinType ( uint16_t  DeviceAddr,
uint8_t  Type 
)

Set the global interrupt Type of IRQ_OUT_PIN.

Parameters
DeviceAddrDevice address on communication Bus.
TypeInterrupt line activity type, could be one of the following values:
  • MFXSTM32L152_OUT_PIN_TYPE_OPENDRAIN: Open Drain output Interrupt line
  • MFXSTM32L152_OUT_PIN_TYPE_PUSHPULL: Push Pull output Interrupt line
Return values
None

Definition at line 439 of file mfxstm32l152.c.

void mfxstm32l152_TS_ClearIT ( uint16_t  DeviceAddr)

Configure the selected source to generate a global interrupt or not.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
None

Definition at line 1123 of file mfxstm32l152.c.

uint8_t mfxstm32l152_TS_DetectTouch ( uint16_t  DeviceAddr)

Return if there is touch detected or not.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
Touchdetected state.

Definition at line 1043 of file mfxstm32l152.c.

void mfxstm32l152_TS_DisableIT ( uint16_t  DeviceAddr)

Configure the selected source to generate a global interrupt or not.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
None

Definition at line 1101 of file mfxstm32l152.c.

void mfxstm32l152_TS_EnableIT ( uint16_t  DeviceAddr)

Configure the selected source to generate a global interrupt or not.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
None

Definition at line 1088 of file mfxstm32l152.c.

void mfxstm32l152_TS_GetXY ( uint16_t  DeviceAddr,
uint16_t *  X,
uint16_t *  Y 
)

Get the touch screen X and Y positions values.

Parameters
DeviceAddrDevice address on communication Bus.
XPointer to X position value
YPointer to Y position value
Return values
None.

Definition at line 1069 of file mfxstm32l152.c.

uint8_t mfxstm32l152_TS_ITStatus ( uint16_t  DeviceAddr)

Configure the selected source to generate a global interrupt or not.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
TSinterrupts status

Definition at line 1112 of file mfxstm32l152.c.

void mfxstm32l152_TS_Start ( uint16_t  DeviceAddr)

Configures the touch Screen Controller (Single point detection)

MFXSTM32L152 Touch screen functionalities functions.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
None.

Definition at line 993 of file mfxstm32l152.c.

void mfxstm32l152_WakeUp ( uint16_t  DeviceAddr)

WakeUp mfxstm32l152 from standby mode.

Parameters
DeviceAddrDevice address on communication Bus.
Return values
None

Definition at line 249 of file mfxstm32l152.c.

void mfxstm32l152_WriteReg ( uint16_t  DeviceAddr,
uint8_t  RegAddr,
uint8_t  Value 
)

Definition at line 1440 of file mfxstm32l152.c.