|
OpenNSL API Guide and Reference Manual
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sal/driver.h>#include <sal/pci.h>#include <opennsl/port.h>#include <opennsl/error.h>#include <examples/util.h>Go to the source code of this file.
Data Structures | |
| struct | led_info_s |
Macros | |
| #define | DEFAULT_UNIT 0 |
| #define | EXAMPLE_LED0_PROGRAM_RAM_SIZE 112 |
| #define | EXAMPLE_LED1_PROGRAM_RAM_SIZE 176 |
Typedefs | |
| typedef struct led_info_s | led_info_t |
Functions | |
| int | main (int argc, char *argv[]) |
| Main function for LED programming application. | |
Variables | |
| char | example_usage [] |
| uint8 | led0_program [EXAMPLE_LED0_PROGRAM_RAM_SIZE] |
| uint8 | led1_program [EXAMPLE_LED1_PROGRAM_RAM_SIZE] |
| #define DEFAULT_UNIT 0 |
Definition at line 37 of file example_led.c.
Referenced by main().
| #define EXAMPLE_LED0_PROGRAM_RAM_SIZE 112 |
Definition at line 50 of file example_led.c.
Referenced by main().
| #define EXAMPLE_LED1_PROGRAM_RAM_SIZE 176 |
Definition at line 51 of file example_led.c.
Referenced by main().
| typedef struct led_info_s led_info_t |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Main function for LED programming application.
| argc,argv | commands line arguments |
Definition at line 100 of file example_led.c.
References led_info_s::ctrl, DEFAULT_UNIT, led_info_s::dram_base, EXAMPLE_LED0_PROGRAM_RAM_SIZE, EXAMPLE_LED1_PROGRAM_RAM_SIZE, example_port_default_config(), example_read_user_choice(), example_switch_default_vlan_config(), example_usage, led0_program, led1_program, NULL, OPENNSL_CMIC_LED_DATA_RAM_SIZE, OPENNSL_CMIC_LED_PROGRAM_RAM_SIZE, OPENNSL_CMIC_LED_REG_SIZE, opennsl_driver_exit(), opennsl_driver_init(), OPENNSL_E_NONE, OPENNSL_E_PARAM, opennsl_errmsg, OPENNSL_LC_LED_ENABLE, opennsl_pci_read(), opennsl_pci_write(), and led_info_s::pram_base.
| char example_usage[] |
Definition at line 39 of file example_led.c.
| uint8 led0_program[EXAMPLE_LED0_PROGRAM_RAM_SIZE] |
Definition at line 69 of file example_led.c.
Referenced by main().
| uint8 led1_program[EXAMPLE_LED1_PROGRAM_RAM_SIZE] |
Definition at line 79 of file example_led.c.
Referenced by main().