Classes |
struct | NF_STRUCT_ComBuf |
struct | NF_STRUCT_ReadAnalogInputs |
struct | NF_STRUCT_ReadDeviceVitals |
struct | NF_STRUCT_Regulator |
struct | NF_STRUCT_SetDigitalOutputs |
struct | NF_STRUCT_SetDrivesMode |
struct | NF_STRUCT_SetDrivesSpeed |
Defines |
#define | NF_COMMAND_ReadAnalogInputs 0x3E |
#define | NF_COMMAND_ReadDeviceStatus 0x02 |
#define | NF_COMMAND_ReadDeviceVitals 0x03 |
#define | NF_COMMAND_ReadDigitalInputs 0x30 |
#define | NF_COMMAND_ReadDistance 0x3D |
#define | NF_COMMAND_ReadDrivesCurrent 0x1B |
#define | NF_COMMAND_ReadDrivesPosition 0x1A |
#define | NF_COMMAND_ReadDrivesSpeed 0x1C |
#define | NF_COMMAND_ReadDrivesStatus 0x1F |
#define | NF_COMMAND_ReadServosCurrent 0x2B |
#define | NF_COMMAND_ReadServosPosition 0x2A |
#define | NF_COMMAND_ReadServosStatus 0x2F |
#define | NF_COMMAND_SetCurrentRegulator 0x40 |
#define | NF_COMMAND_SetDigitalOutputs 0x31 |
#define | NF_COMMAND_SetDisplayBacklight 0x52 |
#define | NF_COMMAND_SetDisplayMode 0x50 |
#define | NF_COMMAND_SetDisplayText 0x51 |
#define | NF_COMMAND_SetDrivesCurrent 0x12 |
#define | NF_COMMAND_SetDrivesMaxCurrent 0x15 |
#define | NF_COMMAND_SetDrivesMaxPosition 0x18 |
#define | NF_COMMAND_SetDrivesMaxSpeed 0x16 |
#define | NF_COMMAND_SetDrivesMinPosition 0x17 |
#define | NF_COMMAND_SetDrivesMisc 0x1E |
#define | NF_COMMAND_SetDrivesMode 0x10 |
#define | NF_COMMAND_SetDrivesPosition 0x13 |
#define | NF_COMMAND_SetDrivesPWM 0x14 |
#define | NF_COMMAND_SetDrivesSpeed 0x11 |
#define | NF_COMMAND_SetPositionRegulator 0x42 |
#define | NF_COMMAND_SetServosMaxPosition 0x28 |
#define | NF_COMMAND_SetServosMaxSpeed 0x26 |
#define | NF_COMMAND_SetServosMinPosition 0x27 |
#define | NF_COMMAND_SetServosMisc 0x2E |
#define | NF_COMMAND_SetServosMode 0x20 |
#define | NF_COMMAND_SetServosPosition 0x21 |
#define | NF_COMMAND_SetServosPositionAdj 0x29 |
#define | NF_COMMAND_SetServosSpeed 0x22 |
#define | NF_COMMAND_SetSpeedRegulator 0x41 |
#define | NF_DATABYTES_ReadAnalogInputs 2 |
#define | NF_DATABYTES_ReadDeviceVitals 2 |
#define | NF_DATABYTES_Regulator 8 |
#define | NF_DATABYTES_SetDigitalOutputs 1 |
#define | NF_DATABYTES_SetDrivesMode 1 |
#define | NF_DATABYTES_SetDrivesSpeed 4 |
#define | NF_DEFAULT_SetServosMaxPosition 1700 |
#define | NF_DEFAULT_SetServosMinPosition 1300 |
#define | NF_DEFAULT_SetServosPosition 1500 |
#define | NF_DEFAULT_SetServosPositionAdj 0 |
#define | NF_DrivesMode_CURRENT 0x03 |
#define | NF_DrivesMode_ERROR 0x00 |
#define | NF_DrivesMode_MANUAL 0x01 |
#define | NF_DrivesMode_POSITION 0x04 |
#define | NF_DrivesMode_PWM 0x05 |
#define | NF_DrivesMode_SPEED 0x02 |
#define | NF_DrivesMode_SYNC_POS0 0x11 |
#define | NF_DrivesMode_SYNC_PWM0 0x10 |
#define | POLYNOMIAL 0xD8 /* 11011 followed by 0's */ |
#define | TOPBIT (1 << (WIDTH - 1)) |
#define | WIDTH (8 * sizeof(uint8_t)) |
Functions |
void | NF_ComBufReset (NF_STRUCT_ComBuf *NFComBuf) |
uint8_t | NF_Interpreter (NF_STRUCT_ComBuf *NFComBuf, uint8_t *rxBuf, uint8_t *rxPt, uint8_t *commandArray, uint8_t *commandCnt) |
uint8_t | NF_MakeCommandFrame (NF_STRUCT_ComBuf *NFComBuf, uint8_t *txBuf, const uint8_t *commandArray, uint8_t commandCnt, uint8_t addr) |
void | NFv2_Config (NF_STRUCT_ComBuf *NFComBuf, uint8_t myAddress) |
void | NFv2_Config2 (NF_STRUCT_ComBuf *NFComBuf, uint8_t myAddress, uint8_t slaveAddress) |
uint8_t | NFv2_CrcFast (const uint8_t message[], uint8_t nBytes) |
void | NFv2_CrcInit (void) |