AT91RM3400-AI-001 ATMEL [ATMEL Corporation], AT91RM3400-AI-001 Datasheet - Page 57
AT91RM3400-AI-001
Manufacturer Part Number
AT91RM3400-AI-001
Description
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
1.AT91RM3400-AI-001.pdf
(461 pages)
- Current page: 57 of 461
- Download datasheet (6Mb)
Table 16. Overloading a Method with the Overloading of the Open Service Function
1790A–ATARM–11/03
Default service behavior in ROM
// Defined in embedded_services.h
typedef struct _AT91S_Service {
} AT91S_Service, * AT91PS_Service;
// Defined in obj_service.c (in ROM)
char AT91F_MainMethod ()
{
}
char AT91F_ChildMethod ()
{
}
// Init the service with default methods
AT91PS_Service AT91F_OpenService(
AT91PS_Service pService)
{
}
char data;
char (*MainMethod) ();
char (*ChildMethod) ();
pService->data = 0;
pService->MainMethod =AT91F_MainMethod;
pService->ChildMethod=AT91F_ChildMethod;
return pService;
This can be done by writing a new function My_OpenService(). This new Open function
must call the library-defined function AT91F_Open_<Service>, and then update one or sev-
eral function pointers:
Overloading AT91F_ChildMethod by My_ChildMethod
// My_ChildMethod will replace AT91F_ChildMethod
char My_ChildMethod ()
{
}
// Overloading Open Service Method
AT91PS_Service My_OpenService(
AT91PS_Service pService)
{
// Overloading ChildMethod default value
}
// Allocation of the service structure
AT91S_Service service;
// Opening of the service
AT91PS_Service pService =
My_OpenService(&service);
AT91F_OpenService(pService);
pService->ChildMethod= My_ChildMethod;
return pService;
AT91RM3400
57
Related parts for AT91RM3400-AI-001
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Atmel Advanced At91 Arm Microcontroller
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Atmel CryptoMemory
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
Atmel CryptoMemory
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
Atmel CryptoMemory, 16Kbit
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
8-bit Atmel Microcontrollers
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
8-bit Atmel Microcontroller with 64K/128K/256K Bytes In-System Programmable Flash
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
8-bit Atmel Microcontroller with 16/32/64/128K Bytes In-System Programmable Flash
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
INTERVAL AND WIPE/WASH WIPER CONTROL IC WITH DELAY
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Low-Voltage Voice-Switched IC for Hands-Free Operation
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
MONOLITHIC INTEGRATED FEATUREPHONE CIRCUIT
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
AM-FM Receiver IC U4255BM-M
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Monolithic Integrated Feature Phone Circuit
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Multistandard Video-IF and Quasi Parallel Sound Processing
Manufacturer:
ATMEL Corporation
Datasheet: