Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN672 Datasheet(PDF) 11 Page - Silicon Laboratories

Part # AN672
Description  PRECISION32??SI32LIBRARY OVERVIEW
Download  30 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  SILABS [Silicon Laboratories]
Direct Link  http://www.silabs.com
Logo SILABS - Silicon Laboratories

AN672 Datasheet(HTML) 11 Page - Silicon Laboratories

Back Button AN672 Datasheet HTML 7Page - Silicon Laboratories AN672 Datasheet HTML 8Page - Silicon Laboratories AN672 Datasheet HTML 9Page - Silicon Laboratories AN672 Datasheet HTML 10Page - Silicon Laboratories AN672 Datasheet HTML 11Page - Silicon Laboratories AN672 Datasheet HTML 12Page - Silicon Laboratories AN672 Datasheet HTML 13Page - Silicon Laboratories AN672 Datasheet HTML 14Page - Silicon Laboratories AN672 Datasheet HTML 15Page - Silicon Laboratories Next Button
Zoom Inzoom in Zoom Outzoom out
 11 / 30 page
background image
AN672
Rev. 0.1
11
manner. These functions are provided by the si32BaseComponent and should be used for all dynamic memory
allocation because they provided tracked, aligned, memory management transparently to the library and its
applications.
6.2.1. Allocation of Objects
Objects must be allocated and initialized before they can be used. They are typically allocated on the stack as
automatic variables. For example:
si32UsartAPortalObject my_usart = si32UsartAPortalObject();
Objects whose lifetime must exceed that of the scope in which they are defined can be declared static, just like any
other variable in C.
static si32UsartAPortalObject my_usart = si32UsartAPortalObject();
Objects can also be dynamically allocated.
si32UsartAPortalObject* my_usart = si32UsartAPortalObject_allocate();
Objects are allocated from the default allocation zone, one of the si32AllocationZoneEnumType values:
SI32_RETENTION_ZONE,
SI32_INCREMENTAL_ZONE,
or
SI32_HEAP_ZONE.
The
default
zone
is
SI32_HEAP_ZONE. Applications are free to change the default allocation zone at runtime.
Both the retention zone and the incremental zone are incremental. They are simply blocks of bytes, and each
allocation request just advances a pointer within the zone by the amount requested. Allocating from these zones
does not incur additional RAM overhead. However, it is not possible to reclaim memory allocated from these zones
except by resetting the entire zone. They are intended to support a programming model wherein all memory is
preallocated at startup time and persists throughout the duration of the program's execution.
The heap zone is implemented using the allocator provided by the tool chain. It allows dynamic deallocation and
reallocation, at the cost of potential memory fragmentation and subsequent compaction.
To determine the default allocation zone use:
si32AllocationZoneEnumType si32Base_get_default_allocation_zone()
To change the default allocation use:
si32Base_set_default_allocation_zone(si32AllocationZoneEnumType zone)
6.2.2. Rules for Initializing Objects
Regardless of how an object is allocated, it should not be used until it has been initialized. Initialization sets up the
object's attributes and configures it for operation.
si32UsartAPortalObject_initialize(&my_usart,
SI32_PORTAL_OBJECT_CAPABILITY_FULL_DUPLEX
|SI32_PORTAL_OBJECT_CAPABILITY_TRANSMIT
|SI32_PORTAL_OBJECT_CAPABILITY_RECEIVE,
SI32_USART_0);
Attempting to invoke an object function on an uninitialized object results in an assertion (for debug builds) or
(occasionally) a fault.


Similar Part No. - AN672

ManufacturerPart #DatasheetDescription
logo
STMicroelectronics
AN672 STMICROELECTRONICS-AN672 Datasheet
34Kb / 3P
   When using the internal Analog to Digital Converter of the ST62 family
logo
Panasonic Semiconductor
AN6721 PANASONIC-AN6721 Datasheet
25Kb / 2P
   IGBT Drive IC
More results

Similar Description - AN672

ManufacturerPart #DatasheetDescription
logo
Roithner LaserTechnik G...
QL86T4HD ROITHNER-QL86T4HD Datasheet
220Kb / 3P
   OVERVIEW
QL65E7S-A ROITHNER-QL65E7S-A Datasheet
180Kb / 3P
   OVERVIEW
QL85J6S-A-L ROITHNER-QL85J6S-A-L Datasheet
141Kb / 3P
   OVERVIEW
QL68I6S-A ROITHNER-QL68I6S-A Datasheet
250Kb / 3P
   OVERVIEW
logo
Silicon Laboratories
AN673 SILABS-AN673 Datasheet
47Kb / 4P
   PRECISION32??SOFTWARE DEVELOPMENT KIT
logo
Roithner LaserTechnik G...
QL85H6S-A ROITHNER-QL85H6S-A Datasheet
242Kb / 5P
   OVERVIEW
QL78J6S-A ROITHNER-QL78J6S-A Datasheet
243Kb / 3P
   OVERVIEW
logo
Xilinx, Inc
XC3S1000-4FGG320I XILINX-XC3S1000-4FGG320I Datasheet
5Mb / 272P
   Architectural Overview
logo
Silicon Laboratories
AN663 SILABS-AN663 Datasheet
84Kb / 12P
   PRECISION32??MCU FAMILY CLOCKING OPTIONS
logo
Xilinx, Inc
DS099 XILINX-DS099 Datasheet
5Mb / 217P
   Architectural Overview
More results


Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30


Datasheet Download

Go To PDF Page


Link URL




Privacy Policy
ALLDATASHEET.NET
Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com