Download enum programs
Author: b | 2025-04-24
Enumerate Enum software free downloads. Enumerate Enum shareware, freeware, demos: Enum Domain by SiPHelp, Enum Programs by cjwdevcouk, ENUM registrar provisioning portal by Enum Software software free downloads. Enum Software shareware, freeware, demos: Enum Domain by SiPHelp, Enum Programs by cjwdevcouk, Home Cookin Recipe Software by
Download Enum Programs - SoftSea.com
Home » Java » Java Programs Java example to demonstrate an enum in switch case. Submitted by Nidhi, on April 04, 2022 Problem statement In this program, we will create a vehicle enumeration using "enum" inside the class Main. Then we will use an enum constant with a switch case inside the main() method and print the appropriate message. Java program to demonstrate an enum in switch case The source code to demonstrate an enum in the switch case is given below. The given program is compiled and executed successfully. // Java program to demonstrate an enum // in switch casepublic class Main { enum Vehicle { BIKE, CAR, BUS } public static void main(String[] args) { String str = "BUS"; switch (Vehicle.valueOf(str)) { case BIKE: System.out.println("BIKE is for 2 persons."); break; case CAR: System.out.println("CAR is for 5 persons."); break; case BUS: System.out.println("BUS is for 50 persons."); break; default: System.out.println("Unknown Vehicle."); break; } }}OutputBUS is for 50 persons. Explanation In the above program, we created an enumeration Vehicle inside class Main. The enum Vehicle contains 3 constants BIKE, CAR, BUS. The Main class also contains a static method main(). The main() method is the entry point for the program, here we created a string initialized with "BUS". Then we converted the string into an enum constant using the valueOf() method and used it in a switch case and printed the appropriate message. Java Enums Programs » Advertisement Advertisement
Enum Programs 1.8.1.0 - Download, Review
Public enum Color { RED("#FF0000"), GREEN("#00FF00"), BLUE("#0000FF"); private final String code; Color(String code) { this.code = code; } public String getCode() { return code; }} Here, the Color enum includes a private field code, which stores the hexadecimal code for each color. The constructor Color(String code) allows for initializing these fields when the constant is created.Using Enum MethodsUtilize the method defined in the enum to perform operations. java Color favoriteColor = Color.BLUE;System.out.println("Favorite Color Code: " + favoriteColor.getCode()); This code sets favoriteColor to Color.BLUE and uses the getCode() method to retrieve and print the hexadecimal value of the color.Enum in Switch StatementsUtilizing Enum in Control StructuresLeverage enums in a switch statement to make decisions based on enum values. java Day day = Day.TUESDAY;switch(day) { case MONDAY: System.out.println("Start of the work week."); break; case FRIDAY: System.out.println("Almost weekend!"); break; default: System.out.println("Midweek days."); break;} This snippet demonstrates using an enum in a switch statement to execute different blocks of code depending on the enum value. Such usage enhances readability and the maintainability of conditional logic.ConclusionThrough defining and using enums in Java, you augment the readability and robustness of your code. Enums offer a structured way to handle fixed sets of constants with optional associated functionalities. Whether you’re managing simple constants like days of the week, or more complex data such as color codes with methods, enums make your Java programs easier to manage and maintain. Harness these strategies in your own development to elevate the clarity and effectiveness of your code.Free download Enum In Java Example Program programs
"title": "ErrorResponse[USERNOTFOUND]", "description": " \nPossible errors:\n- `USERNOTFOUND`: user not found", "type": "object", "properties": { "state": { "type": "string", "enum": [ "err" ] }, "code": { "type": "string", "enum": [ "USERNOTFOUND" ] }, "msg": { "type": "string", "enum": [ "user not found" ] } } } ] } } } }, "calls-get-response": { "description": "The resulting call\n \nPossible errors:\n- `CALLNOTFOUND`: call not found\n- `USERNOTFOUND`: user not found", "content": { "application\/json": { "schema": { "oneOf": [ { "$ref": "#\/components\/schemas\/CallObject" }, { "title": "ErrorResponse[CALLNOTFOUND|USERNOTFOUND]", "description": " \nPossible errors:\n- `CALLNOTFOUND`: call not found\n- `USERNOTFOUND`: user not found", "type": "object", "properties": { "state": { "type": "string", "enum": [ "err" ] }, "code": { "type": "string", "enum": [ "CALLNOTFOUND", "USERNOTFOUND" ] }, "msg": { "type": "string", "enum": [ "call not found", "user not found" ] } } } ] } } } }, "calls-ping-response": { "description": "The resulting call\n \nPossible errors:\n- `CALLNOTFOUND`: call not found", "content": { "application\/json": { "schema": { "oneOf": [ { "$ref": "#\/components\/schemas\/CallObject" }, { "title": "ErrorResponse[CALLNOTFOUND]", "description": " \nPossible errors:\n- `CALLNOTFOUND`: call not found", "type": "object", "properties": { "state": { "type": "string", "enum": [ "err" ] }, "code": { "type": "string", "enum": [ "CALLNOTFOUND" ] }, "msg": { "type": "string", "enum": [ "call not found" ] } } } ] } } } }, "calls-decline-response": { "description": " \nPossible errors:\n- `CALLNOTFOUND`: call not found", "content": { "application\/json": { "schema": { "oneOf": [ { "$ref": "#\/components\/schemas\/OkObject" }, { "title": "ErrorResponse[CALLNOTFOUND]", "description": " \nPossible errors:\n- `CALLNOTFOUND`: call not found", "type": "object", "properties": { "state": { "type": "string", "enum": [ "err" ] }, "code": { "type": "string", "enum": [ "CALLNOTFOUND" ] }, "msg": { "type": "string", "enum": [ "call not found" ] } } } ] } } } }, "calls-forward-response": { "description": " \nPossible errors:\n- `CALLNOTFOUND`: call not found", "content": { "application\/json": { "schema": { "oneOf": [ { "$ref": "#\/components\/schemas\/OkObject" }, { "title": "ErrorResponse[CALLNOTFOUND]", "description": " \nPossible errors:\n- `CALLNOTFOUND`: call not found", "type": "object", "properties": { "state": { "type": "string", "enum": [ "err" ] }, "code": { "type": "string", "enum": [ "CALLNOTFOUND" ] }, "msg": { "type": "string", "enum": [ "call not found" ]. Enumerate Enum software free downloads. Enumerate Enum shareware, freeware, demos: Enum Domain by SiPHelp, Enum Programs by cjwdevcouk, ENUM registrar provisioning portal by Enum Software software free downloads. Enum Software shareware, freeware, demos: Enum Domain by SiPHelp, Enum Programs by cjwdevcouk, Home Cookin Recipe Software byenum in Python - Python Programs
Java Tutorials - Herong's Tutorial Examples∟Archived Tutorials∟Archived: Downloading and Installing JDK 1.6This section describes how to download and install Java SE (JDK) 1.6 Update 2 on a Windows XP system.To learn Java, you need to have a copy of JDK (Java Development Kit) installed on your machine.The current version of JDK is JDK 6u2 (Java(TM) SE Development Kit 6 Update 2),which is also called Java SE 6 (Java Standard Edition 6). Here is what I didto download and install JDK 6u2 on my local machine.Open the Java SE Download page with this URL: the download button next to "JDK 6u2".You will see a new page with a list of different download files of JDK 6u2.Locate the "Windows Platform - Java(TM) SE Development Kit 6 Update 2" section.Click the hyper link of "Windows Offline Installation (build 06), Multi-language",which links to jdk-6u2-windows-i586-p.exe with size of 65.57 MB.Save jdk-6u2-windows-i586-p.exe to a temporary directory.Double-click on jdk-6u2-windows-i586-p.exe to start the installation wizard.The installation wizard will guide you to finish the installation.To test the installation, open a command window to try the java command.If you are getting the following output, your installation was ok:C:\>\progra~1\java\jdk1.6.0_02\bin\java -versionjava version "1.6.0_02"Java(TM) SE Runtime Environment (build 1.6.0_02-b06)Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode,sharing)Table of Contents About This Book JDK - Java Development Kit Execution Process, Entry Point, Input and Output Primitive Data Types and Literals Control Flow Statements Bits, Bytes, Bitwise and Shift Operations Managing Bit Strings in Byte Arrays Reference Data Types and Variables Enum Types and Enum Constants StringBuffer - The String Buffer Class System Properties and Runtime Object Methods Generic Classes and Parameterized Types Generic Methods and Type Inference Lambda Expressions and Method References Java Modules - Java Package Aggregation Execution Threads and Multi-Threading Java Programs ThreadGroup Class and "system" ThreadGroup Tree Synchronization Technique and Synchronized Code Blocks Deadlock Condition Example Programs Garbage Collection and the gc() Method Assert Statements and -ea" Option Annotation Statements and Declarations Java Related Terminologies►Archived Tutorials Archived: Downloading and Installing JDK 13 on Mac Archived: Downloading and Installing JDK 10 Archived: JDK 10 Documentation Installation Archived: Downloading and Installing JDK 8 Archived: Downloading and Installing JDK 1.7►Archived: Downloading and Installing JDK 1.6 Archived: Downloading and Installing JDK 1.5 Archived: JDK 1.3 Bug - Memory Leak With Unstarted Threads References Full Version in PDF/EPUBPython Program to Represent enum
Sending a GET request to the URL - the {job_identifier} is the value returned in the response when you first created the export job. More on it can be seen in the Export Job Model.🚧 Jobs expire after two days All jobs that have completed processing (and are thus available to download from the provided URL) will have an expiry limit of two days from when the export ob completed. After this, the data will no longer be available.Pathjob_identifierstringrequiredHeadersIntercom-Versionstring(intercom_version)Intercom API version.By default, it's equal to the version set in the app package. Default 2.7 Enum"1.0""1.1""1.2""1.3""1.4""2.0""2.1""2.2""2.3""2.4" Example: 2.7curl -i -X GET \ ' \ -H 'Authorization: Bearer ' \ -H 'Intercom-Version: 2.7'ResponsesBodyapplication/jsonjob_identfierstringThe identifier for your job. Example: "orzzsbd7hk67xyu"statusstringThe current state of your job. Enum"pending""in_progress""failed""completed""no_data""canceled" Example: "pending"download_expires_atstringThe time after which you will not be able to access the data. Example: "1674917488"download_urlstringThe location where you can download your data. Example: " "job_identifier": "pr4wk1i72aosuh3f", "status": "pending", "download_url": "", "download_expires_at": ""}Was this page helpful?Cancel content data exportRequestPathjob_identifierstringrequiredHeadersIntercom-Versionstring(intercom_version)Intercom API version.By default, it's equal to the version set in the app package. Default 2.7 Enum"1.0""1.1""1.2""1.3""1.4""2.0""2.1""2.2""2.3""2.4" Example: 2.7curl -i -X POST \ ' \ -H 'Authorization: Bearer ' \ -H 'Intercom-Version: 2.7'ResponsesBodyapplication/jsonjob_identfierstringThe identifier for your job. Example: "orzzsbd7hk67xyu"statusstringThe current state of your job. Enum"pending""in_progress""failed""completed""no_data""canceled" Example: "pending"download_expires_atstringThe time after which you will not be able to access the data. Example: "1674917488"download_urlstringThe location where you can download your data. Example: " "job_identifier": "evqjvuxwubf3z6e4", "status": "canceled", "download_url": "", "download_expires_at": ""}Was this page helpful?Download content data exportRequestWhen a job has a status of complete, and thus a filled download_url, you can download your data by hitting that provided URL, formatted like so: exported message data will be streamed continuously back down to you in a gzipped CSV format.📘 Octet header requiredYou will have to specify the header Accept: application/octet-stream when hitting this endpoint.Pathjob_identifierstringrequiredHeadersIntercom-Versionstring(intercom_version)Intercom API version.By default, it's equal to the version set in the app package. Default 2.7 Enum"1.0""1.1""1.2""1.3""1.4""2.0""2.1""2.2""2.3""2.4" Example: 2.7curl -i -X GET \ ' \ -H 'Authorization: Bearer ' \ -H 'Intercom-Version: 2.7'ResponsesWas this page helpful?Help CenterEverything about your Help CenterOperationsMessagesEverything about your messagesOperationsNewsEverything about your NewsOperationsNotesEverything about your NotesOperationsSegmentsEverything about your SegmentsOperationsSubscription TypesEverything about subscription typesOperationsTeamsEverything about your TeamsOperationsVisitorsEverything about your VisitorsOperationsModelsSwift Enum Programs - Includehelp.com
IntroductionIn Java, an enum (enumeration) is a special Java type used to define collections of constants. More robust than a simple list of constants, an enum can include methods, variables, and constructors. They are often used when you need a fixed set of constants, such as days of the week, states in a process, levels of an organization, etc., making your code more maintainable and readable.In this article, you will learn how to define and utilize enum classes in Java through practical examples. Explore how to declare an enum, handle its constants, and how to integrate enums effectively in your Java programs.Defining a Simple Enum in JavaBasic Enum DeclarationStart by declaring a basic enum with a few constants. Here, consider an example of an enum representing the days of the week. java public enum Day { SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY} This code snippet defines an enum called Day with seven constants, representing each day of the week. Each constant in an enum is an instance of the enum class.Accessing Enum ConstantsAccess these constants via the enum name followed by a dot (.), and the constant name. java Day today = Day.MONDAY;System.out.println("Today is " + today); This snippet declares a variable today of type Day and initializes it with Day.MONDAY. It then prints the current day.Enum with Attributes and MethodsAdding Attributes and Constructors to EnumEnhance your enum by adding attributes and a constructor. This additional complexity allows for more detailed state retention and methods inside your enums. java. Enumerate Enum software free downloads. Enumerate Enum shareware, freeware, demos: Enum Domain by SiPHelp, Enum Programs by cjwdevcouk, ENUM registrar provisioning portal byComments
Home » Java » Java Programs Java example to demonstrate an enum in switch case. Submitted by Nidhi, on April 04, 2022 Problem statement In this program, we will create a vehicle enumeration using "enum" inside the class Main. Then we will use an enum constant with a switch case inside the main() method and print the appropriate message. Java program to demonstrate an enum in switch case The source code to demonstrate an enum in the switch case is given below. The given program is compiled and executed successfully. // Java program to demonstrate an enum // in switch casepublic class Main { enum Vehicle { BIKE, CAR, BUS } public static void main(String[] args) { String str = "BUS"; switch (Vehicle.valueOf(str)) { case BIKE: System.out.println("BIKE is for 2 persons."); break; case CAR: System.out.println("CAR is for 5 persons."); break; case BUS: System.out.println("BUS is for 50 persons."); break; default: System.out.println("Unknown Vehicle."); break; } }}OutputBUS is for 50 persons. Explanation In the above program, we created an enumeration Vehicle inside class Main. The enum Vehicle contains 3 constants BIKE, CAR, BUS. The Main class also contains a static method main(). The main() method is the entry point for the program, here we created a string initialized with "BUS". Then we converted the string into an enum constant using the valueOf() method and used it in a switch case and printed the appropriate message. Java Enums Programs » Advertisement Advertisement
2025-03-29Public enum Color { RED("#FF0000"), GREEN("#00FF00"), BLUE("#0000FF"); private final String code; Color(String code) { this.code = code; } public String getCode() { return code; }} Here, the Color enum includes a private field code, which stores the hexadecimal code for each color. The constructor Color(String code) allows for initializing these fields when the constant is created.Using Enum MethodsUtilize the method defined in the enum to perform operations. java Color favoriteColor = Color.BLUE;System.out.println("Favorite Color Code: " + favoriteColor.getCode()); This code sets favoriteColor to Color.BLUE and uses the getCode() method to retrieve and print the hexadecimal value of the color.Enum in Switch StatementsUtilizing Enum in Control StructuresLeverage enums in a switch statement to make decisions based on enum values. java Day day = Day.TUESDAY;switch(day) { case MONDAY: System.out.println("Start of the work week."); break; case FRIDAY: System.out.println("Almost weekend!"); break; default: System.out.println("Midweek days."); break;} This snippet demonstrates using an enum in a switch statement to execute different blocks of code depending on the enum value. Such usage enhances readability and the maintainability of conditional logic.ConclusionThrough defining and using enums in Java, you augment the readability and robustness of your code. Enums offer a structured way to handle fixed sets of constants with optional associated functionalities. Whether you’re managing simple constants like days of the week, or more complex data such as color codes with methods, enums make your Java programs easier to manage and maintain. Harness these strategies in your own development to elevate the clarity and effectiveness of your code.
2025-04-20Java Tutorials - Herong's Tutorial Examples∟Archived Tutorials∟Archived: Downloading and Installing JDK 1.6This section describes how to download and install Java SE (JDK) 1.6 Update 2 on a Windows XP system.To learn Java, you need to have a copy of JDK (Java Development Kit) installed on your machine.The current version of JDK is JDK 6u2 (Java(TM) SE Development Kit 6 Update 2),which is also called Java SE 6 (Java Standard Edition 6). Here is what I didto download and install JDK 6u2 on my local machine.Open the Java SE Download page with this URL: the download button next to "JDK 6u2".You will see a new page with a list of different download files of JDK 6u2.Locate the "Windows Platform - Java(TM) SE Development Kit 6 Update 2" section.Click the hyper link of "Windows Offline Installation (build 06), Multi-language",which links to jdk-6u2-windows-i586-p.exe with size of 65.57 MB.Save jdk-6u2-windows-i586-p.exe to a temporary directory.Double-click on jdk-6u2-windows-i586-p.exe to start the installation wizard.The installation wizard will guide you to finish the installation.To test the installation, open a command window to try the java command.If you are getting the following output, your installation was ok:C:\>\progra~1\java\jdk1.6.0_02\bin\java -versionjava version "1.6.0_02"Java(TM) SE Runtime Environment (build 1.6.0_02-b06)Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode,sharing)Table of Contents About This Book JDK - Java Development Kit Execution Process, Entry Point, Input and Output Primitive Data Types and Literals Control Flow Statements Bits, Bytes, Bitwise and Shift Operations Managing Bit Strings in Byte Arrays Reference Data Types and Variables Enum Types and Enum Constants StringBuffer - The String Buffer Class System Properties and Runtime Object Methods Generic Classes and Parameterized Types Generic Methods and Type Inference Lambda Expressions and Method References Java Modules - Java Package Aggregation Execution Threads and Multi-Threading Java Programs ThreadGroup Class and "system" ThreadGroup Tree Synchronization Technique and Synchronized Code Blocks Deadlock Condition Example Programs Garbage Collection and the gc() Method Assert Statements and -ea" Option Annotation Statements and Declarations Java Related Terminologies►Archived Tutorials Archived: Downloading and Installing JDK 13 on Mac Archived: Downloading and Installing JDK 10 Archived: JDK 10 Documentation Installation Archived: Downloading and Installing JDK 8 Archived: Downloading and Installing JDK 1.7►Archived: Downloading and Installing JDK 1.6 Archived: Downloading and Installing JDK 1.5 Archived: JDK 1.3 Bug - Memory Leak With Unstarted Threads References Full Version in PDF/EPUB
2025-04-15Sending a GET request to the URL - the {job_identifier} is the value returned in the response when you first created the export job. More on it can be seen in the Export Job Model.🚧 Jobs expire after two days All jobs that have completed processing (and are thus available to download from the provided URL) will have an expiry limit of two days from when the export ob completed. After this, the data will no longer be available.Pathjob_identifierstringrequiredHeadersIntercom-Versionstring(intercom_version)Intercom API version.By default, it's equal to the version set in the app package. Default 2.7 Enum"1.0""1.1""1.2""1.3""1.4""2.0""2.1""2.2""2.3""2.4" Example: 2.7curl -i -X GET \ ' \ -H 'Authorization: Bearer ' \ -H 'Intercom-Version: 2.7'ResponsesBodyapplication/jsonjob_identfierstringThe identifier for your job. Example: "orzzsbd7hk67xyu"statusstringThe current state of your job. Enum"pending""in_progress""failed""completed""no_data""canceled" Example: "pending"download_expires_atstringThe time after which you will not be able to access the data. Example: "1674917488"download_urlstringThe location where you can download your data. Example: " "job_identifier": "pr4wk1i72aosuh3f", "status": "pending", "download_url": "", "download_expires_at": ""}Was this page helpful?Cancel content data exportRequestPathjob_identifierstringrequiredHeadersIntercom-Versionstring(intercom_version)Intercom API version.By default, it's equal to the version set in the app package. Default 2.7 Enum"1.0""1.1""1.2""1.3""1.4""2.0""2.1""2.2""2.3""2.4" Example: 2.7curl -i -X POST \ ' \ -H 'Authorization: Bearer ' \ -H 'Intercom-Version: 2.7'ResponsesBodyapplication/jsonjob_identfierstringThe identifier for your job. Example: "orzzsbd7hk67xyu"statusstringThe current state of your job. Enum"pending""in_progress""failed""completed""no_data""canceled" Example: "pending"download_expires_atstringThe time after which you will not be able to access the data. Example: "1674917488"download_urlstringThe location where you can download your data. Example: " "job_identifier": "evqjvuxwubf3z6e4", "status": "canceled", "download_url": "", "download_expires_at": ""}Was this page helpful?Download content data exportRequestWhen a job has a status of complete, and thus a filled download_url, you can download your data by hitting that provided URL, formatted like so: exported message data will be streamed continuously back down to you in a gzipped CSV format.📘 Octet header requiredYou will have to specify the header Accept: application/octet-stream when hitting this endpoint.Pathjob_identifierstringrequiredHeadersIntercom-Versionstring(intercom_version)Intercom API version.By default, it's equal to the version set in the app package. Default 2.7 Enum"1.0""1.1""1.2""1.3""1.4""2.0""2.1""2.2""2.3""2.4" Example: 2.7curl -i -X GET \ ' \ -H 'Authorization: Bearer ' \ -H 'Intercom-Version: 2.7'ResponsesWas this page helpful?Help CenterEverything about your Help CenterOperationsMessagesEverything about your messagesOperationsNewsEverything about your NewsOperationsNotesEverything about your NotesOperationsSegmentsEverything about your SegmentsOperationsSubscription TypesEverything about subscription typesOperationsTeamsEverything about your TeamsOperationsVisitorsEverything about your VisitorsOperationsModels
2025-04-21 Enum DomainFestnetznummer als Enum-Domain! Folgende Einstellung empfehlen wir fr VoIP-Endgerte ,PocketPC und Smartphone Besitzer Und so spart man jede menge Geld , setze deine Enum - Einstellung gleich ein!Category: MiscellaneousDeveloper: SiPHelp| Download | FreeAAA Logo SoftwareThis powerful and easy to use logo creation software will help you to design professional logos for your website in minutes! Start with one of build-in logo templates or create your custom logo from scratch. AAA Logo comes with huge library of more then ...Category: Graphics EditorsDeveloper: AAA Logo Software - SWGSoft| Download | Price: $49.95ESBPDF Analysis - Probability SoftwareESBPDF Analysis is Probability Analysis Software that provides everything needed for using Discrete and Continuous Probability Distributions in a single Windows application. Most Tables and supplied functions (such as in MS Excel) give P(X less than A) ...Category: ApplicationsDeveloper: ESB Consultancy| Download | Price: $29.00Invoiceit! - invoicing softwareAll-in-one business software with more features for your money! Includes cashbook finances, customizable invoicing, auto-billing, quotations, inventory/stock control, client/vendor tracker, reports, appointments diary, email, mailing labels and customizable ...Category: FinanceDeveloper: The Scrambled Card Company| Download | Price: $84.95BillingTracker Pro Invoice SoftwareBillingTracker Pro is time billing and invoicing software for service industry professionals such as lawyers, engineers, accountants, programmers, and consultants. Anyone who bills time and projects, and demands ease of use will enjoy BillingTracker.Category: FinanceDeveloper: BillingTracker| Download | Price: $89.00KingSmart Hotel SoftwareKingSmart Hotel Software 2005 offers Hotel Property Management Systems, Hotel Management software, Reservation Software, Hotel, Restaurant, Spa and Conferences POS software and Hotel Back Office Accounting, Stock and Payroll software to hotel, restaurant, ...Category: MiscellaneousDeveloper: ComPower| Download | Price: -Software and Order AdministrationSOA provide a toolkit for shareware authors, software companies, software resellers to administrate software and orders, with SOA you can administrate your development and your orders easily , keep in touch with your customers in time. > Administrate ...Category: MiscellaneousDeveloper: SoftRM| Download | Price: $29.95 Pages : 1 | 2 >
2025-04-05Inter-Integrated Circuit (I2C) Driver Library. #include #include #include #include ti/driverlib/dl_common.h>Enumerationsenum DL_I2C_DMA_IIDX { DL_I2C_DMA_IIDX_TARGET_TXFIFO_TRIGGER = I2C_DMA_TRIG1_IIDX_STAT_MTXFIFOTRG, DL_I2C_DMA_IIDX_TARGET_RXFIFO_TRIGGER = I2C_DMA_TRIG1_IIDX_STAT_MRXFIFOTRG, DL_I2C_DMA_IIDX_CONTROLLER_TXFIFO_TRIGGER, DL_I2C_DMA_IIDX_CONTROLLER_RXFIFO_TRIGGER } enum DL_I2C_EVENT_ROUTE { DL_I2C_EVENT_ROUTE_1 = 0, DL_I2C_EVENT_ROUTE_2 = 12 } enum DL_I2C_CLOCK { DL_I2C_CLOCK_BUSCLK = I2C_CLKSEL_BUSCLK_SEL_ENABLE, DL_I2C_CLOCK_MFCLK = I2C_CLKSEL_MFCLK_SEL_ENABLE } enum DL_I2C_CLOCK_DIVIDE { DL_I2C_CLOCK_DIVIDE_1 = I2C_CLKDIV_RATIO_DIV_BY_1, DL_I2C_CLOCK_DIVIDE_2 = I2C_CLKDIV_RATIO_DIV_BY_2, DL_I2C_CLOCK_DIVIDE_3 = I2C_CLKDIV_RATIO_DIV_BY_3, DL_I2C_CLOCK_DIVIDE_4 = I2C_CLKDIV_RATIO_DIV_BY_4, DL_I2C_CLOCK_DIVIDE_5 = I2C_CLKDIV_RATIO_DIV_BY_5, DL_I2C_CLOCK_DIVIDE_6 = I2C_CLKDIV_RATIO_DIV_BY_6, DL_I2C_CLOCK_DIVIDE_7 = I2C_CLKDIV_RATIO_DIV_BY_7, DL_I2C_CLOCK_DIVIDE_8 = I2C_CLKDIV_RATIO_DIV_BY_8 } enum DL_I2C_TARGET_ADDRESSING_MODE { DL_I2C_TARGET_ADDRESSING_MODE_7_BIT = I2C_SOAR_SMODE_MODE7, DL_I2C_TARGET_ADDRESSING_MODE_10_BIT = I2C_SOAR_SMODE_MODE10 } enum DL_I2C_TARGET_PEC_STATUS { DL_I2C_TARGET_PEC_STATUS_CHECKED = I2C_TARGET_PECSR_PECSTS_CHECK_SET, DL_I2C_TARGET_PEC_STATUS_NOT_CHECKED } enum DL_I2C_TARGET_PEC_CHECK_ERROR { DL_I2C_TARGET_PEC_CHECK_ERROR_CLEARED, DL_I2C_TARGET_PEC_CHECK_ERROR_SET = I2C_TARGET_PECSR_PECSTS_ERROR_SET } enum DL_I2C_ANALOG_GLITCH_FILTER_WIDTH { DL_I2C_ANALOG_GLITCH_FILTER_WIDTH_5NS = I2C_GFCTL_AGFSEL_AGLIT_5, DL_I2C_ANALOG_GLITCH_FILTER_WIDTH_10NS = I2C_GFCTL_AGFSEL_AGLIT_10, DL_I2C_ANALOG_GLITCH_FILTER_WIDTH_25NS = I2C_GFCTL_AGFSEL_AGLIT_25, DL_I2C_ANALOG_GLITCH_FILTER_WIDTH_50NS = I2C_GFCTL_AGFSEL_AGLIT_50 } enum DL_I2C_DIGITAL_GLITCH_FILTER_WIDTH { DL_I2C_DIGITAL_GLITCH_FILTER_WIDTH_DISABLED = I2C_GFCTL_DGFSEL_DISABLED, DL_I2C_DIGITAL_GLITCH_FILTER_WIDTH_CLOCKS_1 = I2C_GFCTL_DGFSEL_CLK_1, DL_I2C_DIGITAL_GLITCH_FILTER_WIDTH_CLOCKS_2 = I2C_GFCTL_DGFSEL_CLK_2, DL_I2C_DIGITAL_GLITCH_FILTER_WIDTH_CLOCKS_3 = I2C_GFCTL_DGFSEL_CLK_3, DL_I2C_DIGITAL_GLITCH_FILTER_WIDTH_CLOCKS_4 = I2C_GFCTL_DGFSEL_CLK_4, DL_I2C_DIGITAL_GLITCH_FILTER_WIDTH_CLOCKS_8 = I2C_GFCTL_DGFSEL_CLK_8, DL_I2C_DIGITAL_GLITCH_FILTER_WIDTH_CLOCKS_16 = I2C_GFCTL_DGFSEL_CLK_16, DL_I2C_DIGITAL_GLITCH_FILTER_WIDTH_CLOCKS_31 = I2C_GFCTL_DGFSEL_CLK_31 } enum DL_I2C_CONTROLLER_DIRECTION { DL_I2C_CONTROLLER_DIRECTION_TX = I2C_MSA_DIR_TRANSMIT, DL_I2C_CONTROLLER_DIRECTION_RX = I2C_MSA_DIR_RECEIVE } enum DL_I2C_CONTROLLER_ADDRESSING_MODE { DL_I2C_CONTROLLER_ADDRESSING_MODE_7_BIT = I2C_MSA_MMODE_MODE7, DL_I2C_CONTROLLER_ADDRESSING_MODE_10_BIT = I2C_MSA_MMODE_MODE10 } enum DL_I2C_CONTROLLER_PEC_STATUS { DL_I2C_CONTROLLER_PEC_STATUS_CHECKED, DL_I2C_CONTROLLER_PEC_STATUS_NOT_CHECKED } enum DL_I2C_CONTROLLER_PEC_CHECK_ERROR { DL_I2C_CONTROLLER_PEC_CHECK_ERROR_SET, DL_I2C_CONTROLLER_PEC_CHECK_ERROR_CLEARED } enum DL_I2C_CONTROLLER_SCL { DL_I2C_CONTROLLER_SCL_HIGH = I2C_MBMON_SCL_SET, DL_I2C_CONTROLLER_SCL_LOW = I2C_MBMON_SCL_CLEARED } enum DL_I2C_CONTROLLER_SDA { DL_I2C_CONTROLLER_SDA_HIGH = I2C_MBMON_SDA_SET, DL_I2C_CONTROLLER_SDA_LOW = I2C_MBMON_SDA_CLEARED } enum DL_I2C_CONTROLLER_START { DL_I2C_CONTROLLER_START_ENABLE = I2C_MCTR_START_ENABLE, DL_I2C_CONTROLLER_START_DISABLE = I2C_MCTR_START_DISABLE } enum DL_I2C_CONTROLLER_STOP { DL_I2C_CONTROLLER_STOP_ENABLE = I2C_MCTR_STOP_ENABLE, DL_I2C_CONTROLLER_STOP_DISABLE = I2C_MCTR_STOP_DISABLE } enum DL_I2C_CONTROLLER_ACK { DL_I2C_CONTROLLER_ACK_ENABLE = I2C_MCTR_ACK_ENABLE, DL_I2C_CONTROLLER_ACK_DISABLE = I2C_MCTR_ACK_DISABLE } enum DL_I2C_TX_FIFO_LEVEL { DL_I2C_TX_FIFO_LEVEL_EMPTY = I2C_MFIFOCTL_TXTRIG_EMPTY, DL_I2C_TX_FIFO_LEVEL_BYTES_1 = I2C_MFIFOCTL_TXTRIG_LEVEL_1, DL_I2C_TX_FIFO_LEVEL_BYTES_2 = I2C_MFIFOCTL_TXTRIG_LEVEL_2, DL_I2C_TX_FIFO_LEVEL_BYTES_3 = I2C_MFIFOCTL_TXTRIG_LEVEL_3, DL_I2C_TX_FIFO_LEVEL_BYTES_4 = I2C_MFIFOCTL_TXTRIG_LEVEL_4, DL_I2C_TX_FIFO_LEVEL_BYTES_5 = I2C_MFIFOCTL_TXTRIG_LEVEL_5, DL_I2C_TX_FIFO_LEVEL_BYTES_6 = I2C_MFIFOCTL_TXTRIG_LEVEL_6, DL_I2C_TX_FIFO_LEVEL_BYTES_7 = I2C_MFIFOCTL_TXTRIG_LEVEL_7 } enum DL_I2C_RX_FIFO_LEVEL { DL_I2C_RX_FIFO_LEVEL_BYTES_1 = I2C_MFIFOCTL_RXTRIG_LEVEL_1, DL_I2C_RX_FIFO_LEVEL_BYTES_2 = I2C_MFIFOCTL_RXTRIG_LEVEL_2, DL_I2C_RX_FIFO_LEVEL_BYTES_3 = I2C_MFIFOCTL_RXTRIG_LEVEL_3, DL_I2C_RX_FIFO_LEVEL_BYTES_4 = I2C_MFIFOCTL_RXTRIG_LEVEL_4, DL_I2C_RX_FIFO_LEVEL_BYTES_5 = I2C_MFIFOCTL_RXTRIG_LEVEL_5, DL_I2C_RX_FIFO_LEVEL_BYTES_6 = I2C_MFIFOCTL_RXTRIG_LEVEL_6, DL_I2C_RX_FIFO_LEVEL_BYTES_7 = I2C_MFIFOCTL_RXTRIG_LEVEL_7, DL_I2C_RX_FIFO_LEVEL_BYTES_8 = I2C_MFIFOCTL_RXTRIG_LEVEL_8 } enum DL_I2C_TARGET_RESPONSE_OVERRIDE_VALUE { DL_I2C_TARGET_RESPONSE_OVERRIDE_VALUE_ACK = I2C_SACKCTL_ACKOVAL_DISABLE, DL_I2C_TARGET_RESPONSE_OVERRIDE_VALUE_NACK = I2C_SACKCTL_ACKOVAL_ENABLE } enum DL_I2C_IIDX { DL_I2C_IIDX_NO_INT = I2C_CPU_INT_IIDX_STAT_NO_INTR, DL_I2C_IIDX_CONTROLLER_RX_DONE = I2C_CPU_INT_IIDX_STAT_MRXDONEFG, DL_I2C_IIDX_CONTROLLER_TX_DONE = I2C_CPU_INT_IIDX_STAT_MTXDONEFG, DL_I2C_IIDX_CONTROLLER_RXFIFO_TRIGGER = I2C_CPU_INT_IIDX_STAT_MRXFIFOTRG, DL_I2C_IIDX_CONTROLLER_TXFIFO_TRIGGER = I2C_CPU_INT_IIDX_STAT_MTXFIFOTRG, DL_I2C_IIDX_CONTROLLER_RXFIFO_FULL = I2C_CPU_INT_IIDX_STAT_MRXFIFOFULL, DL_I2C_IIDX_CONTROLLER_TXFIFO_EMPTY = I2C_CPU_INT_IIDX_STAT_MTX_EMPTY, DL_I2C_IIDX_CONTROLLER_NACK = I2C_CPU_INT_IIDX_STAT_MNACKFG, DL_I2C_IIDX_CONTROLLER_START = I2C_CPU_INT_IIDX_STAT_MSTARTFG, DL_I2C_IIDX_CONTROLLER_STOP = I2C_CPU_INT_IIDX_STAT_MSTOPFG, DL_I2C_IIDX_CONTROLLER_ARBITRATION_LOST = I2C_CPU_INT_IIDX_STAT_MARBLOSTFG, DL_I2C_IIDX_CONTROLLER_EVENT1_DMA_DONE, DL_I2C_IIDX_CONTROLLER_EVENT2_DMA_DONE, DL_I2C_IIDX_CONTROLLER_PEC_RX_ERROR = I2C_CPU_INT_IIDX_STAT_MPEC_RX_ERR, DL_I2C_IIDX_TIMEOUT_A = I2C_CPU_INT_IIDX_STAT_TIMEOUTA, DL_I2C_IIDX_TIMEOUT_B = I2C_CPU_INT_IIDX_STAT_TIMEOUTB, DL_I2C_IIDX_TARGET_RX_DONE = I2C_CPU_INT_IIDX_STAT_SRXDONEFG, DL_I2C_IIDX_TARGET_TX_DONE = I2C_CPU_INT_IIDX_STAT_STXDONEFG, DL_I2C_IIDX_TARGET_RXFIFO_TRIGGER = I2C_CPU_INT_IIDX_STAT_SRXFIFOTRG, DL_I2C_IIDX_TARGET_TXFIFO_TRIGGER = I2C_CPU_INT_IIDX_STAT_STXFIFOTRG, DL_I2C_IIDX_TARGET_RXFIFO_FULL = I2C_CPU_INT_IIDX_STAT_SRXFIFOFULL, DL_I2C_IIDX_TARGET_TXFIFO_EMPTY = I2C_CPU_INT_IIDX_STAT_STXEMPTY, DL_I2C_IIDX_TARGET_START = I2C_CPU_INT_IIDX_STAT_SSTARTFG, DL_I2C_IIDX_TARGET_STOP = I2C_CPU_INT_IIDX_STAT_SSTOPFG, DL_I2C_IIDX_TARGET_GENERAL_CALL = I2C_CPU_INT_IIDX_STAT_SGENCALL, DL_I2C_IIDX_TARGET_EVENT1_DMA_DONE = I2C_CPU_INT_IIDX_STAT_SDMA_DONE_TX, DL_I2C_IIDX_TARGET_EVENT2_DMA_DONE = I2C_CPU_INT_IIDX_STAT_SDMA_DONE_RX, DL_I2C_IIDX_TARGET_PEC_RX_ERROR = I2C_CPU_INT_IIDX_STAT_SPEC_RX_ERR, DL_I2C_IIDX_TARGET_TXFIFO_UNDERFLOW = I2C_CPU_INT_IIDX_STAT_STX_UNFL, DL_I2C_IIDX_TARGET_RXFIFO_OVERFLOW = I2C_CPU_INT_IIDX_STAT_SRX_OVFL, DL_I2C_IIDX_TARGET_ARBITRATION_LOST = I2C_CPU_INT_IIDX_STAT_SARBLOST, DL_I2C_IIDX_INTERRUPT_OVERFLOW = I2C_CPU_INT_IIDX_STAT_INTR_OVFL } Functionsvoid DL_I2C_setClockConfig (I2C_Regs *i2c, const DL_I2C_ClockConfig *config) Configure I2C source clock. More... void DL_I2C_getClockConfig (const I2C_Regs *i2c,
2025-03-27