Skip to content

SUBLIBinal Enumerations

Ryan Summers edited this page Sep 6, 2015 · 14 revisions

SUBLIBinal Enumerations

This page contains information about SUBLIBinal library-wide enumerations. These enumerations are used throughout the other peripheral libraries. Please refer to the following list to read more about different enumerations.

Enumerations:

Error

typedef enum {
    ERR_NO_ERR, 
    ERR_INVALID_SEND, 
    ERR_QUEUE_FULL, 
    ERR_QUEUE_INVALID_READ, 
    ERR_INVALID_CHANNEL 
}Error;

The Error enumeration is used to signify any errors encountered within the library. A return of an error signifies disrupted library functionality.

Pin

typedef enum {
    Pin_RPA0,
    Pin_RPA1,
    Pin_RPA2,
    Pin_RPA3,
    Pin_RPA4,
    Pin_RPB0,
    Pin_RPB1,
    Pin_RPB2,
    Pin_RPB3,
    Pin_RPB4,
    Pin_RPB5,
    Pin_RPB6,
    Pin_RPB7,
    Pin_RPB8,
    Pin_RPB9,
    Pin_RPB10,
    Pin_RPB11,
    Pin_RPB13,
    Pin_RPB14,
    Pin_RPB15
}Pin;

The Pin enumeration is used for peripheral pin select. This will specify which pin an internal peripheral library to use for output on the physical microcontroller. Please be advised, one pin should not be assigned to the different functions. To see what pins are available for which functions, please refer to the PIC32MX250F128B microcontroller Documentation on IO Ports (Page 9-12).

Clone this wiki locally