What is considered "consent"

Call me stupid, but please help me out in defining what exactly is consent, and if it could be miscommunicated. The line between consent and not giving consent almost seems blurred. I want to know so I can adequately protect myself, and if anyone else is confused about this they can see answers also.