RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Data Structures | Macros | Enumerator | Variables
Aoi

Data Structures

struct  _aoi_event_config
 AOI event configuration structure. More...
 

Macros

#define AOI   AOI0
 

Variables

aoi_input_config_t _aoi_event_config::PT0AC
 
aoi_input_config_t _aoi_event_config::PT0BC
 
aoi_input_config_t _aoi_event_config::PT0CC
 
aoi_input_config_t _aoi_event_config::PT0DC
 
aoi_input_config_t _aoi_event_config::PT1AC
 
aoi_input_config_t _aoi_event_config::PT1BC
 
aoi_input_config_t _aoi_event_config::PT1CC
 
aoi_input_config_t _aoi_event_config::PT1DC
 
aoi_input_config_t _aoi_event_config::PT2AC
 
aoi_input_config_t _aoi_event_config::PT2BC
 
aoi_input_config_t _aoi_event_config::PT2CC
 
aoi_input_config_t _aoi_event_config::PT2DC
 
aoi_input_config_t _aoi_event_config::PT3AC
 
aoi_input_config_t _aoi_event_config::PT3BC
 
aoi_input_config_t _aoi_event_config::PT3CC
 
aoi_input_config_t _aoi_event_config::PT3DC
 

Driver version

enum  _aoi_input_config { kAOI_LogicZero = 0x0U , kAOI_InputSignal = 0x1U , kAOI_InvInputSignal = 0x2U , kAOI_LogicOne = 0x3U }
 AOI input configurations. More...
 
enum  _aoi_event { kAOI_Event0 = 0x0U , kAOI_Event1 = 0x1U , kAOI_Event2 = 0x2U , kAOI_Event3 = 0x3U }
 AOI event indexes, where an event is the collection of the four product terms (0, 1, 2, and 3) and the four signal inputs (A, B, C, and D). More...
 
typedef enum _aoi_input_config aoi_input_config_t
 AOI input configurations.
 
typedef enum _aoi_event aoi_event_t
 AOI event indexes, where an event is the collection of the four product terms (0, 1, 2, and 3) and the four signal inputs (A, B, C, and D).
 
typedef struct _aoi_event_config aoi_event_config_t
 AOI event configuration structure.
 
#define FSL_AOI_DRIVER_VERSION   (MAKE_VERSION(2, 0, 1))
 

AOI Initialization

void AOI_Init (AOI_Type *base)
 Initializes an AOI instance for operation.
 
void AOI_Deinit (AOI_Type *base)
 Deinitializes an AOI instance for operation.
 

AOI Get Set Operation

void AOI_GetEventLogicConfig (AOI_Type *base, aoi_event_t event, aoi_event_config_t *config)
 Gets the Boolean evaluation associated.
 
void AOI_SetEventLogicConfig (AOI_Type *base, aoi_event_t event, const aoi_event_config_t *eventConfig)
 Configures an AOI event.
 

Detailed Description

Macro Definition Documentation

◆ AOI

#define AOI   AOI0

AOI peripheral address

◆ FSL_AOI_DRIVER_VERSION

#define FSL_AOI_DRIVER_VERSION   (MAKE_VERSION(2, 0, 1))

Version 2.0.1.

Typedef Documentation

◆ aoi_event_config_t

AOI event configuration structure.

Defines structure _aoi_event_config and use the AOI_SetEventLogicConfig() function to make whole event configuration.

◆ aoi_input_config_t

AOI input configurations.

The selection item represents the Boolean evaluations.

Enumeration Type Documentation

◆ _aoi_event

enum _aoi_event

AOI event indexes, where an event is the collection of the four product terms (0, 1, 2, and 3) and the four signal inputs (A, B, C, and D).

Enumerator
kAOI_Event0 

Event 0 index

kAOI_Event1 

Event 1 index

kAOI_Event2 

Event 2 index

kAOI_Event3 

Event 3 index

◆ _aoi_input_config

AOI input configurations.

The selection item represents the Boolean evaluations.

Enumerator
kAOI_LogicZero 

Forces the input to logical zero.

kAOI_InputSignal 

Passes the input signal.

kAOI_InvInputSignal 

Inverts the input signal.

kAOI_LogicOne 

Forces the input to logical one.

Function Documentation

◆ AOI_Deinit()

void AOI_Deinit ( AOI_Type base)

Deinitializes an AOI instance for operation.

This function shutdowns AOI module.

Parameters
baseAOI peripheral address.

brief Deinitializes an AOI instance for operation.

This function shutdowns AOI module.

param base AOI peripheral address.

◆ AOI_GetEventLogicConfig()

void AOI_GetEventLogicConfig ( AOI_Type base,
aoi_event_t  event,
aoi_event_config_t config 
)

Gets the Boolean evaluation associated.

This function returns the Boolean evaluation associated.

Example:

aoi_event_config_t demoEventLogicStruct;
AOI_GetEventLogicConfig(AOI, kAOI_Event0, &demoEventLogicStruct);
void AOI_GetEventLogicConfig(AOI_Type *base, aoi_event_t event, aoi_event_config_t *config)
Gets the Boolean evaluation associated.
Definition: fsl_aoi.c:104
#define AOI
Definition: fsl_aoi.h:22
@ kAOI_Event0
Definition: fsl_aoi.h:49
AOI event configuration structure.
Definition: fsl_aoi.h:62
Parameters
baseAOI peripheral address.
eventIndex of the event which will be set of type aoi_event_t.
configSelected input configuration .

brief Gets the Boolean evaluation associated.

This function returns the Boolean evaluation associated.

Example: code aoi_event_config_t demoEventLogicStruct;

AOI_GetEventLogicConfig(AOI, kAOI_Event0, &demoEventLogicStruct); endcode

param base AOI peripheral address. param event Index of the event which will be set of type aoi_event_t. param config Selected input configuration .

◆ AOI_Init()

void AOI_Init ( AOI_Type base)

Initializes an AOI instance for operation.

This function un-gates the AOI clock.

Parameters
baseAOI peripheral address.

brief Initializes an AOI instance for operation.

This function un-gates the AOI clock.

param base AOI peripheral address.

◆ AOI_SetEventLogicConfig()

void AOI_SetEventLogicConfig ( AOI_Type base,
aoi_event_t  event,
const aoi_event_config_t eventConfig 
)

Configures an AOI event.

This function configures an AOI event according to the aoiEventConfig structure. This function configures all inputs (A, B, C, and D) of all product terms (0, 1, 2, and 3) of a desired event.

Example:

aoi_event_config_t demoEventLogicStruct;
demoEventLogicStruct.PT0AC = kAOI_InvInputSignal;
demoEventLogicStruct.PT0BC = kAOI_InputSignal;
demoEventLogicStruct.PT0CC = kAOI_LogicOne;
demoEventLogicStruct.PT0DC = kAOI_LogicOne;
demoEventLogicStruct.PT1AC = kAOI_LogicZero;
demoEventLogicStruct.PT1BC = kAOI_LogicOne;
demoEventLogicStruct.PT1CC = kAOI_LogicOne;
demoEventLogicStruct.PT1DC = kAOI_LogicOne;
demoEventLogicStruct.PT2AC = kAOI_LogicZero;
demoEventLogicStruct.PT2BC = kAOI_LogicOne;
demoEventLogicStruct.PT2CC = kAOI_LogicOne;
demoEventLogicStruct.PT2DC = kAOI_LogicOne;
demoEventLogicStruct.PT3AC = kAOI_LogicZero;
demoEventLogicStruct.PT3BC = kAOI_LogicOne;
demoEventLogicStruct.PT3CC = kAOI_LogicOne;
demoEventLogicStruct.PT3DC = kAOI_LogicOne;
AOI_SetEventLogicConfig(AOI, kAOI_Event0, demoEventLogicStruct);
void AOI_SetEventLogicConfig(AOI_Type *base, aoi_event_t event, const aoi_event_config_t *eventConfig)
Configures an AOI event.
Definition: fsl_aoi.c:193
aoi_input_config_t PT2DC
Definition: fsl_aoi.h:74
aoi_input_config_t PT0CC
Definition: fsl_aoi.h:65
aoi_input_config_t PT2BC
Definition: fsl_aoi.h:72
aoi_input_config_t PT3AC
Definition: fsl_aoi.h:75
aoi_input_config_t PT1DC
Definition: fsl_aoi.h:70
aoi_input_config_t PT1CC
Definition: fsl_aoi.h:69
aoi_input_config_t PT0AC
Definition: fsl_aoi.h:63
aoi_input_config_t PT1AC
Definition: fsl_aoi.h:67
aoi_input_config_t PT2CC
Definition: fsl_aoi.h:73
aoi_input_config_t PT2AC
Definition: fsl_aoi.h:71
aoi_input_config_t PT3DC
Definition: fsl_aoi.h:78
aoi_input_config_t PT0BC
Definition: fsl_aoi.h:64
aoi_input_config_t PT1BC
Definition: fsl_aoi.h:68
aoi_input_config_t PT3CC
Definition: fsl_aoi.h:77
aoi_input_config_t PT0DC
Definition: fsl_aoi.h:66
aoi_input_config_t PT3BC
Definition: fsl_aoi.h:76
@ kAOI_InputSignal
Definition: fsl_aoi.h:38
@ kAOI_LogicOne
Definition: fsl_aoi.h:40
@ kAOI_LogicZero
Definition: fsl_aoi.h:37
@ kAOI_InvInputSignal
Definition: fsl_aoi.h:39
Parameters
baseAOI peripheral address.
eventEvent which will be configured of type aoi_event_t.
eventConfigPointer to type aoi_event_config_t structure. The user is responsible for filling out the members of this structure and passing the pointer to this function.

brief Configures an AOI event.

This function configures an AOI event according to the aoiEventConfig structure. This function configures all inputs (A, B, C, and D) of all product terms (0, 1, 2, and 3) of a desired event.

Example: code aoi_event_config_t demoEventLogicStruct;

demoEventLogicStruct.PT0AC = kAOI_InvInputSignal; demoEventLogicStruct.PT0BC = kAOI_InputSignal; demoEventLogicStruct.PT0CC = kAOI_LogicOne; demoEventLogicStruct.PT0DC = kAOI_LogicOne;

demoEventLogicStruct.PT1AC = kAOI_LogicZero; demoEventLogicStruct.PT1BC = kAOI_LogicOne; demoEventLogicStruct.PT1CC = kAOI_LogicOne; demoEventLogicStruct.PT1DC = kAOI_LogicOne;

demoEventLogicStruct.PT2AC = kAOI_LogicZero; demoEventLogicStruct.PT2BC = kAOI_LogicOne; demoEventLogicStruct.PT2CC = kAOI_LogicOne; demoEventLogicStruct.PT2DC = kAOI_LogicOne;

demoEventLogicStruct.PT3AC = kAOI_LogicZero; demoEventLogicStruct.PT3BC = kAOI_LogicOne; demoEventLogicStruct.PT3CC = kAOI_LogicOne; demoEventLogicStruct.PT3DC = kAOI_LogicOne;

AOI_SetEventLogicConfig(AOI, kAOI_Event0, demoEventLogicStruct); endcode

param base AOI peripheral address. param event Event which will be configured of type aoi_event_t. param eventConfig Pointer to type aoi_event_config_t structure. The user is responsible for filling out the members of this structure and passing the pointer to this function.

Variable Documentation

◆ PT0AC

aoi_input_config_t _aoi_event_config::PT0AC

Product term 0 input A

◆ PT0BC

aoi_input_config_t _aoi_event_config::PT0BC

Product term 0 input B

◆ PT0CC

aoi_input_config_t _aoi_event_config::PT0CC

Product term 0 input C

◆ PT0DC

aoi_input_config_t _aoi_event_config::PT0DC

Product term 0 input D

◆ PT1AC

aoi_input_config_t _aoi_event_config::PT1AC

Product term 1 input A

◆ PT1BC

aoi_input_config_t _aoi_event_config::PT1BC

Product term 1 input B

◆ PT1CC

aoi_input_config_t _aoi_event_config::PT1CC

Product term 1 input C

◆ PT1DC

aoi_input_config_t _aoi_event_config::PT1DC

Product term 1 input D

◆ PT2AC

aoi_input_config_t _aoi_event_config::PT2AC

Product term 2 input A

◆ PT2BC

aoi_input_config_t _aoi_event_config::PT2BC

Product term 2 input B

◆ PT2CC

aoi_input_config_t _aoi_event_config::PT2CC

Product term 2 input C

◆ PT2DC

aoi_input_config_t _aoi_event_config::PT2DC

Product term 2 input D

◆ PT3AC

aoi_input_config_t _aoi_event_config::PT3AC

Product term 3 input A

◆ PT3BC

aoi_input_config_t _aoi_event_config::PT3BC

Product term 3 input B

◆ PT3CC

aoi_input_config_t _aoi_event_config::PT3CC

Product term 3 input C

◆ PT3DC

aoi_input_config_t _aoi_event_config::PT3DC

Product term 3 input D