Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(flash): integrate cexception into pac193x library #293

Open
wants to merge 40 commits into
base: develop
Choose a base branch
from

Conversation

HerrCooker
Copy link
Contributor

Integrate CException into pac193x library

@HerrCooker HerrCooker self-assigned this Oct 9, 2024
@HerrCooker HerrCooker linked an issue Oct 9, 2024 that may be closed by this pull request
5 tasks
@HerrCooker
Copy link
Contributor Author

HerrCooker commented Oct 11, 2024

Somehow I broke something. For some reason commits that have nothing to do with this branch, are now listed in it. I will stop working on this for now, as to not break anything.

Important: I forgot to add the breaking change flag to my initial commit. Rebase doesn't work.

@glencoe
Copy link
Contributor

glencoe commented Oct 23, 2024

Somehow I broke something. For some reason commits that have nothing to do with this branch, are now listed in it. I will stop working on this for now, as to not break anything.

Important: I forgot to add the breaking change flag to my initial commit. Rebase doesn't work.

So what's the state on this one now? Have you been able to fix the problems you were mentioning? Is this PR ready for review?

@HerrCooker
Copy link
Contributor Author

No I have not been able to fix this yet.

@glencoe
Copy link
Contributor

glencoe commented Oct 25, 2024

closed because of unclear git history

@glencoe glencoe closed this Oct 25, 2024
@HerrCooker HerrCooker reopened this Oct 25, 2024
@HerrCooker HerrCooker requested review from glencoe and removed request for DavidFederl October 25, 2024 12:52
*/
pac193xErrorCode_t pac193xGetSensorInfo(pac193xSensorConfiguration_t sensor,
pac193xSensorId_t *info);
void pac193xGetSensorInfo(pac193xSensorConfiguration_t sensor, pac193xSensorId_t *info);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

turn [out] params into return values

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked the functions again. They return the sensor info through the info pointer, which is passed to the function.
So AFAIK there is no return value needed, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is for the function to return the pac193xSensorId_t by value as in

//...
pac193xSensorId_t info;
get_info(&info);
//... do more stuff
return info;
}

pac193xChannel_t channel,
pac193xValueToMeasure_t valueToMeasure,
float *value);
void pac193xGetMeasurementForChannel(pac193xSensorConfiguration_t sensor, pac193xChannel_t channel,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PAC193x
5 participants